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.2.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.2-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for blame_g-0.1.2.tar.gz
Algorithm Hash digest
SHA256 a9a9a17b0dd8dc305105aa1adc0e425feed05e3a9cd61749de31b5c71077e87e
MD5 600fc8e190c9db735868077ce15f0f87
BLAKE2b-256 c1c6ed184d6143d0c6e06b688090365eec3c387f142c29ca309c04e34dc8bdd4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: blame_g-0.1.2-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.14.4

File hashes

Hashes for blame_g-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 43271ff1211dc674e66df6c0be933d4566aaa5620cd4c9112c84b16a0b1a6a5f
MD5 ba0a59f3d1a7c99ce4e08a785d6d807a
BLAKE2b-256 878345260ac8cfa9317b3d94cf6b282af1a02bfbb359aa637407e0eeac387fc7

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