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.0.tar.gz (6.7 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.0-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: blame_g-0.1.0.tar.gz
  • Upload date:
  • Size: 6.7 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.0.tar.gz
Algorithm Hash digest
SHA256 f8aa8471ea85fbb59b3f9e436a15bb8be7f76304ee32a2569ed317a2bd2fa047
MD5 83e62da630a806f42651c6d8732627cb
BLAKE2b-256 957cd670d7242e1dddf32a4370c1068101890985fd15495d59730ed532a181e4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: blame_g-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 75f03bad78e18d1c820ba15c087c815fe6a8b4725eeec4e7485b7ded657528e6
MD5 30e4f643f0b5e8392d99d9e05ce80a17
BLAKE2b-256 35a78f5a898292601f8bd24df4e5e2f19b45621a48cc7e5a002bf123a44f4723

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