Python bindings for libgit2, enabling Git operations in Python code
Bindings to the libgit2 shared library
pygit2$ python3 -c "import pygit2; pygit2.clone_repository('https://github.com/user/repo.git', 'repo')"$ python3 -c "import pygit2; repo = pygit2.Repository('.'); commit = repo[repo.head.target]; print(commit.message)"$ python3 -c "import pygit2; repo = pygit2.Repository('.'); [print(b) for b in repo.listall_branches()]"