MCPcopy Create free account
hub / github.com/libgit2/pygit2

github.com/libgit2/pygit2 @v1.19.3

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.19.3 ↗ · + Follow
1,670 symbols 5,122 edges 164 files ⚖ GPL-2.0 274 documented · 16% 11 cross-repo links ● updated 2mo agov1.20.1 · 2026-09-12★ 1,729184 open issues

Browse by type

⨍ Functions 1,514◇ Types & classes 153↳ Endpoints 3
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

pygit2 - libgit2 bindings in Python

Bindings to the libgit2 shared library, implements Git plumbing. Supports Python 3.11 to 3.14 and PyPy3 7.3+

test-ci-badge deploy-ci-badge

Links

Sponsors

Add your name and link here, become a sponsor.

License: GPLv2 with linking exception

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2, as published by the Free Software Foundation.

In addition to the permissions in the GNU General Public License, the authors give you unlimited permission to link the compiled version of this file into combinations with other programs, and to distribute those combinations without any restriction coming from the use of this file. (The General Public License restrictions do apply in other respects; for example, they cover modification of the file, and distribution when not linked into a combined executable.)

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; see the file COPYING. If not, write to the Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

Core symbols most depended-on inside this repo

browse all functions →

Shape

Function 1,117
Method 397
Class 151
Route 3
Enum 2

Languages

Python71%
C26%
C++3%

Modules by API surface

src/repository.c80 symbols
test/test_repository.py72 symbols
pygit2/repository.py57 symbols
test/test_refs.py53 symbols
src/diff.c53 symbols
pygit2/index.py45 symbols
pygit2/callbacks.py45 symbols
pygit2/config.py42 symbols
pygit2/settings.py41 symbols
pygit2/enums.py40 symbols
test/test_remote.py37 symbols
pygit2/remotes.py37 symbols

For agents

$ claude mcp add pygit2 \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page