gitdb2
A mirror package for gitdb
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 gitdb2uv
uv add gitdb2poetry
poetry add gitdb2Installing 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
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
gitdbGitDB provides low-level read and write access…
permissive · top 1,000 on PyPI
GitPythonGitPython provides high-level and low-level…
permissive · top 1,000 on PyPI
smmap2Smmap2 is a mirror package that wraps…
unclear · top 15,000 on PyPI
scmreposcmrepo provides an fsspec-based filesystem…
permissive · top 5,000 on PyPI
dulwichDulwich provides pure Python access to Git…
unclear · top 1,000 on PyPI
PyDrillerPyDriller extracts commit history, developer…
permissive · top 15,000 on PyPI
winrt-Windows.Storage.StreamsProvides Python bindings to Windows Runtime…
permissive · top 15,000 on PyPI
apache-airflow-providers-gitIntegrates Git version control operations into…
permissive · top 15,000 on PyPI
arParses and reads ar archive files (.a),…
permissive · top 15,000 on PyPI
base64ioProvides a streaming interface for Base64…
permissive · top 15,000 on PyPI