Skip to main content

A compact terminal heatmap showing one year of Git commits (like GitHub contributions, but with compact bars instead of squares, to fit into a smaller terminal window)

Project description

git-year

A compact terminal heatmap showing one year of Git commits — similar to GitHub’s contribution graph, but optimized for small terminal windows using minimal vertical bars instead of squares.

Perfect for developers who want a clean, unobtrusive activity overview directly inside the terminal.


Features

  • Shows 1 year of commit activity for the current Git repo
  • Green intensity gradient based on commit volume
  • Compact vertical bars (|) instead of large squares — fits even tiny terminals
  • Zero dependencies (pure Python + Git)
  • 256-color ANSI output with dark-mode-friendly palette
  • Highlights the current weekday
  • Works in macOS, Linux, Windows Terminal, VS Code terminal, Git Bash
  • Graceful message if run outside a Git repo
  • Ready for PyPI (pip install git-year)

Installation

bash
pip install git-year

Usage

Sipmly run from inside a Git repository:

git-year

You’ll see a compact 7×52 bar heatmap:

M ||||||||||||||||||||||||||||||
T ||||||||||||||||||||||||||||||
W ||||||||||||||||||||||||||||||
T ||||||||||||||||||||||||||||||
F ||||||||||||||||||||||||||||||
S ||||||||||||||||||||||||||||||
S ||||||||||||||||||||||||||||||
  • Rows = weekdays (Mon–Sun)
  • Columns = weeks (52 total)
  • Color intensity = commit count
  • The current day label is highlighted in yellow

Show the installed version:

git-year --version

Requirements

  • Python 3.8+
  • Git available in PATH
  • A terminal with ANSI color support (all modern terminals)
  • On legacy cmd.exe ANSI colors may fall back to monochrome

Contributing

Contributions are welcome! Ideas, issues, and pull requests are appreciated.


License

MIT License Copyright (c) 2025 Serge Velbovets


Enjoy your terminal-native Git activity graph without leaving the shell — git-year keeps your development rhythm visible, simple, and elegant.

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

git_year-0.1.5.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

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

git_year-0.1.5-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file git_year-0.1.5.tar.gz.

File metadata

  • Download URL: git_year-0.1.5.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for git_year-0.1.5.tar.gz
Algorithm Hash digest
SHA256 83903912adeeb5d3c291701066d881870c123b39d9b37946a6c10691bce5f690
MD5 bbea5d0cd1edf66be3cfb61b44af901a
BLAKE2b-256 50254a709fafd12e6e58a15bc1c4d94c29168cb6ad29c9eaab4ce28124c16cc5

See more details on using hashes here.

Provenance

The following attestation bundles were made for git_year-0.1.5.tar.gz:

Publisher: publish-pypi.yml on velbix/git-year

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file git_year-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: git_year-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for git_year-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 b3c083f1cd1e70d5bdcc9505382613851c6b50ddf4039e612ac7917db51519da
MD5 a24e82ffc3b43ff85a7c1d5a5afe2e2c
BLAKE2b-256 4f782cfd2d1eb1f74096bfb55b2f304f067ac8d450ca37b0634b7ddf8921a3d6

See more details on using hashes here.

Provenance

The following attestation bundles were made for git_year-0.1.5-py3-none-any.whl:

Publisher: publish-pypi.yml on velbix/git-year

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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