This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ''' | |
| List all inactive user of a GitHub organization | |
| See user.py --help for usage. | |
| Partially inspired by https://gist.github.com/morido/9817399 | |
| ''' | |
| import sys # to use sys.stdout | |
| import os | |
| from datetime import datetime | |
| from time import strftime | |
| import datetime |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| # you will need http://github3py.readthedocs.org/en/latest/#installation | |
| # I'm not sure if this works on Windows due to the use of strptime() | |
| from github3 import login | |
| import datetime | |
| import json | |
| # Amend the following two lines as necessary |