Skip to main content

Python Git Library

Project description

GitPython is a python library used to interact with Git repositories.

GitPython provides object model read and write access to your git repository. Access repository information conveniently, alter the index directly, handle remotes, or go down to low-level object database access with big-files support.

With the new object database abstraction added in 0.3, its even possible to implement your own storage mechanisms, the currently available implementations are ‘cgit’ and pure python, which is the default.


The latest documentation can be found here:


As this version of GitPython depends on GitDB, which in turn needs smmap to work, installation is a bit more involved if you do a manual installation, instead of using pip.

Please have a look at the respective section in the docs for more information.

Live Coding

You can watch me fix issues or implement new features live on Twitch, or have a look at past recordings on youtube

Questions and Answers

Issue Tracker

Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

GitPython-1.0.1.tar.gz (355.1 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page