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 the particular Monty Python sketch.
Installation
By default, Dulwich’ setup.py will attempt to build and install the optional Rust 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 Rust bindings, specify the –pure argument to setup.py:
$ python setup.py --pure install
or if you are installing from pip:
$ pip install --no-binary dulwich dulwich --config-settings "--build-option=--pure"
Note that you can also specify –build-option in a requirements.txt file, e.g. like this:
dulwich --config-settings "--build-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 OFTC, and a dulwich-discuss mailing list.
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.6 and later and Pypy.
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.22.5-pp310-pypy310_pp73-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 06c73538afe87e1c6806b024c70f6d1461564d06c1cfc41055c04046770d7624 |
|
MD5 | 8689e94512e65f1dfa600c7f634a5767 |
|
BLAKE2b-256 | 3cb85b8e709f0235feb97b799a12df8e168eebdfca3d2c04f631fef6e0d680d5 |
Hashes for dulwich-0.22.5-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 113340da58ad2cfec9463618bf9797757e4511059f739e9dd7c9833127a6c0a7 |
|
MD5 | 9a4a3dcaae046203049fdf54b9a2e392 |
|
BLAKE2b-256 | c42b75b3c29574a955c36efbd713c69ff3edc0dc6e55d774159b5970d9982172 |
Hashes for dulwich-0.22.5-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8aff957f5ee70b65be7967cba9e570d1297ec01892bb761b80d0feb02e7a39d4 |
|
MD5 | 72b98eab6db1a67aeefaa66b109dac55 |
|
BLAKE2b-256 | ba02a7bd9890f32515ccec479f75adbe0c932de2783b2ef7a7d54512327901b4 |
Hashes for dulwich-0.22.5-pp310-pypy310_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 231a63b1d33f417ea795b5525d4bda3ef57f62431da2200312aa8868b3c46862 |
|
MD5 | d734aa3867de21c8ba6aa9e2b155f595 |
|
BLAKE2b-256 | 7e4eddd458dc5603698198b682c050058b90ccf56f899bd1ab98634a01f54f96 |
Hashes for dulwich-0.22.5-pp310-pypy310_pp73-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb45a9f5b69629df236d6e29e14c7ae9ecf692cccdbed852de462e4beaaff126 |
|
MD5 | a6e9b9eaac20d3514f9e73aa99f94dce |
|
BLAKE2b-256 | 99a3d792d8b08dbdd2bbb030f47487904af44595385db8de00089fc360209f03 |
Hashes for dulwich-0.22.5-pp39-pypy39_pp73-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b710e1cd40a53d59efb286945dd3643eaa98da2b8113ed183393b4f0c58e294 |
|
MD5 | 33e0280cfa2cfdb419710705c5348e85 |
|
BLAKE2b-256 | 24d0f75340b39d6145593ab963acc0f9874efc2c48b77c5927f4e35ca381b66b |
Hashes for dulwich-0.22.5-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 703f7e8dce08aa2d00946790b757a6133291a62e4759d1f96323f59d495215a0 |
|
MD5 | 40304eadc7f713fa591fdfb8eb7b5786 |
|
BLAKE2b-256 | c21d0476f29f113455c2bb126e519c5e51698480d287bde983a036772fdeb679 |
Hashes for dulwich-0.22.5-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67ec84f8fbf35199f86c309804c569e11d33dac96f25d6f865f130a682ba808b |
|
MD5 | c83447eb819ac55bfa1350e03d3c357c |
|
BLAKE2b-256 | d7c1ca0623cfcdb5004d50c2ac2355610a79bb1ff09f380b17dd5bb59ed04b46 |
Hashes for dulwich-0.22.5-pp39-pypy39_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aee11f7e7dbfea71bdd522f2d4ed25888ef09a751876622c2d11964fd1e062c2 |
|
MD5 | b6f7dcc1ed46b24b537a85fbf1f24e43 |
|
BLAKE2b-256 | dcf70b373fd199e84ece026e68292e898a60b060af4d5bddee5abefd511991e9 |
Hashes for dulwich-0.22.5-pp39-pypy39_pp73-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c2d34a6fcd7c2ca1151506768303b92fe6476213fd4238f6c484020a7fbc6d7 |
|
MD5 | f9212739c6aa64ac803096bcea019cdf |
|
BLAKE2b-256 | 4213792e14b8157b256c655ab02f2cdd64b2152ebfa728ffd9aa74eb514a585f |
Hashes for dulwich-0.22.5-cp313-cp313-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2de0440ea2c372e86e907900684c36b99d55dce805069bf345fbdbcfc3f6e419 |
|
MD5 | 9411fa3473eb19aef71ec546f31aa6b1 |
|
BLAKE2b-256 | 7c4d64b82cb40ff013f8b2288d8436c38713d11d96fcb1fbe162b37c8e402e43 |
Hashes for dulwich-0.22.5-cp313-cp313-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74b615facfbe2385e4ed2166e109c83db2c93056740618b94e4d612354dbe50d |
|
MD5 | 235a63cd84c9279dd824e7dcad66bfed |
|
BLAKE2b-256 | 763204d6aede8964f41b1ea631a56ea613d851a882e76bd84f79c4e565d2ac2f |
Hashes for dulwich-0.22.5-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b32f901704a18a87587f6a2e3655cfaacebfbdea4b5e2a0f5908aea3d6c34d0d |
|
MD5 | f300880c517630a29f3b9e5ad60728dc |
|
BLAKE2b-256 | 4a916b711cee8d25ee84eb4ea268049ef7d965cb4666a5dca59691944213f276 |
Hashes for dulwich-0.22.5-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d24b40c011d3f7efe3e83f786a20b9021c8709c5456823415d50a5f7b08eb0c7 |
|
MD5 | 8b88aca49ed29adb28ab78cb464ee912 |
|
BLAKE2b-256 | 174691400eccdfe35c484bb04b4941417db778dd060386bc1bf3dce586d39253 |
Hashes for dulwich-0.22.5-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81f87e7ff2954bcbd5e520bcbee882810bf10667cf780d6ea93c87f758b273c6 |
|
MD5 | f206f97f1088175a3f48f01c6eb284c4 |
|
BLAKE2b-256 | 32deb96ebedd37ef604a440ae8f2afc61f472e1ff5633894547b1fd1dfcce8d5 |
Hashes for dulwich-0.22.5-cp313-cp313-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d2ff25da411862194065fae2fae2bfe3246d60dc03d1c67369f6dd20ba88c6a |
|
MD5 | e2ae5cdcfa4edbfdd9f30963b74c5e62 |
|
BLAKE2b-256 | 3aee3bdabff53cd18d6427d9fdee67a0b271c6ffbd8144bce23f776a4d3a00b1 |
Hashes for dulwich-0.22.5-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1fd0bbe995d6e999f32c5b387f2086b7f9a2390dcf5f3f3965ebe2f69a9835be |
|
MD5 | 568137805fd5ebbc6b5292807c3105a1 |
|
BLAKE2b-256 | 1f314aa0448028d9e8926026f1972ddb7c7a79a9b26360d26598d9e31e89334f |
Hashes for dulwich-0.22.5-cp312-cp312-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9f5255b4ee5bf7153c15c81d83f3ed345adeac9eb2d0f704a5e1ab7965e3415 |
|
MD5 | ea02b9208279f554105f499c428f9841 |
|
BLAKE2b-256 | 88a29277e2bd88f823bfcefc7a4f454906e360dec40e30069cec922725cd441a |
Hashes for dulwich-0.22.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2fcfb4ee5a86fd205d10c71d1353ea3683c8c117aa8c673f6dcfac4c5e472c85 |
|
MD5 | eeea759f33534b5580b58fbab793dcf4 |
|
BLAKE2b-256 | 79a8ad54f71b93a7c01857088f3c1aae8c92f5b8cbe9e8b755dbfc9d9492cd5e |
Hashes for dulwich-0.22.5-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 03f64b89e3231824cd90b1c38517f29b664d4ecfcef4c49ccb47133fd4d8a1fd |
|
MD5 | dfab3b53856e130f78dad4564a64ab50 |
|
BLAKE2b-256 | 96402c6482393ca1460b5ec48c190065dfb8ebe8c7d833aee8eddb971c6f0f7e |
Hashes for dulwich-0.22.5-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4fc8a0dd621ee918397f424c367501e69db7c65ec7be4c5de650a1b050989638 |
|
MD5 | 6905e8996ecefff0a827fa871eb6d28a |
|
BLAKE2b-256 | 6e98b62bef947bcb9165412c6949467a191661df71911f2172129f3c31df1842 |
Hashes for dulwich-0.22.5-cp312-cp312-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2da61552cc2d6006c25e38590425c36666138dee1d56e331d13fe60356aa020e |
|
MD5 | 712b58720b634d374ce2eb6265883a6a |
|
BLAKE2b-256 | 85034131984e8e1606f24a1f804bb76762eba7dd083490e469a3eee31bd555d5 |
Hashes for dulwich-0.22.5-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9030dd9bc0ef5f320e4d29e0962ddf6059a72328bfdf45ce21f1676af125aade |
|
MD5 | ec9c67a3aaaa953ea4ca1a30a588be66 |
|
BLAKE2b-256 | 0e10c76d7002e82c501a01a70f5d4217598d9facd3bb21253295b5c1b45fb47a |
Hashes for dulwich-0.22.5-cp311-cp311-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65876977d950646c3fd1d5bd9e2fb5cceb9c0ea85353fc32dbe4d80b21636653 |
|
MD5 | e5e6424a8086ad7fd6b7348564336522 |
|
BLAKE2b-256 | 2c86c7c470b20465cf55b70bac4b2aa32e4960fdecd0e5a3c2d4e90315deeb86 |
Hashes for dulwich-0.22.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 51d34caf86d84af8da336ba4110ce3442d4c103288025a95694256abdc99e537 |
|
MD5 | 2c643fa9dd0f62d099c758d34e230f96 |
|
BLAKE2b-256 | 8ec3fc16826fef480a8b50765f84cb1c3c56e4a6646d0825718be89bd057b094 |
Hashes for dulwich-0.22.5-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5dc527df5b02de3524312325500dd395dd45bb111972f213c42c480c355bd4a |
|
MD5 | 829fc40a5a07337a35b036e0815843d9 |
|
BLAKE2b-256 | 98cad296f602595c53c891a99558c7755693175d29aa891a53a3058c964e744f |
Hashes for dulwich-0.22.5-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cba4ff751dc756299b314971c76652e91a54a3beda25201015b0c84e0da2af67 |
|
MD5 | 89d99316e8e36209cb78e8dc1cbfaea3 |
|
BLAKE2b-256 | e44b6116b740041987c565cf12e0d6e1a8fce8719bbd44afdb22b3c96190dcec |
Hashes for dulwich-0.22.5-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c0961a95bd305f1bb5863f079c78587f43a8f1a85288021443b6d393d33e409 |
|
MD5 | 233b7a8f2863eac6e4bb9b5398de43f1 |
|
BLAKE2b-256 | 5f9f993dfbe62659276a8c203816fac8b608d96d06df21747836371b2a20bf41 |
Hashes for dulwich-0.22.5-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b48dcf8b8fff6624a59964b16282bad36298752f61a27050fe22d474f084eee8 |
|
MD5 | f3a80283b44701bb62e090309ff4d4e6 |
|
BLAKE2b-256 | 318c73f01fa9379aff046e164141ae35f4dca6a204482ec704659b1001d0c9d8 |
Hashes for dulwich-0.22.5-cp310-cp310-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab3ebfd954c663f119e987ef87d17d80786c85ed17c50bacbf7f3adb277dfbac |
|
MD5 | 25161dcb46181276773afe062b5874d3 |
|
BLAKE2b-256 | 265a14eff707de27284a75ed41ca0cfcba271d00d1e3d51df594ef72f77ab881 |
Hashes for dulwich-0.22.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 416063ce8a428f06d7bc41505bb9b3519acbed827e141f574f44c5d72a203676 |
|
MD5 | 1cb4fd735543ed37681c40ddf4d1ce7e |
|
BLAKE2b-256 | b0c76bd976c92f172747ca0a4b6e31f75421e0697e7a79ce267d9f82866ef0e2 |
Hashes for dulwich-0.22.5-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c62cc22830262724008fa83d6a5a6780c2111799694e70b7dca4a831ffed77a |
|
MD5 | 3ac690d8ac9be229f18b7db863976f1f |
|
BLAKE2b-256 | 9d0bb0f1fdf3262f188b1b3db8eb1c729c09307b4a80b6c8d36a31a572d1ba89 |
Hashes for dulwich-0.22.5-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 44354d10c27f64ba8132527d2f65d0abadd6fc355920b7002571e129a381ad22 |
|
MD5 | 621296e62a361f75b760f1f4582c318e |
|
BLAKE2b-256 | 98b8eacd6005c1e2e62ee4f07b73409ec636c6194f1428ae9cfb623441d654dc |
Hashes for dulwich-0.22.5-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61bf2d4ae5fbd52acea369e9ec10d09d7dc2384fbf7a3d21d0f729505e8c7033 |
|
MD5 | a7586a88e7d322e98c8e98d33edeebdb |
|
BLAKE2b-256 | 318cdbf32573025cfe93df25ca416e53850afd8a625d20fac2df00b99b2383f5 |
Hashes for dulwich-0.22.5-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a008904eba827bc929c82d5c4c54780f80cae0f5aee6142fd0d07733f52f552b |
|
MD5 | 28bdf533e63d7d9a2721d24c09e5b4b9 |
|
BLAKE2b-256 | 089a44ef263a3258eb63c428453fc5e7a862a272ca9e75986999b81dda8dfcff |
Hashes for dulwich-0.22.5-cp39-cp39-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd3ebf70dccb72d0af37fb3601c2131afc4f2ac8011d12f1e55f70550395ba90 |
|
MD5 | 5aa5a01cd8a92cf64080e324299d92a8 |
|
BLAKE2b-256 | 9c0d21b574d4ea27950b9f220cbc446f66f62fdace98e1a3966e2eddf03bf033 |
Hashes for dulwich-0.22.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 700b39ee1c06afe8531644fc98d57313afdc83c673e6388d4faa2ce56907e31a |
|
MD5 | 62bf7813effe6bea1f016645f0440fbd |
|
BLAKE2b-256 | 8325f02c92668a2a8909d94a1ae9957e67172674cf202635dd25a853a700fce7 |
Hashes for dulwich-0.22.5-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a1cf4bbb356ba45b31ce358a5f4e93c950acc09728064885834b2d713d7cb44 |
|
MD5 | e71c3764cd0024f33865f7b428ce2a35 |
|
BLAKE2b-256 | 2e71cb6482600aecb980d8a89407d5c1b61a171db1eef587f7861927b99cb48f |
Hashes for dulwich-0.22.5-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 031af4748540dd4dd16db43a741bb9d9b69c1e1dfde07077169ae53f5c1d1e7e |
|
MD5 | 8f8e79d3bd465f408b341fafb2d3b08b |
|
BLAKE2b-256 | 0bc796babf8599b89cfe4f4744e91bdce9fd1e40599db6c8917c3ce2d5cc1758 |
Hashes for dulwich-0.22.5-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1e84a06d59bffc5495a6eab870ba28fc4314f5379daf952e37c6574e31e441a |
|
MD5 | 68bafa63ab524f3f5917abc4139e023e |
|
BLAKE2b-256 | 1d97953f151dc67f33a130660ad3e926cb51dd2378854cb6370508ca5a3b65fd |