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

dulwich-0.20.19.tar.gz (393.0 kB view details)

Uploaded Source

Built Distributions

dulwich-0.20.19-cp39-cp39-win_amd64.whl (465.8 kB view details)

Uploaded CPython 3.9 Windows x86-64

dulwich-0.20.19-cp39-cp39-manylinux2010_x86_64.whl (507.9 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.12+ x86-64

dulwich-0.20.19-cp39-cp39-manylinux1_x86_64.whl (507.9 kB view details)

Uploaded CPython 3.9

dulwich-0.20.19-cp39-cp39-macosx_10_14_x86_64.whl (453.8 kB view details)

Uploaded CPython 3.9 macOS 10.14+ x86-64

dulwich-0.20.19-cp38-cp38-win_amd64.whl (465.8 kB view details)

Uploaded CPython 3.8 Windows x86-64

dulwich-0.20.19-cp38-cp38-manylinux2010_x86_64.whl (509.8 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

dulwich-0.20.19-cp38-cp38-manylinux1_x86_64.whl (509.8 kB view details)

Uploaded CPython 3.8

dulwich-0.20.19-cp38-cp38-macosx_10_14_x86_64.whl (453.8 kB view details)

Uploaded CPython 3.8 macOS 10.14+ x86-64

dulwich-0.20.19-cp37-cp37m-win_amd64.whl (465.6 kB view details)

Uploaded CPython 3.7m Windows x86-64

dulwich-0.20.19-cp37-cp37m-manylinux2010_x86_64.whl (508.7 kB view details)

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

dulwich-0.20.19-cp37-cp37m-manylinux1_x86_64.whl (508.7 kB view details)

Uploaded CPython 3.7m

dulwich-0.20.19-cp37-cp37m-macosx_10_14_x86_64.whl (453.7 kB view details)

Uploaded CPython 3.7m macOS 10.14+ x86-64

dulwich-0.20.19-cp36-cp36m-win_amd64.whl (465.7 kB view details)

Uploaded CPython 3.6m Windows x86-64

dulwich-0.20.19-cp36-cp36m-manylinux2010_x86_64.whl (505.9 kB view details)

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

dulwich-0.20.19-cp36-cp36m-manylinux1_x86_64.whl (505.9 kB view details)

Uploaded CPython 3.6m

dulwich-0.20.19-cp36-cp36m-macosx_10_14_x86_64.whl (453.7 kB view details)

Uploaded CPython 3.6m macOS 10.14+ x86-64

File details

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

File metadata

  • Download URL: dulwich-0.20.19.tar.gz
  • Upload date:
  • Size: 393.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.4.2 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.1+

File hashes

Hashes for dulwich-0.20.19.tar.gz
Algorithm Hash digest
SHA256 7a5c976c5ce737ec207be1815c654351bf1d0387fc6480ed32cd58c9d0e2cda9
MD5 71feac2b02bd073ff109d9504ab152d6
BLAKE2b-256 b9a7d37a55a56958d80037c42b76b0c872fb7fb583102a28c29b5a05c978677d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.19-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 465.8 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1

File hashes

Hashes for dulwich-0.20.19-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 4884ac2a372df34bcf2420fcaadafaed34a2c2729f4de84ab245a678f785a5d9
MD5 83aa9a673b430de1c6c09b8f69cd495a
BLAKE2b-256 9e340519e3e67b623117d29d3b848cd1d6dded5257b291c8ec929c20bbe306c7

See more details on using hashes here.

File details

Details for the file dulwich-0.20.19-cp39-cp39-manylinux2010_x86_64.whl.

File metadata

  • Download URL: dulwich-0.20.19-cp39-cp39-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 507.9 kB
  • Tags: CPython 3.9, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1

File hashes

Hashes for dulwich-0.20.19-cp39-cp39-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 906ebdb2bb2fa176eeefcfaa649ec80c308aa33f3dc66526ce5670f5fc6fc25d
MD5 e2e9902c0c03ab80e6a040549f3c2a74
BLAKE2b-256 4194d686d797a74e0adb8ecbe42efe6cc21f28f31376ad1fb7de8a79664819b1

See more details on using hashes here.

File details

Details for the file dulwich-0.20.19-cp39-cp39-manylinux1_x86_64.whl.

File metadata

  • Download URL: dulwich-0.20.19-cp39-cp39-manylinux1_x86_64.whl
  • Upload date:
  • Size: 507.9 kB
  • Tags: CPython 3.9
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1

File hashes

Hashes for dulwich-0.20.19-cp39-cp39-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 706ed62959feae77ce740b750d59feffcb4e1e86598ee74a3751e075fcdb40fa
MD5 4e9534c3906f8bbacd9b6eeb877bfeba
BLAKE2b-256 5935fc65b13e5286d869d940633b2b841031bd585c4283f20dcb789f15693f1d

See more details on using hashes here.

File details

Details for the file dulwich-0.20.19-cp39-cp39-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: dulwich-0.20.19-cp39-cp39-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 453.8 kB
  • Tags: CPython 3.9, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1

File hashes

Hashes for dulwich-0.20.19-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 aece036c56d501768419caadf2b87bed05d5731dea9f74361f7cf91d1308f3ac
MD5 e3dfff3936201dca5b3dfc2a0b19ada8
BLAKE2b-256 ac133f849033b51ed4d8ed5919132ba71a3412efdfeb6513c5b115295ade8299

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.19-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 465.8 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.8.7

File hashes

Hashes for dulwich-0.20.19-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 238a77366967925fd39dbbc2db7329cff503f6bd011372694d095cde832df94d
MD5 3bec5655c330ef48f931920c8212ae8f
BLAKE2b-256 adff31d38c9b52ff967a23e72bfc2d22955b9e72ae0a3405008584fb2a2db11e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.19-cp38-cp38-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 509.8 kB
  • Tags: CPython 3.8, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1

File hashes

Hashes for dulwich-0.20.19-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 992089e76e69180cc74ec4ab35311646f29a99182f50478f87e2dc70f365241c
MD5 efa0b3c7810bbbb17bdc5d4e5c3d422a
BLAKE2b-256 d23ccbc4674db36a0db4d4dcecf71b476bf695d2bf659e4e95599f61af281978

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.19-cp38-cp38-manylinux1_x86_64.whl
  • Upload date:
  • Size: 509.8 kB
  • Tags: CPython 3.8
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1

File hashes

Hashes for dulwich-0.20.19-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 29703ba7bd1402c00e137fbc00d8b5b1c7faec53b958a62aaf2e074e371a5f73
MD5 4fcc16a9593742ee9348462641a94ed4
BLAKE2b-256 207dd0aa4e5891d7161e89f414b9358edfc6ab7e5db0d30eed721464ca0893f9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.19-cp38-cp38-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 453.8 kB
  • Tags: CPython 3.8, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.8.7

File hashes

Hashes for dulwich-0.20.19-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 24c7d65f346c9a07382706ca455d6b189015611ff7cd6db5147cadaceabbed38
MD5 2b5407cc1f583bea3deadce0929575ce
BLAKE2b-256 eacdbd00828182a81cac7dd7e3e7c649003d71ff563d91196b7384a2c493db0d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.19-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 465.6 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.7.9

File hashes

Hashes for dulwich-0.20.19-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 0f67f1c0037ef252f36ab5db851371256a59479c7513ff6f8ded30e212dc4cd2
MD5 3f76a436f08d2c65ad3ffde5cb275ee3
BLAKE2b-256 296980a6e426e7acdddc506d924251b208f40aa9e0698aeb4ceacf49f07c0ee1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.19-cp37-cp37m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 508.7 kB
  • Tags: CPython 3.7m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1

File hashes

Hashes for dulwich-0.20.19-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 bf8e66e0c53e0b2546412a2965f798219cb7493d814b045fb95444176a820b49
MD5 b8e0ec34c048cf57065681dd9ad8a553
BLAKE2b-256 40900463636dba64485fc22780a8ecde0a33b988d9f2e37533da69492e37088d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.19-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 508.7 kB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1

File hashes

Hashes for dulwich-0.20.19-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 c776433967c25cfca34de55c010a3c43f7a88596c10583ea45e1a2e2d823b91f
MD5 5d9b4282a06af4b1267c6aa1d15551b7
BLAKE2b-256 6987bb0b42404a58c3b30a3d780dbb9725eb442978a63f585ed22e6e87cae20c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.19-cp37-cp37m-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 453.7 kB
  • Tags: CPython 3.7m, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.7.9

File hashes

Hashes for dulwich-0.20.19-cp37-cp37m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 5b910889ec279ef9da9a70cd9421828d3aedcf609984d296ac1db82bd2ae4c60
MD5 f6d1225ffa111299e93a867b2b5a0b4e
BLAKE2b-256 685cb5c09317f46b64470d6412ecf498991087dbc84f4c64a66d4ca346be13cf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.19-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 465.7 kB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.6.8

File hashes

Hashes for dulwich-0.20.19-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 938be8e37de55ec98eff34190b42aef6827c7d1494523333d7916df6cc31e31f
MD5 81328253bc22e3722d4494e1a3b52b2d
BLAKE2b-256 3c7b28e5cfb86709fa90e49b45b542133d124cc5503bdeb88f6a953bc1913315

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.19-cp36-cp36m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 505.9 kB
  • Tags: CPython 3.6m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1

File hashes

Hashes for dulwich-0.20.19-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 53240bea61f96c0f9fc241d5bdad847b9c8e76c2644708e87052dfcc10ef2bda
MD5 86be1483833e500606ef859ef348b134
BLAKE2b-256 8f76f0c1e451e112c74147ba25b7526a34420a810809d9aabd472d70c1a83ed1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.19-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 505.9 kB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1

File hashes

Hashes for dulwich-0.20.19-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 b7f339a897c55f84692144fadbf237de1df5385bc29ee5d118fd319601a470ef
MD5 8f5bcc390833e7378f7e37a6baa28918
BLAKE2b-256 f3a1892dd59af3ebd65bba3d42ad216948f14b16efc39e72a9c74516f449459f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.19-cp36-cp36m-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 453.7 kB
  • Tags: CPython 3.6m, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.6.12

File hashes

Hashes for dulwich-0.20.19-cp36-cp36m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 acd1f553cd9ed1598991b275ae13fd0eb2f78e7e9b27b576d4a01019e248cd26
MD5 811b510523ee9ac0ab9ee512ca05dc11
BLAKE2b-256 c52277ef1b6e5cb09e2dc5012cccfaaa03bd664942796a22f71e9a346ee3b01d

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