Skip to main content

🚀 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

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:

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

Metadata

Release files for beautiful-git-stats 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for beautiful-git-stats 1.0.0
File Size Uploaded Provenance Actions
beautiful_git_stats-1.0.0.tar.gz 7.4 kB Without provenance Details for beautiful_git_stats-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for beautiful-git-stats 1.0.0
File Interpreter ABI Platform Actions
beautiful_git_stats-1.0.0-py3-none-any.whl Python 3 none any Details for beautiful_git_stats-1.0.0-py3-none-any.whl

Total release size: 15.1 kB

Release files / beautiful_git_stats-1.0.0.tar.gz

Download URL beautiful_git_stats-1.0.0.tar.gz
Size 7.4 kB
Tags Source
SHA-256 checksum
How to use checksums
e968eb4d93329a8f03d37f51aa634efead2f485e80b9050c45fc8258b14000bb
BLAKE2b-256 checksum
How to use checksums
4d1167b932d1b6a914c4cf1d8eca15ce9f527f9672acd386dd7d94ff5fa97c65
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.11

Release files / beautiful_git_stats-1.0.0-py3-none-any.whl

Download URL beautiful_git_stats-1.0.0-py3-none-any.whl
Size 7.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d4f48587f615669f5f00adc738b8f278ad106369c8165ce8c2703631cc731cd2
BLAKE2b-256 checksum
How to use checksums
c85c04d822deba64b3ea73036b0e39bf84040002492d9a204eb4f53a1178488b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.11

Security for beautiful-git-stats 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page