Skip to main content

CLI for GitHub user contrib graph & statistics.

Project description

CLI for GitHub user contrib graph & statistics

This tool is intended to facilitate the archiving of your public data hosted on GitHub.

Currently supported user stats:

  • Contributions graph.

  • Language statistics.

  • Total repos, stars, followers, following.

  • Pinned repositories.

  • Yearly contributions count.


pip install thxgh

(hint: use --user to install into ~/.local/bin/)


See usage help:

$ ./bin/thxgh
Usage: ./bin/thxgh [--contributions|--stats] github-username
    --contributions will print the SVG contributions graph to stdout.
    --stats will print JSON formatted statistics for the user to stdout.
    --repos will print JSON formatted list of repositories.

Download contributions graph SVG for a user:

$ ./bin/thxgh --contributions chr15m > chr15m-contributions.svg

Get language statistics and pinned repositories for a user:

$ ./bin/thxgh --stats chr15m
  "languages": [
      "count": 29,
      "percent": 23,
      "language": "JavaScript"
  "timestamp": "2017-05-18T09:52:18.093690",
  "stats": [
  "contributions-year": 2254,
  "pinned-repos": [
      "name": "thxgh",
      "language": "Hy",
      "url": "",
      "stars": 2,
      "forks": 1,
      "description": "CLI for GitHub user contrib graph & stats"

Get list of repositories for a user:

$ ./bin/thxgh --repos
    "fork": false,
    "open_issues_count": 0,
    "watchers": 0,
    "description": "CLI for GitHub user contrib graph & language stats",
    "name": "thxgh",
    "forks": 0,
    "created_at": "2017-05-18T02:02:21Z",
    "forks_count": 0,
    "updated_at": "2017-05-18T11:44:09Z",
    "html_url": "",
    "language": "Hy",
    "clone_url": "",
    "watchers_count": 0,
    "full_name": "chr15m/thxgh",
    "ssh_url": "",
    "open_issues": 0,
    "stargazers_count": 0,
    "id": 91637951,
    "size": 13

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

thxgh-0.2.tar.gz (3.2 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page