/devstats-data

Hosted data used for devstats.scientific-python.org

Primary LanguagePythonOtherNOASSERTION

Development Statistics Data

Data used for generating <devstats.scientific-python.org>

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