{"library":"pygit2","type":"library","category":null,"description":"pygit2 is a set of Python bindings for libgit2, a portable, pure C implementation of the Git core methods. It provides a low-level, plumbing-focused API for interacting with Git repositories. The library is actively maintained, with version 1.19.2 being the latest as of March 2026, and typically sees multiple minor releases per year, often in sync with libgit2 updates and bug fixes. It supports Python versions 3.11 through 3.14, and PyPy3 7.3+.","language":"python","status":"active","version":"1.19.2","tags":["git","version control","bindings","libgit2"],"install":[{"cmd":"pip install pygit2","imports":["from pygit2 import Repository","from pygit2 import init_repository","from pygit2 import Signature","from pygit2 import GitError","from pygit2 import enums"]},{"cmd":"brew install libgit2 # On macOS, then pip install pygit2\n# For other OSes, install libgit2 development packages (e.g., libgit2-dev on Debian/Ubuntu, libgit2-devel on Fedora/RHEL) if binary wheel is not available.","imports":[]}],"homepage":null,"github":"https://github.com/libgit2/pygit2","docs":"https://www.pygit2.org/","changelog":"https://github.com/libgit2/pygit2/blob/master/CHANGELOG.md","pypi":"https://pypi.org/project/pygit2/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"3.10–3.9","success_rate":100,"avg_install_s":2.1,"avg_import_s":0.16,"wheel_type":"wheel"},"url":"https://checklist.day/v1/registry/pygit2/compatibility"},"provenance":{"verified_status":"passing","verified_at":"Sun Jun 28","last_verified":"Sun Jun 28","next_check":"Tue Jul 28","install_tag":null}}