Skip to main content

Metadata extraction tool for git repositories.

Project description

diffhouse

diffhouse is a git metadata extraction tool for Python that retrieves high-quality repository information such as commit history, branches, diffs and more.

Requirements

Git 2.46 or greater required.

Quick start

  1. Install diffhouse with pip:
pip install diffhouse
  1. Import the Repo class in Python:
from diffhouse import Repo
  1. Create a Repo instance with the git repository URL as an argument. Set blobs to True to load file-level diffs as well.

Note that blobs=True greatly increases processing time, as it requires a complete clone of the repository.

r = Repo(url='https://github.com/user/name.git', blobs=True)
  1. Access data through the following pandas DataFrames:
Table Description
Repo.commits Commit history.
Repo.branches Branch names.
Repo.tags Tag names.
Repo.diffs File-level changes. Available if blobs is True.

For a full list of objects and table columns, see the documentation.

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

diffhouse-0.2.4.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

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

diffhouse-0.2.4-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file diffhouse-0.2.4.tar.gz.

File metadata

  • Download URL: diffhouse-0.2.4.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for diffhouse-0.2.4.tar.gz
Algorithm Hash digest
SHA256 d406906880784bc1684c28f31cb9bcb7de66bcc760a2e45c8d0dbc5759ca66d0
MD5 f57b8a8680c97e4136c56b0e653cbd0f
BLAKE2b-256 b1305d61df89cf61413ad0f85f059592531eadcc40eba79ff8cc63dc89349d9a

See more details on using hashes here.

File details

Details for the file diffhouse-0.2.4-py3-none-any.whl.

File metadata

  • Download URL: diffhouse-0.2.4-py3-none-any.whl
  • Upload date:
  • Size: 8.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for diffhouse-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 115b9cddc4cd5b8d560352348079d1a634753033dfee37a9913f2e5ef0c12d46
MD5 75320bf44ed19d97923f9e61fb15f68f
BLAKE2b-256 91753f18992cdd466d301c2ebe5e6c7c685b829c455dc686c958d67ab3b2ff5a

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