$npx skillfedfor your agent

GitPython

GitPython is a Python library used to interact with Git repositories

Worth itPyPI Software DevelopmentReleased Aug 2026265.1M downloads / moBSD-3-ClausePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — gitpython-3.1.59-py3-none-any.whl
v3.1.59 · released 2026-08-10 · Python >=3.7 · 2 runtime deps: gitdb, typing-extensions

Yes, for most use cases. GitPython is stable, widely used, and has no known vulnerabilities. Install friction is low and it supports Python 3.7 through 3.15. The maintenance-mode status is not a blocker for typical applications—it means no new features but continued safety fixes. Avoid it only if you need active feature development or plan to run it as a long-lived daemon without resource management.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires git executable (1.7.x or newer) installed on the system and available in PATH, or set via GIT_PYTHON_GIT_EXECUTABLE environment variable.
  • Low friction install with only two runtime dependencies.
  • Active maintenance with a recent release 4 days ago and 5166 repository stars.

License · maintenance · safety

BSD-3-Clause (permissive) — BSD-3-Clause is a permissive license allowing commercial and private use with minimal restrictions, requiring only preservation of copyright and license notices.

last release 2026-08-10 (4 days) · last repo commit 2026-08-11 · 5,166 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 265,087,322 downloads/mo, #152 on PyPI

Verify before relying

pip install GitPython

import GitPython
repo = GitPython.Repo('/path/to/repository')
for item in repo.iter_commits():
    print(item.hexsha)
  • Whether the maintenance-mode status (no feature development, delayed responses) affects long-term suitability for new projects.
  • Extent of the documented resource leakage issue in long-running processes and whether workarounds are practical for daemon-like use cases.
  • Current state of Windows support given the reference to Issue #525.
Same gist for agents: .md · .json

What it is and what it does

GitPython is a Python library that lets you interact with Git repositories programmatically, offering both high-level operations (like git-porcelain commands) and low-level access (like git-plumbing). It wraps the git command-line executable, providing Python abstractions for repository objects so you can read commits, branches, tags, and other repository data without writing shell commands yourself.

The library has been in production use since 2010 and is widely deployed, but is now in maintenance mode—the original author continues to maintain it but is not adding new features unless contributed by the community. It requires Git 1.7.x or newer and Python 3.7 or later. The main runtime dependencies are gitdb and typing-extensions. A known limitation is that GitPython is not well-suited for long-running daemon processes due to resource leakage from destructors.

Use it for

  • Automate repository operations in CI/CD pipelines, such as cloning, checking out branches, or reading commit history.
  • Build tools that analyze repository metadata—extract commit messages, authors, or file changes for reporting or auditing.
  • Integrate version control into application workflows, such as auto-tagging releases or managing repository state programmatically.
  • Write scripts to batch-process multiple repositories or perform repository maintenance tasks.
  • Access low-level Git objects for custom version control workflows or advanced repository introspection.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes, for most use cases.

GitPython is stable, widely used, and has no known vulnerabilities. Install friction is low and it supports Python 3.7 through 3.15. The maintenance-mode status is not a blocker for typical applications—it means no new features but continued safety fixes. Avoid it only if you need active feature development or plan to run it as a long-lived daemon without resource management.

Install

gitpython on PyPI

Before you install

Low friction install with only two runtime dependencies. Active maintenance with a recent release 4 days ago and 5166 repository stars. However, the project is explicitly in maintenance mode with no planned feature development—bug fixes are limited to safety-critical issues.

Requires git executable (1.7.x or newer) installed on the system and available in PATH, or set via GIT_PYTHON_GIT_EXECUTABLE environment variable.

License in practice

BSD-3-Clause is a permissive license allowing commercial and private use with minimal restrictions, requiring only preservation of copyright and license notices.

Quickstart

pip install GitPython

import GitPython
repo = GitPython.Repo('/path/to/repository')
for item in repo.iter_commits():
    print(item.hexsha)

Verify before relying

  • Whether the maintenance-mode status (no feature development, delayed responses) affects long-term suitability for new projects.
  • Extent of the documented resource leakage issue in long-running processes and whether workarounds are practical for daemon-like use cases.
  • Current state of Windows support given the reference to Issue #525.

Package facts

LicenseBSD-3-Clause permissive
Python supportSupports the current Python release >=3.7
Install frictionLow. Pure-Python wheel
Runtime dependencies
2 packages
gitdbtyping-extensions
MaintenanceActively maintained 4 days since the last release
Last repo commit
First released
Downloads265,087,322 / month, #152 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableEnvironment :: ConsoleIntended Audience :: DevelopersOperating System :: MacOS :: MacOS XOperating System :: Microsoft :: WindowsOperating System :: OS IndependentOperating System :: POSIXProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.15Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Typing :: Typed

Evidence: gitpython-3.1.59-py3-none-any.whl

Tags

Capabilities
git repository interaction pythonprogrammatic git operationspython git wrappergit porcelain plumbing pythonrepository automation pythongit command interface pythonversion control api python
Topics
version-controlgit-automation

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “git repository interaction python”

  • GitPythonGitPython provides high-level and low-level abstractions for…
  • metagit-cliMetagit provides cross-repository awareness and management for…
  • gitlint-coreLints Git commit messages against configurable style rules, checking…

Give your agent the search over MCP, or paste the wish link into any chat.

More Software Development packages

typing-extensions Worth it
PyPI · Software Development · released Jul 2026

Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.

PSF-2.0pure Python · 3.9+
1.9Bdownloads / mo
numpy Worth it
PyPI · Software Development · released Aug 2026

NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.

BSD-3-Clause AND 0BSD AND MIT AND Zlib AND CC0-1.0compiled wheel · 3.12+
1.1Bdownloads / mo
fastapi Worth it
PyPI · Software Development · released Jul 2026

FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.

MITpure Python · 3.10+
568.6Mdownloads / mo
annotated-doc With conditions
PyPI · Software Development · released Jul 2026

Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.

MITpure Python · 3.9+
456.2Mdownloads / mo
typer Worth it
PyPI · Software Development · released Aug 2026

Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.

Install it if you are building CLIs in Python.

MITpure Python · 3.10+
369.3Mdownloads / mo
distlib With conditions
PyPI · Software Development · released Jun 2026

Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.

permissive licensepure Python
323.3Mdownloads / mo

See also gitdb2 · gitdb · PyDriller · scmrepo · pyproject-api · tox-gh · mozilla-repo-urls · dulwich · apache-airflow-providers-git · taplo