Skip to content

crazy4pi314/devstats

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 100.0%