Skip to main content

GitStats - Visualize Your Git Repositories

Project description

Project Logo

PyPI - Version PyPI - Python Version PyPI Downloads Test Documentation GitHub contributors

$ gitstats

📊 Generate insightful visual reports from Git.

📘 Documentation: gitstats.readthedocs.io

Example

gitstats . report generates this gitstats report.

Installation

pip install gitstats

gitstats is compatible with Python 3.9 and newer.

Usage

gitstats <gitpath> <outputpath>

Run gitstats --help for more options, or check the documentation.

Features

Here is a list of some features of gitstats:

  • General: total files, lines, commits, authors, age.

  • Activity: commits by hour of day, day of week, hour of week, month of year, year and month, and year.

  • Authors: list of authors (name, commits (%), first commit date, last commit date, age), author of month, author of year.

  • Files: file count by date, extensions.

  • Lines: line of code by date.

  • Tags: tags by date and author.

  • Customizable: config values through gitstats.conf.

  • Cross-platform: works on Linux, Windows, and macOS.

AI-Powered Features 🤖

GitStats supports AI-powered insights to enhance your repository analysis with natural language summaries and actionable recommendations.

Quick Start:

# Install with AI support
pip install gitstats[ai]

# Enable AI with OpenAI
export OPENAI_API_KEY=your-api-key
gitstats --ai --ai-provider openai <gitpath> <outputpath>

For detailed setup instructions, configuration options, and examples, see the AI Integration Documentation.

Contributing

As an open source project, gitstats welcomes contributions of all forms.


The gitstats project was originally created by Heikki Hokkainen and is currently maintained by Xianpeng Shen.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

gitstats-1.6.1-py3-none-any.whl (42.5 kB view details)

Uploaded Python 3

File details

Details for the file gitstats-1.6.1-py3-none-any.whl.

File metadata

  • Download URL: gitstats-1.6.1-py3-none-any.whl
  • Upload date:
  • Size: 42.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for gitstats-1.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f2bf5d2015b12c5bb8e52ab27f7175a81a1043ed1b972ea1a0e0001cd0f34655
MD5 e48049d9d13ecb90ad914cffd03694dd
BLAKE2b-256 03e796c4c75bd9fb1e278c24ecb28673a0ed47e662f330d430297aa96625d539

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