Skip to main content

A Python package for analyzing git differences between branches in a local repository.

Project description

PyPI version License: MIT Downloads LinkedIn

Beatrica Git

beatrica-git is a Python package designed for analyzing git differences between branches in a local repository. It helps developers and project managers to easily track and visualize changes, fostering better understanding and collaboration within teams.

Installation

To install beatrica-git, use pip:

pip install beatrica-git

Usage

beatrica-git is straightforward to use. Below are examples demonstrating how to analyze and retrieve recent commit changes between branches.

Analyzing Commit Changes

from beatrica_git.recent_change_inspector import BeatricaDiffTracker

# Initialize the analyzer for a specific repository path (optional) and branch
beatrica_diff_tracker = BeatricaDiffTracker(base_branch='master')

# Perform the analysis
beatrica_diff_tracker.analyze_commits()

# Retrieve and print the commit changes
commit_changes = beatrica_diff_tracker.commit_changes
print(commit_changes)

This example shows how to instantiate the BeatricaDiffTracker and analyze commit changes between the master branch and the HEAD. It's possible to specify a repository path; otherwise, the current working directory is used.

Features

  • Easy retrieval and analysis of commit differences between two branches.
  • Support for analyzing changes in local git repositories.
  • Detailed breakdown of additions, deletions, and modifications in each commit.
  • Customizable for different base and head branches.
  • Simplified API for easy integration into development workflows and tools.

Contributing

Contributions, issues, and feature requests are welcome! Feel free to check the issues page.

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

beatrica_git-2025.5.180925.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

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

beatrica_git-2025.5.180925-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file beatrica_git-2025.5.180925.tar.gz.

File metadata

  • Download URL: beatrica_git-2025.5.180925.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.11

File hashes

Hashes for beatrica_git-2025.5.180925.tar.gz
Algorithm Hash digest
SHA256 584ab8baf703adabe3340b9d7bfb586c3cd85ac5e3a34cf82d0fd391918522d4
MD5 ea92456a035c921f70b3a77fb211aecb
BLAKE2b-256 627d6073565b0c89440361675b29e0a4003b48d51ba98d8ffe9fae31d368b0b3

See more details on using hashes here.

File details

Details for the file beatrica_git-2025.5.180925-py3-none-any.whl.

File metadata

File hashes

Hashes for beatrica_git-2025.5.180925-py3-none-any.whl
Algorithm Hash digest
SHA256 9ee9c5fec7fcfa53a4405bba942dd6ea541cb483297196983d8e24558b102001
MD5 54f5787892a6b9561a7531ee542d5db4
BLAKE2b-256 991e4aa7a3d5f7d37f559b976c0a5f715b0771592700afaecea83693538c4480

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