Skip to main content

ezgb: easy git-bug for Python

A standalone Python library for working with git-bug repositories. It lets you list, create, query, and update bugs that are stored as native git objects -- no external database required.

Features

  • Fast reads -- bug data is read directly from git objects via pygit2 (libgit2 bindings). Listing uses the git-bug CLI cache when available (~100ms for hundreds of bugs).
  • Safe writes -- all mutations go through the git bug CLI, which keeps Lamport clocks and the operation DAG consistent.
  • Simple API -- one main class (GitBugRepo) with plain Python dataclasses for bugs, comments, and identities.

Quick example

from ezgb import GitBugRepo, Status

repo = GitBugRepo('/path/to/repo')

# List open bugs
for bug in repo.list_bugs(status=Status.OPEN):
    print(bug.title)

# Create a new bug
bug = repo.create_bug('Login page is broken', 'Steps to reproduce...')

# Add a comment
repo.add_comment(bug.id, 'I can reproduce this on Firefox 130.')

Requirements

  • Python 3.10 or later
  • pygit2 (libgit2 Python bindings)
  • git-bug v0.10+ on your $PATH (needed for write operations and fast cached listing); tested with v0.10.1 and v0.12.0

Installation

git clone https://git.kernel.org/pub/scm/utils/ezgb/ezgb.git
cd ezgb
pip install -e .

Documentation

Full documentation is in the docs/ directory. Build it with:

pip install sphinx sphinx-rtd-theme
make -C docs html

Then open docs/_build/html/index.html in your browser.

Development checks

uv sync --all-groups
./ci.sh

The CI script runs Ruff, ty, mypy, pyright, and pytest. The test suite includes unit tests (using real git objects in temporary repos via pygit2) and integration tests that exercise the full stack including the git-bug binary.

Contributing

See CONTRIBUTING.md for details on submitting patches, coding style, and the Developer Certificate of Origin.

License

GPLv2 or later. See COPYING for the full text.

Metadata

Release files for ezgb 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ezgb 0.2.2
File Size Uploaded Provenance Actions
ezgb-0.2.2.tar.gz 36.1 kB Without provenance Details for ezgb-0.2.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ezgb 0.2.2
File Interpreter ABI Platform Actions
ezgb-0.2.2-py3-none-any.whl Python 3 none any Details for ezgb-0.2.2-py3-none-any.whl

Total release size: 61.2 kB

Release files / ezgb-0.2.2.tar.gz

Download URL ezgb-0.2.2.tar.gz
Size 36.1 kB
Tags Source
SHA-256 checksum
How to use checksums
669867faf66875a4457dc18440c47462ec426b197bfab51e0bd294767bd2d094
BLAKE2b-256 checksum
How to use checksums
0bd474272fb38394eaecbaec1cfbb1e3c0a0197ff76f0665f19902591bd54e06
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.2

Release files / ezgb-0.2.2-py3-none-any.whl

Download URL ezgb-0.2.2-py3-none-any.whl
Size 25.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3ce6f0ef1e7f28b7783d8029885af0c25ea4ad8a3c0ba1f61130a529554160c2
BLAKE2b-256 checksum
How to use checksums
c1773189ae0813de41147267813e94bdc3720ea993289850d3eb2e458ee5d057
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.2

Security for ezgb 0.2.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page