Skip to content

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

License

Notifications You must be signed in to change notification settings

d1rshan/ghstats-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Alt text

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.

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages