Skip to main content

blame-g is a command-line tool that analyzes git repositories and generates contributor statistics — including commits, lines added/deleted, files changed, pull requests, reverts, and more — beautifully rendered in a terminal table.

Project description

blame-g

PyPI Version License: MIT Python Versions

blame-g is a command-line tool that analyzes git repositories and generates contributor statistics — including commits, lines added/deleted, files changed, pull requests, reverts, and more — beautifully rendered in a terminal table.

Geddit? Blame- ji? ;)

in-action

Features

  • Contributor Statistics: Aggregates commits, lines added/deleted, files changed, pull requests, and reverts for each contributor.
  • Rich Output: Uses the rich library to provide a visually appealing and informative table of statistics in your terminal.
  • Branch Specific Analysis: Analyze a specific branch of your repository.
  • Pull Request & Revert Detection: Detects PRs and reverts based on commit message patterns.

    Note: The detection only works if you use the default PR message patterns for Bitbucket, GitHub, and GitLab. Custom commit message formats might not be recognized.

  • Git-Aware Context: Automatically detects and works within the current Git repository.

Installation

Install from PyPI

pip3 install blame-g

Clone and Run from Source

git clone https://github.com/mcking-07/blame-g.git
cd blame-g

pip3 install -r requirements.txt
python3 blame-g [repo_path] [branch_name]

Editable Install

git clone https://github.com/mcking-07/blame-g.git
cd blame-g

pip3 install -e .
blame-g [repo_path] [branch_name]

Usage

blame-g [repo_path](defaults to the current working directory) [branch_name](defaults to main or master)

License

This project is licensed under the MIT License.

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

blame_g-0.1.1.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

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

blame_g-0.1.1-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file blame_g-0.1.1.tar.gz.

File metadata

  • Download URL: blame_g-0.1.1.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for blame_g-0.1.1.tar.gz
Algorithm Hash digest
SHA256 d945cef56e37b2901f685e47fcb8f93df33a74fa79ef96bbb9c4e73a57bcd543
MD5 3681c5c293470dcddcfa053fcfb36903
BLAKE2b-256 9c08fb1be19f5637d88e676f745cd3f5c410f331a896c13072faaace1c0109ca

See more details on using hashes here.

File details

Details for the file blame_g-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: blame_g-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for blame_g-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8d6ba4e5adf7208503e744b8c547b24c185de322e578ba42165de207d7c0d7ce
MD5 15d071917a603dc2e701040d932188fa
BLAKE2b-256 094fef2fcbe943cde6a0e6a48d621b61898974121a5c3fa772e813b22976c2fc

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