Python Git Library
Project description
This is the Dulwich project.
It aims to provide an interface to git repos (both local and remote) that doesn’t call out to git directly but instead uses pure Python.
Main website: <https://www.dulwich.io/>
License: Apache License, version 2 or GNU General Public License, version 2 or later.
The project is named after the part of London that Mr. and Mrs. Git live in in the particular Monty Python sketch.
Installation
By default, Dulwich’ setup.py will attempt to build and install the optional C extensions. The reason for this is that they significantly improve the performance since some low-level operations that are executed often are much slower in CPython.
If you don’t want to install the C bindings, specify the –pure argument to setup.py:
$ python setup.py --pure install
or if you are installing from pip:
$ pip install dulwich --global-option="--pure"
Note that you can also specify –global-option in a requirements.txt file, e.g. like this:
dulwich --global-option=--pure
Getting started
Dulwich comes with both a lower-level API and higher-level plumbing (“porcelain”).
For example, to use the lower level API to access the commit message of the last commit:
>>> from dulwich.repo import Repo >>> r = Repo('.') >>> r.head() '57fbe010446356833a6ad1600059d80b1e731e15' >>> c = r[r.head()] >>> c <Commit 015fc1267258458901a94d228e39f0a378370466> >>> c.message 'Add note about encoding.\n'
And to print it using porcelain:
>>> from dulwich import porcelain >>> porcelain.log('.', max_entries=1) -------------------------------------------------- commit: 57fbe010446356833a6ad1600059d80b1e731e15 Author: Jelmer Vernooij <jelmer@jelmer.uk> Date: Sat Apr 29 2017 23:57:34 +0000 Add note about encoding.
Further documentation
The dulwich documentation can be found in docs/ and built by running make doc. It can also be found on the web.
Help
There is a #dulwich IRC channel on the Freenode, and dulwich-announce and dulwich-discuss mailing lists.
Contributing
For a full list of contributors, see the git logs or AUTHORS.
If you’d like to contribute to Dulwich, see the CONTRIBUTING file and list of open issues.
Supported versions of Python
At the moment, Dulwich supports (and is tested on) CPython 3.5 and later and Pypy.
The latest release series to support Python 2.x was the 0.19 series. See the 0.19 branch in the Dulwich git repository.
Project details
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
Built Distributions
Hashes for dulwich-0.20.15-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18c96c3fc544a5c8f8bc7c0bfe697d82f68693ffee00f0c0e7ecf4aefc75736b |
|
MD5 | a97b3da8519f742f57d26996ff272b60 |
|
BLAKE2b-256 | a1aa57aa4820fce7e7f30cd127a8db222f263e62a753842f9aa6b14813588f9e |
Hashes for dulwich-0.20.15-cp39-cp39-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 22ef7832678af5c34ae2bb0cf26645f51becce104b85c960d26cc446fbd6f137 |
|
MD5 | a3d702df05128409bc6c9073e082c9c8 |
|
BLAKE2b-256 | 0712f4344682d8e64bdec895f79e61c3b77bd15475f165a77e1c48bd0f131e67 |
Hashes for dulwich-0.20.15-cp39-cp39-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0eb7818b633599ad30d148fe54fcdcaae3e21fefdc835ecefbf83a5e54b40e6c |
|
MD5 | 87e810c1e2ec72ce93d63e6e7a465319 |
|
BLAKE2b-256 | 5f2757eafdca5cfac48868ab547605c861b9ebbe4680d3525ac2b883a03e1ac4 |
Hashes for dulwich-0.20.15-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55613b1cecf0103835d05a04644ce0868630a6d5ba2ac83f847ce407798a7cb8 |
|
MD5 | 934959a3361a73f09701b19107c18637 |
|
BLAKE2b-256 | e2359267e2bcca5dc3a66b7a1fe0a1dbdc18bb9ec5936f80b76183d40084b8f1 |
Hashes for dulwich-0.20.15-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6eaa7b6dd07df31759cee06ba30489c421cd0ff993099223a7c7b89f191d8d32 |
|
MD5 | 1e72f56e2801be9f3b505c277a52c9e5 |
|
BLAKE2b-256 | 579df85480f732be2e63f7f8f428de73b18b90c7b512b5508e6186b6987c6661 |
Hashes for dulwich-0.20.15-cp38-cp38-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 17dd011ddd1cff8f0e80a9bb8a28442cc071dec0fbefc8202dbde8b1db3f4d4d |
|
MD5 | 2109f43cf6201e057185cc1f55ad78d4 |
|
BLAKE2b-256 | 2049dbde63a875094725f8f95252d22317f752d30e8433a50db355a219cd98ed |
Hashes for dulwich-0.20.15-cp38-cp38-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec6e7ffc5ff387d4173397619308939504736767454e29b02847ea0f801890b6 |
|
MD5 | 03d51a6c470f0edcf5b1b8a994eb18ce |
|
BLAKE2b-256 | 828f97ce9a764438bd11dc0dd73e547b66200e21abe3c511faed00f025db3311 |
Hashes for dulwich-0.20.15-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fea0dbd77e5123b81b76582713151bee3ca78f1706026895bfc4040ae1e88894 |
|
MD5 | c18c2ad7bd5a4c616e6c8f866f57d851 |
|
BLAKE2b-256 | d5a2d3c0399d6750b8c8a1f115a47295aa7f8ebda6ea8af7d09cdd2633ccc058 |
Hashes for dulwich-0.20.15-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 63874b54a56871ab69c34d7c3f8f5e2af3949cb47dd491fcc473a6fd25d31f72 |
|
MD5 | bfde2f8f562bac34a843ed6f777b42f1 |
|
BLAKE2b-256 | 0ebfbb670bb035e1ae37a06e82ffffed56c24029c0a3e53728ce33c9219ade17 |
Hashes for dulwich-0.20.15-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c9eeff547e09c90c4aadc12dc99bac7cfb962def728b9fc012cfd58a3129dad0 |
|
MD5 | 5c25857135b0f3623950e140241a8248 |
|
BLAKE2b-256 | 7eb1f461e98e7296b8fc4ed69cccd7d4d70eb2372e8e55a21903b64ec9fc4af1 |
Hashes for dulwich-0.20.15-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0e852cd0f74209147cbcf6b58efc32c96297b4942bea3c669a7221133bc25d0 |
|
MD5 | ebceca235601b7bb9a48073d562ef22c |
|
BLAKE2b-256 | da105d40d1328d8111a28882e054a2b252bb3a8e99e3c3d99567bd69a96aa0f3 |
Hashes for dulwich-0.20.15-cp37-cp37m-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8088a41d6fe6f8871abd1a8ad5fa7a7cadb9c1b7455d397c9a54cc10b04d825 |
|
MD5 | 19644da1c18ae1aa4d93430b67a83aaf |
|
BLAKE2b-256 | b9180efbcb3e451bf360c93ea65dab0e27cdd312ea645954d7442edc1118ca05 |
Hashes for dulwich-0.20.15-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | feb2a10771710d05eff0f0b89979a0b688d7dff8ab1f0dd3a2b7b1147691bb9f |
|
MD5 | e0fa88070fc88b9e11a9e97d4bf68cd3 |
|
BLAKE2b-256 | 979cab3206a1f9fb81187e057ac503071c9c416c494945261307d97be412f05f |
Hashes for dulwich-0.20.15-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 615e3fab089273ade8ef8377e2b469f45f1d09c948782e47f386cbf95d663e29 |
|
MD5 | cc672c9c11d6b9310598dcafe9c87845 |
|
BLAKE2b-256 | 1f08373b5baeb49855d67416def8bef22f2c443911eb3aad777f4bc18d750cb5 |
Hashes for dulwich-0.20.15-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f49475bdfcab263586f61ac485f1d9e83e0d56de4173bae8f06f3da32620c71 |
|
MD5 | ac2e795b4e56453f04c4367393bfc817 |
|
BLAKE2b-256 | 4a24b4fe4fb9e5882d83b0bfea5099f5e724cc0102451235356ce1cb2286f05f |
Hashes for dulwich-0.20.15-cp36-cp36m-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e0c5c863eaed3825473646ae9ec7d5847dacbb06bb11abcfadb488ac93a15b4c |
|
MD5 | 42c1bff7286f4e58570e0bcb15a56a16 |
|
BLAKE2b-256 | e9fe5fb50a7946913f6d65ae409838a889576de6d0b865180ed8cc07352d4f22 |