github repo and developer metrics
Run pip install PyGitHub
on your Python 2.7.12+ installation.
The code takes an API endpoint and API token as mandatory arguments. Unless you want to import certs, recommend you turn of cert validation during the run, as in:
PYTHONHTTPSVERIFY=0 ./eddiebot.py ENDPOINT TOKEN
For CSV output, use the --manager
flag:
PYTHONHTTPSVERIFY=0 ./eddiebot.py --manager ENDPOINT TOKEN
To list all repos:
PYTHONHTTPSVERIFY=0 ./eddiebot.py --list-repos REPO ENDPOINT TOKEN
To limit to a specific repo:
PYTHONHTTPSVERIFY=0 ./eddiebot.py --repo REPO ENDPOINT TOKEN
PYTHONHTTPSVERIFY=0 /tmp/github-reporting/eddiebot.py --repo Datanexus/data_pipeline https://api.github.com <_put token here_>