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.
Install
pip install thxgh
(hint: use --user to install into ~/.local/bin/)
Run
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": [
[
"Repositories",
"135"
],
[
"Stars",
"481"
],
[
"Followers",
"109"
],
[
"Following",
"294"
]
],
"contributions-year": 2254,
"pinned-repos": [
{
"name": "thxgh",
"language": "Hy",
"url": "https://github.com/chr15m/thxgh",
"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": "https://github.com/chr15m/thxgh",
"language": "Hy",
"clone_url": "https://github.com/chr15m/thxgh.git",
"watchers_count": 0,
"full_name": "chr15m/thxgh",
"ssh_url": "git@github.com:chr15m/thxgh.git",
"open_issues": 0,
"stargazers_count": 0,
"id": 91637951,
"size": 13
},
...
]
Metadata
Release files for thxgh 0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| thxgh-0.2.tar.gz | 3.2 kB | Without provenance | Details for thxgh-0.2.tar.gz |
Release files / thxgh-0.2.tar.gz
| Download URL | thxgh-0.2.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
597181b963c9609bd9a26cb647760123e3cdf8898243d0d8278cd23494cc8da0
|
|
BLAKE2b-256 checksum How to use checksums |
28e2bc9b60f2a7dd66287d768076db5070e5aa0f8ebc2cdf00edff844799737e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for thxgh 0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.