Skip to content
Agents tracked: 506 Releases (7d): 634 Agent status: 3 with issuesSince last limit reset: Claude 15d · Codex 0d For AI agents: Markdown Updated Nov 26, 2026

pygit2

Python bindings for libgit2 to programmatically interact with Git repositories.

Dev workflow and configPYPI

GitHubWebsite

1. License

License from PyPI license field.

github.com/libgit2/pygit2

From the package registry and GitHub, checked daily. Tap a verdict to see its source.How we checkedReport an error

What pygit2 does

Python bindings for libgit2 to programmatically interact with Git repositories.

pygit2 popularity

38 / 100
Gid Score, #3420 overall
1.1M
downloads a week, pypi
1,737
GitHub stars
pygit2: downloads per weekPyPI, pygit2 1,139,950
pygit2: GitHub starslibgit2/pygit2 1,737

Gid Score measures public popularity and activity, not quality. How the Gid Score is calculated

How pygit2 is used

  • pygit2 joined the catalog on its public numbers (1,138,809 downloads a week on PyPI and 1,737 GitHub stars), not on our project count: it is a dependency in 6 public GitHub projects of our scan, 0 of them set up for AI coding agents.
  • The most used alternative in our scan is GitPython (30 projects).
  • Projects that use it most often also use aiohttp (100.0%), AnyIO (100.0%), attrs (100.0%).

Often used with

In 100.0% of its projects
In 100.0% of its projects
In 100.0% of its projects
In 100.0% of its projects
In 100.0% of its projects
In 100.0% of its projects
In 100.0% of its projects
In 100.0% of its projects

More about pygit2

Funding
  • GitHub Sponsors: https://github.com/jdavid
  • 2 GitHub sponsors

See all

More in Dev workflow and config

Alternatives

pygit2 This page

GPLv2 with linking exceptionGid 381.1M/wk

GitPython

Python library for interacting with Git repositories programmatically.

BSD-3-ClauseGid 7035.2M/wk

Compare pygit2 with another tool

Get started

Install it.

pip install pygit2

No step-by-step start for pygit2 yet: we have not written its hand-checked card.