Skip to main content

A CLI to display your GitHub contributions heatmap, streaks, and activity over the past year.

Project description

ghstats-cli

A simple command-line tool to display your GitHub contribution heatmap right in your terminal.

Installation

Recommended (via pipx)

The best way to install ghstats-cli is using pipx, which installs the tool in an isolated environment to avoid dependency conflicts.

  1. Install pipx (if you don't have it):

    pip install pipx
    
  2. Install the tool:

    pipx install ghstats-cli
    

Alternative (via pip)

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-cli

Getting Started

1. One-Time Setup

Before 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 setup

This will securely store your credentials for all future requests.

2. Usage

Once configured, viewing your heatmap is as simple as running the main command.

Show Your Own Heatmap

ghstats

Show a Specific User's Heatmap

Use the --user flag to view the contribution graph of any GitHub user.

ghstats --user torvalds

All Commands

Here 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.

License

This project is licensed under the MIT License - see the LICENSE file for details.

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

ghstats_cli-0.1.0.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ghstats_cli-0.1.0-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

Details for the file ghstats_cli-0.1.0.tar.gz.

File metadata

  • Download URL: ghstats_cli-0.1.0.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for ghstats_cli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b66f6ef3a1b5c6d17ed89c269f66d33b88f85598325859cbc2c3a091b26dbc83
MD5 33952175e3012864c8681d7623e62f55
BLAKE2b-256 3fc8ec1115d00a04c39c8dd792239ec12dc5de1211a1a62f3ccdeb0a7dd8f1b0

See more details on using hashes here.

File details

Details for the file ghstats_cli-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: ghstats_cli-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for ghstats_cli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d52845dd1d5932fa4af8384f73edad224fe3434bd93d5d86a4aa8ee26aa5de76
MD5 ea71b6730cdf3030fedfa1aeddc778c0
BLAKE2b-256 04d740ebf30d48f0dea01268c29b5ba5bd0f335a2cd81796d4195abef30756ee

See more details on using hashes here.

Supported by

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