Skip to content
wispsyPublic

About

A standalone, standard-library Python Git engine with Git-compatible storage and protocols.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

gitdx

A standalone, standard-library Python Git engine with Git-compatible storage and protocols.

Python 3.14+ · MIT

Commit/history builds staged trees with explicit identities and expected-HEAD publication, plus bounded parent-order history and ref listings.

Pack writing validates selected object closures and emits native-format non-delta packs with v2 indexes, without a Git runtime.

Development starts with the implementation plan and shared Project. The roadmap records qualification targets; remote exchange and public hosting are later milestones.

Source development does not imply a published package or deployed service.

The initial Python API provides SHA-1/SHA-256 identities and byte-preserving blob, tree, commit and annotated-tag codecs, without runtime dependencies or calls to the Git executable:

from gitdx import Blob, ObjectFormat

blob = Blob(b"hello\n").to_raw()
print(blob.oid())                    # SHA-1
print(blob.oid(ObjectFormat.SHA256)) # SHA-256

Object contracts describe byte handling and validation. Loose storage adds bounded verified reads and atomic publish-if-absent writes under an existing owner-controlled objects directory. Repository lifecycle and plumbing provide init, hash-object and cat-file. Filesystem staging and network operations remain separate milestones.

Files refs include packed refs, guarded deletion, explicit reflog outcomes, validated single-ref compare-and-swap and explicit unborn, symbolic and detached HEAD handling through Repository.refs.

Index v2 transactions expose format-aware staging snapshots and exclusive, explicitly committed writes through Repository.index.

Staging/status adds explicit paths/removals, scoped ignore rules and byte-oriented porcelain status without invoking Git.

Indexed pack reading provides bounded SHA-1/SHA-256 base-object access and bounded iterative OFS/REF delta resolution. Checkout porcelain and network exchange remain queued.

Run uv sync --locked and uv run python -m unittest discover -s tests -v. Git is used only as a test oracle; GITDX_REQUIRE_GIT=1 makes a missing oracle an error. uv run python scripts/check_distribution.py checks isolated wheel and sdist installations and runtime startup without Git on PATH.

About

A standalone, standard-library Python Git engine with Git-compatible storage and protocols.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages