Skip to main content

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 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

dulwich-0.20.42.tar.gz (423.2 kB view details)

Uploaded Source

Built Distributions

dulwich-0.20.42-cp310-cp310-win_amd64.whl (496.0 kB view details)

Uploaded CPython 3.10 Windows x86-64

dulwich-0.20.42-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (538.1 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ ARM64

dulwich-0.20.42-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (552.4 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.12+ x86-64 manylinux: glibc 2.5+ x86-64

dulwich-0.20.42-cp310-cp310-macosx_10_15_x86_64.whl (483.7 kB view details)

Uploaded CPython 3.10 macOS 10.15+ x86-64

dulwich-0.20.42-cp39-cp39-win_amd64.whl (496.0 kB view details)

Uploaded CPython 3.9 Windows x86-64

dulwich-0.20.42-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (537.6 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ ARM64

dulwich-0.20.42-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (551.8 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.12+ x86-64 manylinux: glibc 2.5+ x86-64

dulwich-0.20.42-cp39-cp39-macosx_10_15_x86_64.whl (483.7 kB view details)

Uploaded CPython 3.9 macOS 10.15+ x86-64

dulwich-0.20.42-cp38-cp38-win_amd64.whl (496.0 kB view details)

Uploaded CPython 3.8 Windows x86-64

dulwich-0.20.42-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (540.4 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ ARM64

dulwich-0.20.42-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (553.6 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64 manylinux: glibc 2.5+ x86-64

dulwich-0.20.42-cp38-cp38-macosx_10_15_x86_64.whl (483.7 kB view details)

Uploaded CPython 3.8 macOS 10.15+ x86-64

dulwich-0.20.42-cp37-cp37m-win_amd64.whl (495.8 kB view details)

Uploaded CPython 3.7m Windows x86-64

dulwich-0.20.42-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (536.6 kB view details)

Uploaded CPython 3.7m manylinux: glibc 2.17+ ARM64

dulwich-0.20.42-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (552.6 kB view details)

Uploaded CPython 3.7m manylinux: glibc 2.12+ x86-64 manylinux: glibc 2.5+ x86-64

dulwich-0.20.42-cp37-cp37m-macosx_10_15_x86_64.whl (483.6 kB view details)

Uploaded CPython 3.7m macOS 10.15+ x86-64

dulwich-0.20.42-cp36-cp36m-win_amd64.whl (495.8 kB view details)

Uploaded CPython 3.6m Windows x86-64

dulwich-0.20.42-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (536.6 kB view details)

Uploaded CPython 3.6m manylinux: glibc 2.17+ ARM64

dulwich-0.20.42-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (549.8 kB view details)

Uploaded CPython 3.6m manylinux: glibc 2.12+ x86-64 manylinux: glibc 2.5+ x86-64

dulwich-0.20.42-cp36-cp36m-macosx_10_14_x86_64.whl (483.3 kB view details)

Uploaded CPython 3.6m macOS 10.14+ x86-64

File details

Details for the file dulwich-0.20.42.tar.gz.

File metadata

  • Download URL: dulwich-0.20.42.tar.gz
  • Upload date:
  • Size: 423.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for dulwich-0.20.42.tar.gz
Algorithm Hash digest
SHA256 72ba3b60ae6a554d1332b3b40a345febe16ec469cf6014bb443b719902e33ef0
MD5 4fa7821a13c51d7f5b9a5ead5fec4be1
BLAKE2b-256 6edc4675d0f8b166a7c3a712b419385891b3fd575fca9f775f762a0833c0e675

See more details on using hashes here.

File details

Details for the file dulwich-0.20.42-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for dulwich-0.20.42-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 546c3cfd8df20cd145cb8751e3abd52d84911422014a93b95bb324274f5b0756
MD5 ff02d36e62865fb8d294bf845b1415ef
BLAKE2b-256 48bb29d507c2dce87914a7a02a3c7ac886338b6cddc26d220f1b2cabff299135

See more details on using hashes here.

File details

Details for the file dulwich-0.20.42-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for dulwich-0.20.42-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 a3f67e145762fce0f48703f9e4ce20577e52585a9efe9282a74ed2b5e9059a0f
MD5 1368c3b16528115f42b221dd302709a0
BLAKE2b-256 e4913bfae0f859390437ac85a59adb893e17bcf2d4c70a1f55a4c7424f718b06

See more details on using hashes here.

File details

Details for the file dulwich-0.20.42-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for dulwich-0.20.42-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 f4a92eb77377886fdf5c7043842d83372c37175e0af3fcfbb226414ce30a1f88
MD5 84de4ce1a11b1fa9b27df7408b381b1b
BLAKE2b-256 b2704f221428938de73bb02e66df9adabe18aa15e245ffe1430fb98309059e1c

See more details on using hashes here.

File details

Details for the file dulwich-0.20.42-cp310-cp310-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for dulwich-0.20.42-cp310-cp310-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 1e47b2f84d280b9bc0060a19b767402a43efb3a37774d6f613a23e1c1d813e43
MD5 7a8ea073451246508439da3a19844228
BLAKE2b-256 c2417b28fdcf85da34e78f6ccb6176947ad6db0f52bdf475e0cbc0f3a09e7a17

See more details on using hashes here.

File details

Details for the file dulwich-0.20.42-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: dulwich-0.20.42-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 496.0 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.4

File hashes

Hashes for dulwich-0.20.42-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 23922557bc487597ff1a0efc56e4436e275a82837b55e5f733e3e05c873e92b1
MD5 66f8767a94eb1645710dfb450b4229ed
BLAKE2b-256 f193e9a667908c792560ac3bce2ee6131f2100dead4907ddb2ee9c7ff94a09ad

See more details on using hashes here.

File details

Details for the file dulwich-0.20.42-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for dulwich-0.20.42-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 2f69595e14061752cff04ac0cbada210d550645e189071bc3e24c9b1043d3064
MD5 1281e11d49126a0304731118b250d5b7
BLAKE2b-256 5499c00fc6f0d7d44fa38e011e02ffd99511fba682784cef011c1a563b782ea7

See more details on using hashes here.

File details

Details for the file dulwich-0.20.42-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for dulwich-0.20.42-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 3ac93b9df220ee5f99c86538d46c337d82d35caa72d013b95084ca06325e90c9
MD5 6ffc4e5a529235f24be8d8edd1104dd4
BLAKE2b-256 fe81f977113b420a370b70413534b735469ed7add13d5a8d610f375632398f76

See more details on using hashes here.

File details

Details for the file dulwich-0.20.42-cp39-cp39-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for dulwich-0.20.42-cp39-cp39-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 67a626230665bc95f0aa955530fac7b8802c62d7a254acabc2764ac1985afcba
MD5 0d2895b0fe9e82a2f12ac4c68be3f4fc
BLAKE2b-256 e9efbb7d10bca2181d782abc81f86f3b09e01c7a7e88b4247d12a29c97582aec

See more details on using hashes here.

File details

Details for the file dulwich-0.20.42-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: dulwich-0.20.42-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 496.0 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.4

File hashes

Hashes for dulwich-0.20.42-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 76e2da298a7bfd59a522750903656c7a2202a47a107ae711e0741b08729c51ee
MD5 cbfd1eb18e588c9adb51d990dfab69a3
BLAKE2b-256 abeaa413040ab77ca4db8886035000681d07c811ca7ab8b7da5b0d3cbfcc2ef9

See more details on using hashes here.

File details

Details for the file dulwich-0.20.42-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for dulwich-0.20.42-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 91299d239afce5246eba38fe0667d7b9dae0d058360fbe253c6f388650dc8b01
MD5 35f84829d88af4a93a560acde92ad300
BLAKE2b-256 3cda7acc2bd04331f0fbd9d0214a77502adb530f80bd271a49df101e5c4ae410

See more details on using hashes here.

File details

Details for the file dulwich-0.20.42-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for dulwich-0.20.42-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 1cdd1ad1bd067b1bbb726c5d0865f5db2cf2824b9c77737e028cd157ceec1efb
MD5 fdb07b81baf05372663fcc5a8ac35d0e
BLAKE2b-256 92def86772d8c9ef2831b6f4b3735fb591a51d74e7ac676230afe50085bc6faa

See more details on using hashes here.

File details

Details for the file dulwich-0.20.42-cp38-cp38-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for dulwich-0.20.42-cp38-cp38-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 2145f1299b221d60379517983f430d68f43243df1bde86b2c793ac752833bf3c
MD5 e9f2ebce47753d67e0a34b51ebe7df93
BLAKE2b-256 9a58486477028253ebb815a0c6c1434bebefd74b7620b63617506f24e1616b38

See more details on using hashes here.

File details

Details for the file dulwich-0.20.42-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: dulwich-0.20.42-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 495.8 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.4

File hashes

Hashes for dulwich-0.20.42-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 6df2d3fa24c69cd2c6daa2ba05c559e3876819d5b1abfc84b849f34686a56fd9
MD5 c3d3357113e3be754efc13579a99eb9a
BLAKE2b-256 0faabd276846d53762bdead75810207e4cd3aa3e62e197170c8afea7167be4e6

See more details on using hashes here.

File details

Details for the file dulwich-0.20.42-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for dulwich-0.20.42-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 6c488427dcbc0861f5bf16829298f061332667af6efd65fab5d8f22ab896e71d
MD5 3ec11665927d394c4d8ff557d738cf51
BLAKE2b-256 62ee8079866485d14cadd2483b7ceda282d0597730296affc0f09bf4671a4303

See more details on using hashes here.

File details

Details for the file dulwich-0.20.42-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for dulwich-0.20.42-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 9f8c224dece64f9750bedfdeaf89ed94d9ae2f38f9600812615bd5dc4ea84f53
MD5 e6a7a4d655f393321e5f7db70409569c
BLAKE2b-256 e3572139ea7d1543cf79eec69f0e293f306285ae85c0422b9a980a467e61f265

See more details on using hashes here.

File details

Details for the file dulwich-0.20.42-cp37-cp37m-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for dulwich-0.20.42-cp37-cp37m-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 5ce7a97ea2c25a71c18749de449f81a9728e77e33a6f23d891785c00d05bca2e
MD5 246dd398f54928946098ca96469c1346
BLAKE2b-256 7dde5f82586768403236658fc2d804edc5a4be9c92fa5eb47c08f2ee1e492822

See more details on using hashes here.

File details

Details for the file dulwich-0.20.42-cp36-cp36m-win_amd64.whl.

File metadata

  • Download URL: dulwich-0.20.42-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 495.8 kB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.4

File hashes

Hashes for dulwich-0.20.42-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 e56e3eeb091f9ed9a7156c0bccc3dcf13d44aada86303232f68ea17ecd6aa391
MD5 8ff98b89c0b3e1b6e9caf2a0c3dfe298
BLAKE2b-256 cbe6e4df19d4165fda3ee07f43eb522d637dc71ac5948d1e0b97c09d84e093c6

See more details on using hashes here.

File details

Details for the file dulwich-0.20.42-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for dulwich-0.20.42-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 d6adb07cb06922b4814ee1080f39e36eb15e08fff5ed51b0f78f162142b2b2e4
MD5 651c5377522fcdd544e21198f2d123d1
BLAKE2b-256 04240de770bd8592fc4e7b4d7fdd9b23c08c083ac4b68c25565bf8e9fe08cfdf

See more details on using hashes here.

File details

Details for the file dulwich-0.20.42-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for dulwich-0.20.42-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 ae8a475c0a7d981255695e9f5a15c7de5f45a2cad56633171cc771820850a6b2
MD5 e90fa097fd5afb09a4e7d1c652525592
BLAKE2b-256 b41d5aded76adaf7db76dc39f2f85f6846f762c2b1819086077b0d9a15cfcb1f

See more details on using hashes here.

File details

Details for the file dulwich-0.20.42-cp36-cp36m-macosx_10_14_x86_64.whl.

File metadata

File hashes

Hashes for dulwich-0.20.42-cp36-cp36m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 bf9944b8af7d8655056af6abafa72f09796aadef40b56db395beeaac93d82e6c
MD5 ff2d4361496347b492c752559340b2b2
BLAKE2b-256 459218221b4d6ce39c5548154baee4b63521e3456656539d38f9c7440eeeed33

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page