Skip to content

Instantly share code, notes, and snippets.

View epuertat's full-sized avatar

Ernesto Puerta epuertat

  • Madrid, Spain
  • 11:37 (UTC +01:00)
View GitHub Profile
@epuertat
epuertat / github_inactive_users.py
Created March 14, 2023 20:42
Script to calculate the last interaction of Github users with a given GH Organization (reads the GH token from $HOME/.github_token)
from pathlib import Path
import datetime
from github import Github # PyGithub = "^1.58.0"
from tqdm import tqdm # tqdm = "^4.65.0"
ORG = 'Ceph'
def main():
with open(Path.home() / ".github_token") as f: