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

Uploaded Source

Built Distributions

dulwich-0.20.18-cp39-cp39-win_amd64.whl (464.9 kB view details)

Uploaded CPython 3.9 Windows x86-64

dulwich-0.20.18-cp39-cp39-manylinux2010_x86_64.whl (507.1 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.12+ x86-64

dulwich-0.20.18-cp39-cp39-manylinux1_x86_64.whl (507.1 kB view details)

Uploaded CPython 3.9

dulwich-0.20.18-cp39-cp39-macosx_10_14_x86_64.whl (453.0 kB view details)

Uploaded CPython 3.9 macOS 10.14+ x86-64

dulwich-0.20.18-cp38-cp38-win_amd64.whl (464.9 kB view details)

Uploaded CPython 3.8 Windows x86-64

dulwich-0.20.18-cp38-cp38-manylinux2010_x86_64.whl (508.9 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

dulwich-0.20.18-cp38-cp38-manylinux1_x86_64.whl (508.9 kB view details)

Uploaded CPython 3.8

dulwich-0.20.18-cp38-cp38-macosx_10_14_x86_64.whl (453.0 kB view details)

Uploaded CPython 3.8 macOS 10.14+ x86-64

dulwich-0.20.18-cp37-cp37m-win_amd64.whl (464.7 kB view details)

Uploaded CPython 3.7m Windows x86-64

dulwich-0.20.18-cp37-cp37m-manylinux2010_x86_64.whl (507.9 kB view details)

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

dulwich-0.20.18-cp37-cp37m-manylinux1_x86_64.whl (507.9 kB view details)

Uploaded CPython 3.7m

dulwich-0.20.18-cp37-cp37m-macosx_10_14_x86_64.whl (452.9 kB view details)

Uploaded CPython 3.7m macOS 10.14+ x86-64

dulwich-0.20.18-cp36-cp36m-win_amd64.whl (464.7 kB view details)

Uploaded CPython 3.6m Windows x86-64

dulwich-0.20.18-cp36-cp36m-manylinux2010_x86_64.whl (505.1 kB view details)

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

dulwich-0.20.18-cp36-cp36m-manylinux1_x86_64.whl (505.1 kB view details)

Uploaded CPython 3.6m

dulwich-0.20.18-cp36-cp36m-macosx_10_14_x86_64.whl (452.9 kB view details)

Uploaded CPython 3.6m macOS 10.14+ x86-64

File details

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

File metadata

  • Download URL: dulwich-0.20.18.tar.gz
  • Upload date:
  • Size: 392.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.18.tar.gz
Algorithm Hash digest
SHA256 0131387f9b99aecc69ac98655b3931f2ad43da53d3a63e050fa3a6d6260ac554
MD5 bdfa4a71195bba400d4d5a4e3e963482
BLAKE2b-256 2154faa913d4e404dffc55f97f88b539c8caf9418cf1a8ba8a30061ef6c46ec4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.18-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 464.9 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.0 CPython/3.9.1

File hashes

Hashes for dulwich-0.20.18-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 f55d82ba10b4b78fe1a5c2b970e97cfff6f1d0af3f7073306bf88d3ea02d04a2
MD5 958ca96a664b55ae36a15b27527e8e66
BLAKE2b-256 7aa143322bf1354011bc6d0e83c33ab3eaa5e963b5204a37223c0a462a668e54

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.18-cp39-cp39-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 507.1 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.0 CPython/3.9.1

File hashes

Hashes for dulwich-0.20.18-cp39-cp39-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 c832a13358c58a27198cc38bec977fbfe2fe80e8a062bbb3711a5c2a527c0692
MD5 18ab3924ed79907a1eea7b44f80d718a
BLAKE2b-256 10ce83c083ce882817951a2eb10926e64594febc79f2462665ed2985d9ae8ebc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.18-cp39-cp39-manylinux1_x86_64.whl
  • Upload date:
  • Size: 507.1 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.0 CPython/3.9.1

File hashes

Hashes for dulwich-0.20.18-cp39-cp39-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 e28987b132a6d310fb45dfc0d16f7632a5c95464f0a8635b1930e433323c5664
MD5 fe407fb8d73a907ab5086f4d29ccc71d
BLAKE2b-256 0921781e31090858b39e6c039e6ed340788752e88fdd3cb82ee8d9e7371f4661

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.18-cp39-cp39-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 453.0 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.0 CPython/3.9.1

File hashes

Hashes for dulwich-0.20.18-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 b748bd9f4a64b07522bfbea4c7e937abdeeb4d8c774d2430cf68b66a2dcb0b16
MD5 cf5070576d151b91ec6c7b6b87128773
BLAKE2b-256 dc12abfb2d8631a8beea481d37d31539947ee484252874dbc3ef6ad79c51164c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.18-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 464.9 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.0 CPython/3.8.7

File hashes

Hashes for dulwich-0.20.18-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 3a1c377c143aa1a4c1035a8b35809b0591de8cce153ca0d47dfeebe86c4d6043
MD5 37fcd637bdfe88687c61a43a241399f9
BLAKE2b-256 80924abb7f4362cddb2b5bcae61c84e86b69794d72878c8806dba54d6081a50c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.18-cp38-cp38-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 508.9 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.0 CPython/3.9.1

File hashes

Hashes for dulwich-0.20.18-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 26a0b5e70ff03937c16c1f0b76c0c8c1f31a43f896da8be049f25f69b4efd654
MD5 83c5b2ca79d1245b3c30462b3b161495
BLAKE2b-256 6351ed8ea678d027cb375edfec557960331766c02c0995e5625a825cd5e8719b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.18-cp38-cp38-manylinux1_x86_64.whl
  • Upload date:
  • Size: 508.9 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.0 CPython/3.9.1

File hashes

Hashes for dulwich-0.20.18-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 a55294d3b45f2b830646676f5585b8dcec3948a5eff568dad15ea07f8ed6a986
MD5 ee5686c4c7566d201e25aff0176b8bfc
BLAKE2b-256 7766f42ce98451e391ca86dcb8027dfa632528020141c7728763b94105a96652

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.18-cp38-cp38-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 453.0 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.0 CPython/3.8.7

File hashes

Hashes for dulwich-0.20.18-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 155fb7aa7e3010a9e08ccc4011d2b77da4c9e3eddfb8ea6b5cf2b9ad4357f629
MD5 bafc4f30089a7dc5997c6af894d7f8de
BLAKE2b-256 26bc9aca9f7792758edce654771ec97371a207053ec8b533b73b8026b8f93a78

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.18-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 464.7 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.0 CPython/3.7.9

File hashes

Hashes for dulwich-0.20.18-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 f8839c2df12ab59bc5292df2dd991ee9a25d3b98411d353e90fd7d24759986fb
MD5 f9a3a495cee902a37cf230f24c67cd35
BLAKE2b-256 92a4cb2ec2d5dc4c7aa8ccbba38ceed4e28292a8dcfda2f87e068496f7d0c30b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.18-cp37-cp37m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 507.9 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.0 CPython/3.9.1

File hashes

Hashes for dulwich-0.20.18-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 57b9eb7fa255e927c272b67a3ec649f104a4c8514e107378808c505951e4adda
MD5 c9578d3010b4e88426983c6fdaff1ab5
BLAKE2b-256 628d6a7c2c5c83ce7b17b78d2c9aae02c9b07a2bfd37469b813ef00317598316

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.18-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 507.9 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.0 CPython/3.9.1

File hashes

Hashes for dulwich-0.20.18-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 1fdac5fa19b860d919a7fc07ab680e20c2c44ed940902d2f7ab95450802bd1c2
MD5 7f7373ee3ddafd2d8cc05107401a91b5
BLAKE2b-256 7ec2f35570ac3033986079b38979cf6a807459a9d075c39819fd0da4243fa782

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.18-cp37-cp37m-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 452.9 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.0 CPython/3.7.9

File hashes

Hashes for dulwich-0.20.18-cp37-cp37m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 68db6310455a2ff9aba78912b415698d0a3f82116f08b29cc3d937ddbe1ab1d9
MD5 c4731af7caf1fe000b90955de1a17773
BLAKE2b-256 bc6172ce63e73fdaf7391d1658c51e5939c99c3bcef7c6385eacaac0b0d0761f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.18-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 464.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.0 CPython/3.6.8

File hashes

Hashes for dulwich-0.20.18-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 3207815a1ecb7106644aac48ccb5e2ad14b09b53146929ea9819d8fc5e3a47a8
MD5 1af428046cd65d458d0c86485fca0807
BLAKE2b-256 70863f26855442536d58a6fae4224a4aa5b3d8b5257e332f68ca6b51ebd00988

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.18-cp36-cp36m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 505.1 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.0 CPython/3.9.1

File hashes

Hashes for dulwich-0.20.18-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 00a6dacf91595824f31f142ea557240460dc7515cab43b9dc9426a2376da3b6e
MD5 c32efd92c3338e42dea110553e37bd44
BLAKE2b-256 d64d3cfe8cf7ebf7857cab6ae230e1cc316e1792ee02f5b4e6f3144f6af637d2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.18-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 505.1 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.0 CPython/3.9.1

File hashes

Hashes for dulwich-0.20.18-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 d722baea130d0253d84a6b7393618537d5f1d3f710026775f69e2e3cbaa86819
MD5 3c39760605044858e38794a8c7f53ddb
BLAKE2b-256 f28b0dcbf5bd5504d117bedf103c3b0f4db8f75ab56147905618192d40da80ad

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.18-cp36-cp36m-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 452.9 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.0 CPython/3.6.12

File hashes

Hashes for dulwich-0.20.18-cp36-cp36m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 252525c314ca12dec76ff18e93bc90e7c1eaca867b8dd94f76cd19a4d0fb6220
MD5 089bd24e202ad740331f70e3308f60ac
BLAKE2b-256 1975ac00b0a59fa648c2d813842a0be823a1c6ed19d4ab95e5e3c50b281a4cf5

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