Skip to main content

Python Git Library

Project description

Build Status Windows Build Status

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, 3.6, 3.7, 3.8 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

dulwich-0.20.3.tar.gz (376.5 kB view details)

Uploaded Source

Built Distributions

dulwich-0.20.3-cp38-cp38-win_amd64.whl (452.9 kB view details)

Uploaded CPython 3.8 Windows x86-64

dulwich-0.20.3-cp38-cp38-manylinux2010_x86_64.whl (497.1 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

dulwich-0.20.3-cp38-cp38-manylinux1_x86_64.whl (497.1 kB view details)

Uploaded CPython 3.8

dulwich-0.20.3-cp38-cp38-macosx_10_14_x86_64.whl (441.0 kB view details)

Uploaded CPython 3.8 macOS 10.14+ x86-64

dulwich-0.20.3-cp37-cp37m-win_amd64.whl (452.7 kB view details)

Uploaded CPython 3.7m Windows x86-64

dulwich-0.20.3-cp37-cp37m-manylinux2010_x86_64.whl (496.1 kB view details)

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

dulwich-0.20.3-cp37-cp37m-manylinux1_x86_64.whl (496.1 kB view details)

Uploaded CPython 3.7m

dulwich-0.20.3-cp37-cp37m-macosx_10_14_x86_64.whl (440.9 kB view details)

Uploaded CPython 3.7m macOS 10.14+ x86-64

dulwich-0.20.3-cp36-cp36m-win_amd64.whl (452.8 kB view details)

Uploaded CPython 3.6m Windows x86-64

dulwich-0.20.3-cp36-cp36m-manylinux2010_x86_64.whl (493.3 kB view details)

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

dulwich-0.20.3-cp36-cp36m-manylinux1_x86_64.whl (493.3 kB view details)

Uploaded CPython 3.6m

dulwich-0.20.3-cp36-cp36m-macosx_10_14_x86_64.whl (440.9 kB view details)

Uploaded CPython 3.6m macOS 10.14+ x86-64

dulwich-0.20.3-cp35-cp35m-macosx_10_14_x86_64.whl (440.9 kB view details)

Uploaded CPython 3.5m macOS 10.14+ x86-64

File details

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

File metadata

  • Download URL: dulwich-0.20.3.tar.gz
  • Upload date:
  • Size: 376.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.23.0 setuptools/44.1.1 requests-toolbelt/0.8.0 tqdm/4.43.0 CPython/3.8.3

File hashes

Hashes for dulwich-0.20.3.tar.gz
Algorithm Hash digest
SHA256 226491bcf3cdd629c8558d0b4d50b0e9a991a74fb9836c39e90c8c7b445b662c
MD5 aceb2999eead67de5f5b0f53409eadcc
BLAKE2b-256 424c1da52a9a47983618a4fbbb971e29c617b43f9a63201122cccddcb53fd006

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.3-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 452.9 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

File hashes

Hashes for dulwich-0.20.3-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 4965383490cad4bfeb55fff554da8de6f9d335f9ee305b554bfbec699f7b1be5
MD5 4c576fa16a44f09952d6cc8182c1bac8
BLAKE2b-256 98b2ebea8e61e3ec38c30ef46858dc522e2eba1f0b1b055c237036500da511ba

See more details on using hashes here.

File details

Details for the file dulwich-0.20.3-cp38-cp38-manylinux2010_x86_64.whl.

File metadata

  • Download URL: dulwich-0.20.3-cp38-cp38-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 497.1 kB
  • Tags: CPython 3.8, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

File hashes

Hashes for dulwich-0.20.3-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 006697a9bcb813798d4d84a89ae3e80cf75a5f3a59404b0562de855b2c09c55e
MD5 af80036fc4cd8890027cf27fc47bbc66
BLAKE2b-256 77888e9a30c0f858f1ebf7a72bcfd84504fb81e5af4e31eaf36612a4755da9d3

See more details on using hashes here.

File details

Details for the file dulwich-0.20.3-cp38-cp38-manylinux1_x86_64.whl.

File metadata

  • Download URL: dulwich-0.20.3-cp38-cp38-manylinux1_x86_64.whl
  • Upload date:
  • Size: 497.1 kB
  • Tags: CPython 3.8
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

File hashes

Hashes for dulwich-0.20.3-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 9b1561fc8f5e05b604f164e90d7bc352e60e91c8f9dee7e1c200e529e36ce880
MD5 4ef075a599b724e7937be13542ecc56d
BLAKE2b-256 01f66fd5d80a57c208641983c6f912dfbdbc477feecaa61a9693664a90584149

See more details on using hashes here.

File details

Details for the file dulwich-0.20.3-cp38-cp38-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: dulwich-0.20.3-cp38-cp38-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 441.0 kB
  • Tags: CPython 3.8, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

File hashes

Hashes for dulwich-0.20.3-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 b3bb465cb3bf875bbe65bd809a95a0ec7c07005a85315d1d41999adcb7c7b41a
MD5 91ded5645b7fae9502ba5ba8dfc2de7a
BLAKE2b-256 14fa7253b34cdf2fe958e3f42bc21ec2ddb72ed309c7d498e659015b66a80226

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.3-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 452.7 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.7

File hashes

Hashes for dulwich-0.20.3-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 b43fbb89ee1f4941d11fed325a372cce4f3e0bcdb1e6b42b33407b32cd0504fa
MD5 4a286af1c90f43efc77c1408cb0955ca
BLAKE2b-256 4f944865bd87e014bddb9837067acc2e7e12d15fe5b26b030455355825833744

See more details on using hashes here.

File details

Details for the file dulwich-0.20.3-cp37-cp37m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: dulwich-0.20.3-cp37-cp37m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 496.1 kB
  • Tags: CPython 3.7m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

File hashes

Hashes for dulwich-0.20.3-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 10d4de513f6cf64128ea332698dc7c31d93881995c933951f6e972b655491277
MD5 1af78298a2feba43427d545d27977a8a
BLAKE2b-256 877286a53aa680b75e3cdab361d7feabf2f03befbdc3532f39374976449d803a

See more details on using hashes here.

File details

Details for the file dulwich-0.20.3-cp37-cp37m-manylinux1_x86_64.whl.

File metadata

  • Download URL: dulwich-0.20.3-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 496.1 kB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

File hashes

Hashes for dulwich-0.20.3-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 1581bac6e9becd9ff44ad934bfe3f7f70ac11c2499f7c309705bc7c62fe4216e
MD5 b84b67e462c9db675cbc4dc199beaa49
BLAKE2b-256 838581f5014cbef325018042a2779bac3119cac377dd8cc2e393c036c5de47d8

See more details on using hashes here.

File details

Details for the file dulwich-0.20.3-cp37-cp37m-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: dulwich-0.20.3-cp37-cp37m-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 440.9 kB
  • Tags: CPython 3.7m, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.7

File hashes

Hashes for dulwich-0.20.3-cp37-cp37m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 d04ad946a3bfbf8721af1702a032e0c55d044a14a8b53e5a68bba6c3b9e1e00d
MD5 a12eb010fcaaca6ed4a46b02ed908091
BLAKE2b-256 46af1bdb02409dba313eaca27d37803fbddac0c19dbac7a1da16b706d2056ee6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.3-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 452.8 kB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.6.8

File hashes

Hashes for dulwich-0.20.3-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 a9341f9f1128cdcaefd68e96c9fdcdcc2b9e3e7ae3e259137b1efd8c7ee30ff1
MD5 ed35677b2b17c0655f41edcf41bd3961
BLAKE2b-256 d337eb96f02f4781340a0e489fabcd132a5bef651bb418c6d1b8eddb61f84062

See more details on using hashes here.

File details

Details for the file dulwich-0.20.3-cp36-cp36m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: dulwich-0.20.3-cp36-cp36m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 493.3 kB
  • Tags: CPython 3.6m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

File hashes

Hashes for dulwich-0.20.3-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 c2b4940c68f1d191240edb356849dcea55c2bf2e27d7edcaa8c49c6f599c10b0
MD5 f36df9fa8fb7870e9128c468188fad68
BLAKE2b-256 af1bcfe0efa6e7d00eec1798f6641ef06ae067cccb057c00063d30fef8a4650f

See more details on using hashes here.

File details

Details for the file dulwich-0.20.3-cp36-cp36m-manylinux1_x86_64.whl.

File metadata

  • Download URL: dulwich-0.20.3-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 493.3 kB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

File hashes

Hashes for dulwich-0.20.3-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 bda9507bd8db15471a134f42864e1242fc672240191bc284e3e5439774349fd7
MD5 100c597421def521a9e66eaf2fa086ab
BLAKE2b-256 60e75e0e078ddbf93594fc041a6af48136e7247f2791694e5dfcafd544a5ac48

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.3-cp36-cp36m-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 440.9 kB
  • Tags: CPython 3.6m, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.6.10

File hashes

Hashes for dulwich-0.20.3-cp36-cp36m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 5ee91322459035a02c489e876d86abc33f56fa2da87d652cf2ba8e844d856740
MD5 0b58249d476b5356f74616049e82905d
BLAKE2b-256 76f198cc416e77d9e22e78beb51c9b383def914546e94c4f1a4ef1690908fb53

See more details on using hashes here.

File details

Details for the file dulwich-0.20.3-cp35-cp35m-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: dulwich-0.20.3-cp35-cp35m-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 440.9 kB
  • Tags: CPython 3.5m, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/28.8.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.5.9

File hashes

Hashes for dulwich-0.20.3-cp35-cp35m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 957a05686af8ea868a6849674cf49e4c8c41252f66b999d938d532bdfd60cbf0
MD5 8ce4781a169fea47c98f4438b8a95a4e
BLAKE2b-256 23ca8e32e4fd0eb58f2d8b70de7df2c95bc30ebc5a349da46f8ad109035b68b8

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