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.13.tar.gz (389.6 kB view details)

Uploaded Source

Built Distributions

dulwich-0.20.13-cp39-cp39-win_amd64.whl (461.4 kB view details)

Uploaded CPython 3.9 Windows x86-64

dulwich-0.20.13-cp39-cp39-manylinux2010_x86_64.whl (503.6 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.12+ x86-64

dulwich-0.20.13-cp39-cp39-manylinux1_x86_64.whl (503.6 kB view details)

Uploaded CPython 3.9

dulwich-0.20.13-cp39-cp39-macosx_10_14_x86_64.whl (449.5 kB view details)

Uploaded CPython 3.9 macOS 10.14+ x86-64

dulwich-0.20.13-cp38-cp38-win_amd64.whl (461.3 kB view details)

Uploaded CPython 3.8 Windows x86-64

dulwich-0.20.13-cp38-cp38-manylinux2010_x86_64.whl (505.4 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

dulwich-0.20.13-cp38-cp38-manylinux1_x86_64.whl (505.4 kB view details)

Uploaded CPython 3.8

dulwich-0.20.13-cp38-cp38-macosx_10_14_x86_64.whl (449.5 kB view details)

Uploaded CPython 3.8 macOS 10.14+ x86-64

dulwich-0.20.13-cp37-cp37m-win_amd64.whl (461.2 kB view details)

Uploaded CPython 3.7m Windows x86-64

dulwich-0.20.13-cp37-cp37m-manylinux2010_x86_64.whl (504.4 kB view details)

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

dulwich-0.20.13-cp37-cp37m-manylinux1_x86_64.whl (504.4 kB view details)

Uploaded CPython 3.7m

dulwich-0.20.13-cp37-cp37m-macosx_10_14_x86_64.whl (449.4 kB view details)

Uploaded CPython 3.7m macOS 10.14+ x86-64

dulwich-0.20.13-cp36-cp36m-win_amd64.whl (461.2 kB view details)

Uploaded CPython 3.6m Windows x86-64

dulwich-0.20.13-cp36-cp36m-manylinux2010_x86_64.whl (501.6 kB view details)

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

dulwich-0.20.13-cp36-cp36m-manylinux1_x86_64.whl (501.6 kB view details)

Uploaded CPython 3.6m

dulwich-0.20.13-cp36-cp36m-macosx_10_14_x86_64.whl (449.4 kB view details)

Uploaded CPython 3.6m macOS 10.14+ x86-64

File details

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

File metadata

  • Download URL: dulwich-0.20.13.tar.gz
  • Upload date:
  • Size: 389.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.4.2 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.8.0 tqdm/4.51.0 CPython/3.9.0+

File hashes

Hashes for dulwich-0.20.13.tar.gz
Algorithm Hash digest
SHA256 a5edcd168c66a10f9a663950eb3e7bd6c8e5a2ecf10495331f44c549e03c36c2
MD5 d3dc823932fcdbe2b12fa1b1f3982f13
BLAKE2b-256 3863d13c38c45e44b616ca7160bd9132387593f779feffeb0ea751ecc3e2ee71

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.13-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 461.4 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.9.0

File hashes

Hashes for dulwich-0.20.13-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 071f326dcc67835141102e80bbfaf847d6ea9debf91e6fe258ceb94c5bf49118
MD5 97989284c773443d3c0e552bde54f2c8
BLAKE2b-256 d4232c8b2c0b40569f2aadd16d84e29b7483723f15bdbe988fd7f7dc662a6c06

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.13-cp39-cp39-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 503.6 kB
  • Tags: CPython 3.9, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.9.0

File hashes

Hashes for dulwich-0.20.13-cp39-cp39-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 245153c87aceae02ed020535592cdaa1c1ca51b1488b58433c0edc17e6d30816
MD5 1455a445e6229b05d53980c7490dc016
BLAKE2b-256 e1f41badb307288026fce99a0d3681512ba8000b0c0eda3c47594f77f3fd5a75

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.13-cp39-cp39-manylinux1_x86_64.whl
  • Upload date:
  • Size: 503.6 kB
  • Tags: CPython 3.9
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.9.0

File hashes

Hashes for dulwich-0.20.13-cp39-cp39-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 2ec505895eb13d399ed8b230a7129ed04ca022ac5d224410189f3ef59b9adcae
MD5 6200c336b07794648cfca2e1b1cd864e
BLAKE2b-256 5c68a4cc5d28a9d99c7e14e232464101ac90b2ca7722847ae3a6f1b320cb832f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.13-cp39-cp39-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 449.5 kB
  • Tags: CPython 3.9, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.9.0

File hashes

Hashes for dulwich-0.20.13-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 fd68ee1117028f225e0d93b39715962062bc480535d63416397524d5fab02a26
MD5 2fe48e61165e8658b5b2b9e270bbf18f
BLAKE2b-256 321bb162f2f10813a467036913ed761222d68f60a29285f0a929a426628c2118

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.13-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 461.3 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.8.6

File hashes

Hashes for dulwich-0.20.13-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 440f05994e5e519dc57a46a91413345771ee5ebfb631f777d227a0a507cef996
MD5 b6c1e7964b5021451d7edba843c4b4d8
BLAKE2b-256 62c7778feeda4155e574547883a129859a5df03e40dc0ad758ebdda9bd8f5d8e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.13-cp38-cp38-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 505.4 kB
  • Tags: CPython 3.8, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.9.0

File hashes

Hashes for dulwich-0.20.13-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 ff9ca68b53eea74e1dc27c7e024d8098cdd1d63543929d93268f1e8a39c7133e
MD5 563d85101882d7b97fda3c23f77ade52
BLAKE2b-256 1289f0d1693ca70fd371b461dbbdc49aaf1277e9d3c9511c622f432e2d03fcae

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.13-cp38-cp38-manylinux1_x86_64.whl
  • Upload date:
  • Size: 505.4 kB
  • Tags: CPython 3.8
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.9.0

File hashes

Hashes for dulwich-0.20.13-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 0b186d3e89f1ba9c7532c526de63a922ed16d5e6dabd7c134eac887ac383bc55
MD5 e188dcdba42350ef12dccb9fd1fa81c7
BLAKE2b-256 041477856c619c8a0201a588ed7764d9fc40384a20986837a3c80641c8cb0ad7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.13-cp38-cp38-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 449.5 kB
  • Tags: CPython 3.8, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.8.6

File hashes

Hashes for dulwich-0.20.13-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 45626880ecfc5f031c70f0110587ab8a67e3c2a923898734a975dc68b2ffb719
MD5 4e74b63d1ca7181eadb8c5d374b075ae
BLAKE2b-256 cff636f2926425466afcbbb73ddfaf57d96424211fce09ac24a8897915b98453

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.13-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 461.2 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.7.9

File hashes

Hashes for dulwich-0.20.13-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 bf4ea47612520add27b32abdc6aacba4e8d9bd7745117fa778b4f1b46ff7d6d7
MD5 ebcbaa732251c47b1b8b2db6ec46c8ef
BLAKE2b-256 444c8210eb6f158632894769c0953b416335d781de3c64d27c2f3a8fce425886

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.13-cp37-cp37m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 504.4 kB
  • Tags: CPython 3.7m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.9.0

File hashes

Hashes for dulwich-0.20.13-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 3a530835186d213a3f7ae4893186713511d6f64ac944c0343cac10b675b93dbd
MD5 add25b639ae200fc4619fb2331b3b65a
BLAKE2b-256 1535eee4eee93539d67a8a2c64b395ad14fdd2a09cc83408adbab71742de6890

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.13-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 504.4 kB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.9.0

File hashes

Hashes for dulwich-0.20.13-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 9cd4c927ccc22176217cf1761c142883fb7bd30f60d1e815125f249286cac77a
MD5 9df146fdf7b8afa4743b5e1fa6faed2c
BLAKE2b-256 c7a6dc151e3ebae1d1865f056b90b2a6a1474db099052b5dd336fc2683d9b5bc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.13-cp37-cp37m-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 449.4 kB
  • Tags: CPython 3.7m, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.7.9

File hashes

Hashes for dulwich-0.20.13-cp37-cp37m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 0dd50a5638ea3fd2b7832e4c0d7c4d2a4b83c95d49ba4f6b262cb2fc44517a57
MD5 d0468be049a42f5b81359db3de2b53a8
BLAKE2b-256 a8011104a4dbe22311d5585eeeb484aeb39e0a77efecb664c68bba69c0393594

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.13-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 461.2 kB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.6.8

File hashes

Hashes for dulwich-0.20.13-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 7fc766d73d9d2c566e74e2916f5c033cac57049d7c3bf09377ebf2e0a55bb701
MD5 7bc55c225713ff8dd8d301da6ffc7c0c
BLAKE2b-256 c97e1e2ce2314cb8406978aad0e58c4e0686da92be12a8858ab7b360063fe76c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.13-cp36-cp36m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 501.6 kB
  • Tags: CPython 3.6m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.9.0

File hashes

Hashes for dulwich-0.20.13-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 d8a5b8d935ac4fd3c8213e35071727b94792b942ce3eae1917c7f1371cd10613
MD5 ef35dd567babb0d36ae14d40d7dbc417
BLAKE2b-256 964970713d919a5b28933fbb15f230ef3fedfbe835659a2a3a3088539b389d92

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.13-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 501.6 kB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.9.0

File hashes

Hashes for dulwich-0.20.13-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 63130605e32cdeef8a1e7f7d77b044c0b144c69ab24c5f3788091058219be4da
MD5 264d4302af80470d7bc2d35b94992c98
BLAKE2b-256 a86430eec5794a1c31af4c7373e963922a2a78b59879952a8e4d90ac71fc2601

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.13-cp36-cp36m-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 449.4 kB
  • Tags: CPython 3.6m, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.6.12

File hashes

Hashes for dulwich-0.20.13-cp36-cp36m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 db921fc595a5561c0a8b5419c1f77b4b6911af890e4f748e6d078a89e425bb8c
MD5 5809f92b7437b669830113e5abea8d2a
BLAKE2b-256 0beb81ed9637ad3521ac62081a62907e0b8a1904cc412b5de6a7f0b95efa7fa2

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