A simple command-line tool to display your GitHub contribution heatmap right in your terminal.
The best way to install ghstats-cli is using pipx, which installs the tool in an isolated environment to avoid dependency conflicts.
-
Install pipx (if you don't have it):
pip install pipx
-
Install the tool:
pipx install ghstats-cli
You can also use standard pip. It's recommended to install it in a virtual environment to avoid cluttering your global packages.
pip install ghstats-cliBefore you begin, run the interactive setup to configure your default GitHub username and create a Personal Access Token (PAT). The tool will guide you through the process.
ghstats setupThis will securely store your credentials for all future requests.
Once configured, viewing your heatmap is as simple as running the main command.
ghstatsUse the --user flag to view the contribution graph of any GitHub user.
ghstats --user torvaldsHere is the full list of available commands and options.
Usage: ghstats [OPTIONS] COMMAND [ARGS]...
ghstats — A sleek tool to show GitHub contribution heatmaps in your
terminal.
Options:
--user TEXT Show heatmap for a specific GitHub user.
-h, --help Show this message and exit.
Commands:
setup Interactively configure your default username and GitHub token.
config Open the configuration file in your default editor.
show-config Show current configuration with a masked token.
This project is licensed under the MIT License - see the LICENSE file for details.
