crazy4pi314 / devstats

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

devstats

This repository holds the devstats package. devstats uses the github API to generate developer statistics and a developer statistics report on a specified project.

OAuth key for accessing GitHub

Per the GitHub GraphQL API docs, you need a personal access token with public_repo permission to access the GraphQL API.

This code expects the personal access token to be in the environment variable GRAPH_API_KEY.

You can create a personal access token on GitHub and save it somewhere you trust. Then, when you want to use the code: export GRAPH_API_KEY=<yourkey>

Query script

The query.py script can be used to collect data for other projects like so: python query.py <repo_owner> <repo_name> where repo_owner and repo_name are the names of the org and repo on GitHub, respectively.

First you need to install the required Python packages:

pip install -r requirements.txt

For example, to download the latest data for pandas:

python query.py pandas-dev pandas

About

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Python 100.0%