Skip to content
This repository has been archived by the owner on Dec 24, 2021. It is now read-only.

garnertb/github-contributions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

github-contributions

Github Contributions

This is a Python module that returns a Github user's public contribution counts. I built this because we wanted to show off contribution counts on our website but the GitHub API does not expose the aggregate contribution statistics on the user resource.

install

pip install github-contributions

api

get_contributions(usernames)

Given a string or sequence of usernames returns the Github contribution counts as JSON.

example

From python:

from git_contributions import get_contributions
get_contributions('garnertb')

# Returns:
{
    "total": 1094,
    "users": [
        {
            "garnertb": {
                "total": 1094
            }
        }
    ]
}

From CLI: Use the contributions command to get contribution counts from the command line:

(git_contributions)$ contributions garnertb
{
    "total": 1094,
    "users": [
        {
            "garnertb": {
                "total": 1094
            }
        }
    ]
}

About

Python module that returns a github user's public contribution counts as JSON.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages