Skip to main content

Beautiful Git repository statistics and insights in your terminal

Project description

๐Ÿš€ Git Stats CLI

PyPI version License: MIT Python 3.8+

Beautiful Git repository statistics and insights right in your terminal โœจ

Get instant insights into your Git repositories with gorgeous, colorful terminal output. Perfect for developers, team leads, and anyone who wants to understand their codebase better.

๐ŸŽฏ Features

  • ๐Ÿ“Š Repository Summary - Total commits, authors, files, and line changes
  • ๐Ÿ‘ฅ Top Contributors - See who's contributing the most
  • ๐Ÿ”ฅ Hotspots - Find the most frequently changed files
  • ๐Ÿ“… Activity Patterns - Discover when your team is most active
  • ๐ŸŽจ Beautiful Output - Rich, colorful terminal UI
  • โšก Fast & Lightweight - Analyze repos in seconds
  • ๐Ÿ” Flexible Filtering - Filter by author, date range, and more

๐Ÿ“ฆ Installation

Via pip (Recommended)

pip install beautiful-git-stats

From source

git clone https://github.com/serimoth/beautiful-git-stats.git
cd beautiful-git-stats
pip install -e .

๐Ÿš€ Quick Start

# Show repository summary
git-stats summary

# Show top 10 contributors
git-stats contributors

# Show most changed files (hotspots)
git-stats hotspots

# Show activity patterns by day and hour
git-stats activity

๐Ÿ“– Usage Examples

Repository Summary

Get a quick overview of your repository:

git-stats summary /path/to/repo

Output:

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚      ๐Ÿ“Š Repository Summary          โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ Total Commits   โ”‚ 1,234             โ”‚
โ”‚ Total Authors   โ”‚ 15                โ”‚
โ”‚ Total Files     โ”‚ 456               โ”‚
โ”‚ Lines Added     โ”‚ +45,678           โ”‚
โ”‚ Lines Deleted   โ”‚ -12,345           โ”‚
โ”‚ First Commit    โ”‚ 2023-01-15        โ”‚
โ”‚ Last Commit     โ”‚ 2026-05-20        โ”‚
โ”‚ Active Days     โ”‚ 234               โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Filter by Author

git-stats summary --author "John Doe"

Filter by Date Range

git-stats summary --since 2026-01-01 --until 2026-05-20

Top Contributors

See who's contributing the most:

git-stats contributors --limit 5

Find Hotspots

Identify files that change frequently (potential refactoring candidates):

git-stats hotspots --limit 10

Activity Patterns

Understand when your team is most productive:

git-stats activity

๐ŸŽจ Screenshots

Git Stats Summary Git Stats Contributors

๐Ÿ› ๏ธ Advanced Usage

Analyze Multiple Repositories

for repo in ~/projects/*; do
  echo "Analyzing $repo"
  git-stats summary "$repo"
done

Export to JSON (Coming Soon)

git-stats summary --format json > stats.json

๐Ÿค Contributing

Contributions are welcome! Here's how you can help:

  1. ๐Ÿ› Report bugs
  2. ๐Ÿ’ก Suggest new features
  3. ๐Ÿ”ง Submit pull requests
  4. ๐Ÿ“– Improve documentation
  5. โญ Star this repo if you find it useful!

Development Setup

git clone https://github.com/serimoth/beautiful-git-stats.git
cd beautiful-git-stats
pip install -e ".[dev]"
pytest

๐Ÿ’– Support This Project

If you find Git Stats CLI useful, consider supporting its development:

  • โญ Star this repository
  • ๐Ÿฆ Share on Twitter
  • โ˜• Support on Ko-fi

Your support helps maintain and improve this tool!

๐Ÿ“ License

MIT License - see LICENSE file for details

๐Ÿ™ Acknowledgments

Built with:

  • GitPython - Git repository interaction
  • Rich - Beautiful terminal output
  • Click - CLI framework

๐Ÿ“ฌ Contact


Made with โค๏ธ by developers, for developers

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

beautiful_git_stats-1.0.0.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

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

beautiful_git_stats-1.0.0-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file beautiful_git_stats-1.0.0.tar.gz.

File metadata

  • Download URL: beautiful_git_stats-1.0.0.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.11

File hashes

Hashes for beautiful_git_stats-1.0.0.tar.gz
Algorithm Hash digest
SHA256 e968eb4d93329a8f03d37f51aa634efead2f485e80b9050c45fc8258b14000bb
MD5 d0b23f90cafdc5514ef39237733e42a8
BLAKE2b-256 4d1167b932d1b6a914c4cf1d8eca15ce9f527f9672acd386dd7d94ff5fa97c65

See more details on using hashes here.

File details

Details for the file beautiful_git_stats-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for beautiful_git_stats-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d4f48587f615669f5f00adc738b8f278ad106369c8165ce8c2703631cc731cd2
MD5 e1d4aea3b39c19dbd0cd331a62fe066d
BLAKE2b-256 c85c04d822deba64b3ea73036b0e39bf84040002492d9a204eb4f53a1178488b

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