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

Uploaded Source

Built Distributions

dulwich-0.20.11-cp39-cp39-win_amd64.whl (461.0 kB view details)

Uploaded CPython 3.9 Windows x86-64

dulwich-0.20.11-cp39-cp39-manylinux2010_x86_64.whl (503.2 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.12+ x86-64

dulwich-0.20.11-cp39-cp39-manylinux1_x86_64.whl (503.2 kB view details)

Uploaded CPython 3.9

dulwich-0.20.11-cp39-cp39-macosx_10_14_x86_64.whl (449.1 kB view details)

Uploaded CPython 3.9 macOS 10.14+ x86-64

dulwich-0.20.11-cp38-cp38-win_amd64.whl (460.9 kB view details)

Uploaded CPython 3.8 Windows x86-64

dulwich-0.20.11-cp38-cp38-manylinux2010_x86_64.whl (505.0 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

dulwich-0.20.11-cp38-cp38-manylinux1_x86_64.whl (505.0 kB view details)

Uploaded CPython 3.8

dulwich-0.20.11-cp38-cp38-macosx_10_14_x86_64.whl (449.1 kB view details)

Uploaded CPython 3.8 macOS 10.14+ x86-64

dulwich-0.20.11-cp37-cp37m-win_amd64.whl (460.8 kB view details)

Uploaded CPython 3.7m Windows x86-64

dulwich-0.20.11-cp37-cp37m-manylinux2010_x86_64.whl (504.0 kB view details)

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

dulwich-0.20.11-cp37-cp37m-manylinux1_x86_64.whl (504.0 kB view details)

Uploaded CPython 3.7m

dulwich-0.20.11-cp37-cp37m-macosx_10_14_x86_64.whl (449.0 kB view details)

Uploaded CPython 3.7m macOS 10.14+ x86-64

dulwich-0.20.11-cp36-cp36m-win_amd64.whl (460.8 kB view details)

Uploaded CPython 3.6m Windows x86-64

dulwich-0.20.11-cp36-cp36m-manylinux2010_x86_64.whl (501.2 kB view details)

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

dulwich-0.20.11-cp36-cp36m-manylinux1_x86_64.whl (501.2 kB view details)

Uploaded CPython 3.6m

dulwich-0.20.11-cp36-cp36m-macosx_10_14_x86_64.whl (449.0 kB view details)

Uploaded CPython 3.6m macOS 10.14+ x86-64

File details

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

File metadata

  • Download URL: dulwich-0.20.11.tar.gz
  • Upload date:
  • Size: 389.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.4.2 requests/2.24.0 setuptools/44.1.1 requests-toolbelt/0.8.0 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for dulwich-0.20.11.tar.gz
Algorithm Hash digest
SHA256 0b142794fb72647673173b80ed8b75e1f56b42a0972c5b3c752d88766a659d53
MD5 ca5c63a4fe430187a883173608eee49e
BLAKE2b-256 fc864bf0caafc7700904844ad3f25f212d5d8aea5889c67dbdaa66dd213b7203

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.11-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 461.0 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.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.0

File hashes

Hashes for dulwich-0.20.11-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 31be67863f04de66dce9329494b82f2add0ba0476306a67c90705c8e63dca032
MD5 0954548121c370926010112f1b5a70ac
BLAKE2b-256 86740635ab6aaa7c8153aab634f003ae0a4ac5943a54035725c1f96ebb143325

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.11-cp39-cp39-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 503.2 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.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.0

File hashes

Hashes for dulwich-0.20.11-cp39-cp39-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 25c6b0291b9cd032e8ab279e70c052b15c8d7b43efde29b28301da5b40f6b318
MD5 5c22758e988c2fecd1a9b9941224a825
BLAKE2b-256 b9c7a7f13a61f07a53f52c13442c537411675111b3a1b44b66eaf0c8c730e40c

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for dulwich-0.20.11-cp39-cp39-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 4c2cf88b4c785123b7d7cac944fa1825cb37ad47b5266f3eeffb986f04ef11df
MD5 f2588c3b21493cf9427fcd87f94c06e8
BLAKE2b-256 f0b95ad7cc0f0cf8595c7098209213a85e95283f462a209be5bf92c8bb166670

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.11-cp39-cp39-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 449.1 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.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.0

File hashes

Hashes for dulwich-0.20.11-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 4d2845eac377bfc9a35aab2eb215c5c4f91c1571f3eaf53d1fe3766dd37ef9af
MD5 fb8a3eca47f958d74a7a77e35d26ee01
BLAKE2b-256 c6c717d265f7aa7426a5e96f0615e402ca308b9688ec5ff23e0c713777f6d290

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.11-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 460.9 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.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for dulwich-0.20.11-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 0bd68e5464a9f7bdd76b8e683740bdde349bedf1015bf891e702db6fab0f7a38
MD5 67dce5f0d30092c625c929d4809cf2f4
BLAKE2b-256 4883acd7ed733d3467ef54ba56defeaa3a9b3151104b4c918b99813f5a525d9b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.11-cp38-cp38-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 505.0 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.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.0

File hashes

Hashes for dulwich-0.20.11-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 5394978ec6c5b58cf62b18586b70ee948b982cbd57500df7b93e6f961bf8265a
MD5 17abf36b60b22c7b4c12b3d2fb3c765d
BLAKE2b-256 c0cc050d63718c46c59d8495bfe093f0936559de247ffb6d15c97b318ce06622

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for dulwich-0.20.11-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 e5741b15df8b3f6e58a17de81ccf9453a2746639b8e4e2b2859a0ed59500995e
MD5 316c8108c1a325330ff22fe1f3d17575
BLAKE2b-256 bd5d46ecf6446785ad211eaf2b3156f26585c16a3bf9fd08422ec85a832e2c1b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.11-cp38-cp38-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 449.1 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.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for dulwich-0.20.11-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 84879aed49b162df4dc4732e819839413b9fe456e5bddd7584d05f0332173786
MD5 89b696856db04ec16480b199ce26acaf
BLAKE2b-256 b40785351eb2d8552c162b54cdc86a47af281f223f30eb77e0f6aac6a0a1c1e1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.11-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 460.8 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.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.9

File hashes

Hashes for dulwich-0.20.11-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 bb805972771da3b193de0a9b8d86a74af109b7be3742fbe24c22ee0da5fdac56
MD5 cc79f68fc598ba68828c405181f999bb
BLAKE2b-256 f489474737f10f7d75ac41157d169ac4ed843968faa6f212b02e632315fc2248

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.11-cp37-cp37m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 504.0 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.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.0

File hashes

Hashes for dulwich-0.20.11-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 116df6a6e55633f513e2552d0b68a3c4fb3c6047191847ed853f4b872d6674fc
MD5 1f77ceadd9da9725236cc52262b30eb1
BLAKE2b-256 23c0aea8b88ea19ca21ee2bfd25ca3eccbd43354b171a2536c5d186b876976e3

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for dulwich-0.20.11-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 06fd66cc910dc2e9651bb9fd2ac98563b2c4296feec6e969aafe6ae7946168ee
MD5 b5b21e17a0a9a45c872ab7d1c28dd1ea
BLAKE2b-256 80de33f0baa87fd20238efdf41549f50086ebf5261ad65e4179c10968e4dd4e1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.11-cp37-cp37m-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 449.0 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.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.9

File hashes

Hashes for dulwich-0.20.11-cp37-cp37m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 7566ca21743d989d8b6802898c3d0f0c937ac455c92a8bd1c5f27ff58e681243
MD5 feab5b0261a5c4ee0eadd54001bcb615
BLAKE2b-256 dfd2e45667ab618f7c1ec512b7ef9365640e8a3495013a3192b14ce60aec086c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.11-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 460.8 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.24.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.6.8

File hashes

Hashes for dulwich-0.20.11-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 2a648162fe119a8bd8da1118890dc5e42e87f697789fbcff1be9ec5b1f86b2ca
MD5 80146613107130082792671313922e59
BLAKE2b-256 598d817625cd498916d102028e409efd41eed54e5ae7bd69315f1d453c9b5b87

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.11-cp36-cp36m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 501.2 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.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.0

File hashes

Hashes for dulwich-0.20.11-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 5e393df00096a37fb463a73faf036352102fd606326b27d02b3f48e043c2769f
MD5 dc4048eab70c79938d16e23a2d7e4d99
BLAKE2b-256 c8b95852d47227bb95b495ef6c21b366c119a3275181fa46006a6ba2f50ba79d

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for dulwich-0.20.11-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 20114e4fc2b88ff69ade44a3953a0d5b0e4d048c6cd4dee5d001b88d60c1fb6c
MD5 376ca326ea30d0768c1b3fd74b2c7fe9
BLAKE2b-256 a088110b79ef8da5163efb1c896262a315cb6690f8b815473d754cca983ea4b3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.11-cp36-cp36m-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 449.0 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.24.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.6.12

File hashes

Hashes for dulwich-0.20.11-cp36-cp36m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 2782e3ed318caba65d59730d46e1fe0d0ebc9b049bde2d52b7182ae83d03bbde
MD5 af0a129cb5d7b2db0d1f9b7ebc5e7946
BLAKE2b-256 564f12b1af4c284d04ac8abc42bf624e9ed9809c6e1f93121c994ebcdd3d98f3

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