skillfed

gitdb2

A mirror package for gitdb

gitdb2 v4.0.2 736.4K downloads/30d#5,193 on PyPI227
License unclear Abandoned released

What it is and what it does

GitDB is a low-level library for direct access to bare git repositories. It allows you to read and write git objects (both loose objects and packs) with a focus on performance and memory efficiency by operating exclusively on streams. This means large objects can be handled without loading them entirely into memory.

The package is mature but no longer under active development; its primary use is as a dependency within GitPython. The repository is now archived, and the entire history has been folded into the GitPython project. If you need git repository access, you are more likely to use GitPython directly rather than gitdb2 as a standalone tool.

Use it for:

  • Building tools that need direct, efficient access to git object storage in bare repositories.
  • Implementing custom git operations that require stream-based reading of large pack files or loose objects.
  • Integrating git repository inspection into applications where memory footprint must be minimized.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Provides low-level read and write access to bare git repositories, operating on streams to handle large objects efficiently with minimal memory overhead.

No, unless you are maintaining legacy code that explicitly depends on gitdb2. The package is abandoned (last release 2020-02-23, repository archived), has unclear licensing, and its functionality is now maintained within GitPython. New projects should use GitPython directly. The high download count reflects its role as a transitive dependency rather than direct adoption.

Install

gitdb2 on PyPI

pip

pip install gitdb2

uv

uv add gitdb2

poetry

poetry add gitdb2

Installing gitdb2

Before you install

Low install friction with a single runtime dependency (gitdb). However, the package is abandoned—last release was 2020-02-23 and the repository is archived. It is primarily maintained as a mirror; active development has moved to GitPython.

License in practice

License treatment is unclear; no SPDX identifier or raw license text is available in the metadata, making it difficult to assess licensing obligations before use.

Quickstart

pip install gitdb2

import gitdb
# Access a bare repository
repo = gitdb.GitDB('/path/to/bare/repo.git')

Requires a bare git repository on the filesystem to operate on; not a standalone tool for creating or initializing repositories.

Verify before relying

  • Whether gitdb2 is a maintained mirror or a deprecated fork; the summary states 'mirror package' but the relationship to the original gitdb is unclear.
  • Actual license terms, since license_treatment is unclear and no SPDX or raw text is provided.
  • Python version compatibility, as requires_python is empty and python_support is unspecified.

Package facts

License not declared (unclear)
Python support not specified
Install friction low — pure-Python wheel
Runtime dependencies 1 — gitdb
Maintenance abandoned — 2,364 days since the last release
Last repo commit (repository archived)
First released
Downloads 736,370/month — #5,193 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: gitdb2-4.0.2-py3-none-any.whl

Tags

git repository accessbare git object storagegit pack readingstream-based git operationsgit loose objectsgit database access
git-internalsarchived

More Software Development packages