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 OFTC, and a dulwich-discuss mailing list.

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.6 and later and Pypy.

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

Uploaded Source

Built Distributions

dulwich-0.20.41-cp310-cp310-win_amd64.whl (496.7 kB view details)

Uploaded CPython 3.10 Windows x86-64

dulwich-0.20.41-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (538.9 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ ARM64

dulwich-0.20.41-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (553.1 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.12+ x86-64 manylinux: glibc 2.5+ x86-64

dulwich-0.20.41-cp310-cp310-macosx_10_15_x86_64.whl (484.5 kB view details)

Uploaded CPython 3.10 macOS 10.15+ x86-64

dulwich-0.20.41-cp39-cp39-win_amd64.whl (496.7 kB view details)

Uploaded CPython 3.9 Windows x86-64

dulwich-0.20.41-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (538.3 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ ARM64

dulwich-0.20.41-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (552.6 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.12+ x86-64 manylinux: glibc 2.5+ x86-64

dulwich-0.20.41-cp39-cp39-macosx_10_15_x86_64.whl (484.5 kB view details)

Uploaded CPython 3.9 macOS 10.15+ x86-64

dulwich-0.20.41-cp38-cp38-win_amd64.whl (496.7 kB view details)

Uploaded CPython 3.8 Windows x86-64

dulwich-0.20.41-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (541.1 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ ARM64

dulwich-0.20.41-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (554.4 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64 manylinux: glibc 2.5+ x86-64

dulwich-0.20.41-cp38-cp38-macosx_10_15_x86_64.whl (484.4 kB view details)

Uploaded CPython 3.8 macOS 10.15+ x86-64

dulwich-0.20.41-cp37-cp37m-win_amd64.whl (496.5 kB view details)

Uploaded CPython 3.7m Windows x86-64

dulwich-0.20.41-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (537.3 kB view details)

Uploaded CPython 3.7m manylinux: glibc 2.17+ ARM64

dulwich-0.20.41-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (553.4 kB view details)

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

dulwich-0.20.41-cp37-cp37m-macosx_10_15_x86_64.whl (484.4 kB view details)

Uploaded CPython 3.7m macOS 10.15+ x86-64

dulwich-0.20.41-cp36-cp36m-win_amd64.whl (496.5 kB view details)

Uploaded CPython 3.6m Windows x86-64

dulwich-0.20.41-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (537.3 kB view details)

Uploaded CPython 3.6m manylinux: glibc 2.17+ ARM64

dulwich-0.20.41-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (550.6 kB view details)

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

dulwich-0.20.41-cp36-cp36m-macosx_10_14_x86_64.whl (484.1 kB view details)

Uploaded CPython 3.6m macOS 10.14+ x86-64

File details

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

File metadata

  • Download URL: dulwich-0.20.41.tar.gz
  • Upload date:
  • Size: 423.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for dulwich-0.20.41.tar.gz
Algorithm Hash digest
SHA256 0ca7aef581217f5c0d52496067b5c535298873feb1af7f383ec079a381b05602
MD5 092a790c0153e98a830314b20aa49489
BLAKE2b-256 9004487e8cd196c24032581959cad8e004552cdd6ce5e3a8bfba462b3eb4180d

See more details on using hashes here.

File details

Details for the file dulwich-0.20.41-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for dulwich-0.20.41-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 9a65114396333740d556abf584d801e6009942b6cc247464446ac6c644eed076
MD5 fb954a1459496405f39dcc4aa0766da9
BLAKE2b-256 0d7c59b53077b21bdbd870b5e8d6192fdbdc70184712c27759829ad908456fed

See more details on using hashes here.

File details

Details for the file dulwich-0.20.41-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for dulwich-0.20.41-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 72385ff523b876ab062e401a262e114a03bb5c4f04be43ec3d7999932ffacd56
MD5 ee7e81ba8f5fdfc7d86ba10c4dc274b3
BLAKE2b-256 21d9f18661a05332f141c5492188f55ba0e32541eeb5506fb1e4088258cc4169

See more details on using hashes here.

File details

Details for the file dulwich-0.20.41-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for dulwich-0.20.41-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 53d3388d023f01b6cb92702ca14fd2dc7ffa5be124c1a4a7114daf342f3491c3
MD5 90d64ac07e466fc84f15b23bb28610e1
BLAKE2b-256 8f9d9a25aae8bdb2b4855633991f5fdc9e9a6cd718bd5d279340de23e50d94c2

See more details on using hashes here.

File details

Details for the file dulwich-0.20.41-cp310-cp310-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for dulwich-0.20.41-cp310-cp310-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 b6afa3147611cba6d2fe435cc52a544e88e81d1d2382492fc28729a198bd4546
MD5 1a6414a84c97a6ee74f6de72e796e7bc
BLAKE2b-256 fc162e2e37d53d9580c99091253dae51eed32f98ec65a6cb927559f8a62c656f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.41-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 496.7 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.4

File hashes

Hashes for dulwich-0.20.41-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 732c46632de734c81d6c7975714f1393723471148f88620e8a4485fa87e16b80
MD5 e185223a98a3923360c4bb2eb0c7e1a4
BLAKE2b-256 2b2ebba9843e13c63bce3bd284642f1ca5b0614df87144d11fc3be37d00334e1

See more details on using hashes here.

File details

Details for the file dulwich-0.20.41-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for dulwich-0.20.41-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 72cda97bafb6ee0ed6394e63358b8e400f1592676e515670039ff7ed5f907b54
MD5 ce7ae49102ffebd84a152d08e1c7539f
BLAKE2b-256 84695cb85789aeb291c2a77cce85910e24ed8196f17778665e9a8f16c90adf49

See more details on using hashes here.

File details

Details for the file dulwich-0.20.41-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for dulwich-0.20.41-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 833fa5137bbde705bb89d5e65a83ac878d75521ae40f8a6049f31ed2806b9438
MD5 cae77083b69aeaf9f00dc3e7033abd10
BLAKE2b-256 44e4184bdcdae36dabe7337d77d2aef2651e821232345510242be906f9e42f16

See more details on using hashes here.

File details

Details for the file dulwich-0.20.41-cp39-cp39-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for dulwich-0.20.41-cp39-cp39-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 127abee80233e5d4799bd3e247e51ee14a8bf806ea2e3123d9926a32f5d1c4a8
MD5 c30c1cbeabb3f89ec3f1bdf72a66812a
BLAKE2b-256 6626ccf044ca8cc0d96dcea43787b65a8069242e154e43b9a8f49cd6da68b87f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.41-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 496.7 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.4

File hashes

Hashes for dulwich-0.20.41-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 935478c6e58342b0d5333de6b57e72231dcf36ec36e490f696416807d3c346b6
MD5 d6ccf0c7b530dd061a700517730388d9
BLAKE2b-256 2feb62da6e50358eeb148ec149bc7c09073c16afbd6a100b8fd53f4b5d86bae4

See more details on using hashes here.

File details

Details for the file dulwich-0.20.41-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for dulwich-0.20.41-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 fbfd352cfb082f2bb0d5f460fbcded9ae938a81886088a6f8e4adcee0c90936c
MD5 9b6aa7adbbed2d953929a68a1afad461
BLAKE2b-256 d395762c27c771e6c2be92da7056f5a630b8897a0c97d5909fbb61e547908e91

See more details on using hashes here.

File details

Details for the file dulwich-0.20.41-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for dulwich-0.20.41-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 7a0c2f416685c4d789f9d3110b4872b47e7ef34b46f3b8ae96aa70972455bb46
MD5 224a933de72ce73c8c24e55089f173c6
BLAKE2b-256 22c9b6bdc08cc557be8b440ec16609f1223a5c3acac2349779ba1cef17ac286f

See more details on using hashes here.

File details

Details for the file dulwich-0.20.41-cp38-cp38-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for dulwich-0.20.41-cp38-cp38-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 7ccb01c87fa8cd6aca4250d1dae0f7fd9edfd2060bc671fc877f7937af53d60b
MD5 be99f324721cdf992374ee043bd1bf50
BLAKE2b-256 ea18fc7aa9b407bb24fc194d1d5cf71724afcaa56d7a9f6a004b516b66372143

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.41-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 496.5 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.4

File hashes

Hashes for dulwich-0.20.41-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 f09b2e37f0f2ba557d2d6b649076b5660caa6885b76dba850a214cca6a6fcd14
MD5 a6321df437fdf22f7906c0118ed1f576
BLAKE2b-256 2190a2b5e57d4048c80f1c43b638ae9cd5dee03d39b5c46e23c1ba0303ece3b3

See more details on using hashes here.

File details

Details for the file dulwich-0.20.41-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for dulwich-0.20.41-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 d74aa8c518596f7f9965c35c2403b5751ad39ad9fb1aacd89d976e9c17e773eb
MD5 91ebae840526456c9ba76d353dc0506c
BLAKE2b-256 be4377cfe306e5b99335251056d493527249bcf1cb4fd498cf7f3232e7c6c20c

See more details on using hashes here.

File details

Details for the file dulwich-0.20.41-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for dulwich-0.20.41-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 fd1b5844d44855170514545a8993600b765d15187be381bca0c27582a344fd12
MD5 13a8841fb1ba0d008c3a7e4ca34666c0
BLAKE2b-256 449c0bae8d9af44338fc016b2094c930a639c79ea12cb0c03a486396a7a2fbfa

See more details on using hashes here.

File details

Details for the file dulwich-0.20.41-cp37-cp37m-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for dulwich-0.20.41-cp37-cp37m-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 1c89063459e19000d70cf80e99b5c629f1f7ff2beb9625b1f6135a80e607d58e
MD5 8aa6b1512d7e2b671e1963ad35c49b33
BLAKE2b-256 91158462e992350555c77640d84e44ed6b117da401df9f54bbb6fec18775f4ff

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.41-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 496.5 kB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.4

File hashes

Hashes for dulwich-0.20.41-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 1b81fc44df1f724db3c981570bbfc2208832e740d728f54bb2db0cd6b9e4d08c
MD5 91b87d1a6987f239c70a50f9ac5e883d
BLAKE2b-256 08967daed45910e4ac1d25ed505a09b04a44bc195696536391f686f394599ea4

See more details on using hashes here.

File details

Details for the file dulwich-0.20.41-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for dulwich-0.20.41-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 5da14131d6efc4662f6314f18f04858b8c07e530cb7495ab835dd0abbb04937a
MD5 89cdee55cba1369d3f9ac8a6f252d51e
BLAKE2b-256 3b08b9e22b625a774849882232a8cf9a2ef14f2b0eb73c86bcea752a311c3656

See more details on using hashes here.

File details

Details for the file dulwich-0.20.41-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for dulwich-0.20.41-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 c3b27ca665f1e1173742e142f18e48c613ef4a8a557126ab925d262d61501f30
MD5 5d8e85d80685c0da61ef914026ff8e1e
BLAKE2b-256 e302192a87f2c10b29b5884979da3f28b6006e109f8e1779e6f3b58098c4315a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dulwich-0.20.41-cp36-cp36m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 c7c2994ed5b2376215565f2587ad6a35ad93a6fceb4cc62928a83487e4fdf2cb
MD5 e540fe8f5c97706907f3e1826405c62d
BLAKE2b-256 691bf9b411944a649c5d503b357d5eea67da434eb946801adb7486efe921c92d

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