Python bindings for libgit2
C Python
Switch branches/tags
Nothing to show
Pull request Compare This branch is 1311 commits behind libgit2:master.
Latest commit 83a78da Feb 10, 2011 J. David Ibañez Fix unit tests for Python 2.5
Failed to load latest commit information.
.gitignore Complete .gitignore Feb 7, 2011
COPYING Initial checkin of pygit2, the Python libgit2 bindings. Nov 4, 2010 Update Nov 30, 2010
pygit2.c Fix compilation warning on unused variable Feb 9, 2011 Add simple repository tests. Nov 12, 2010

pygit2 - libgit2 bindings in Python

pygit2 is a set of Python 2.6+ bindings to the libgit2 linkable C Git library.


First you need to install the latest version of libgit2. You can find platform-specific instructions to build the library in the libgit2 website:

Next, make sure you have the required library dependencies for pygit2: OpenSSL and ZLib. For instance, in Debian-based systems run:

$ sudo apt-get install zlib1g-dev libssl-dev

Also, make sure you have Python 2.6+ installed together with the Python development headers.

When those are installed, you can install pygit2:

$ git clone git:// 
$ cd pygit2
$ python install
$ python test


Fork libgit2/pygit2 on GitHub, make it awesomer (preferably in a branch named for the topic), send a pull request.



GPLv2 with linking exception. See COPYING for more details.