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

Uploaded Source

Built Distributions

dulwich-0.20.43-cp310-cp310-win_amd64.whl (496.1 kB view details)

Uploaded CPython 3.10 Windows x86-64

dulwich-0.20.43-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (538.3 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ ARM64

dulwich-0.20.43-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (552.5 kB view details)

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

dulwich-0.20.43-cp310-cp310-macosx_10_15_x86_64.whl (483.9 kB view details)

Uploaded CPython 3.10 macOS 10.15+ x86-64

dulwich-0.20.43-cp39-cp39-win_amd64.whl (496.1 kB view details)

Uploaded CPython 3.9 Windows x86-64

dulwich-0.20.43-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (537.7 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ ARM64

dulwich-0.20.43-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (552.0 kB view details)

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

dulwich-0.20.43-cp39-cp39-macosx_10_15_x86_64.whl (483.9 kB view details)

Uploaded CPython 3.9 macOS 10.15+ x86-64

dulwich-0.20.43-cp38-cp38-win_amd64.whl (496.1 kB view details)

Uploaded CPython 3.8 Windows x86-64

dulwich-0.20.43-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (540.5 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ ARM64

dulwich-0.20.43-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (553.8 kB view details)

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

dulwich-0.20.43-cp38-cp38-macosx_10_15_x86_64.whl (483.8 kB view details)

Uploaded CPython 3.8 macOS 10.15+ x86-64

dulwich-0.20.43-cp37-cp37m-win_amd64.whl (495.9 kB view details)

Uploaded CPython 3.7m Windows x86-64

dulwich-0.20.43-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (536.7 kB view details)

Uploaded CPython 3.7m manylinux: glibc 2.17+ ARM64

dulwich-0.20.43-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (552.8 kB view details)

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

dulwich-0.20.43-cp37-cp37m-macosx_10_15_x86_64.whl (483.8 kB view details)

Uploaded CPython 3.7m macOS 10.15+ x86-64

dulwich-0.20.43-cp36-cp36m-win_amd64.whl (495.9 kB view details)

Uploaded CPython 3.6m Windows x86-64

dulwich-0.20.43-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (536.7 kB view details)

Uploaded CPython 3.6m manylinux: glibc 2.17+ ARM64

dulwich-0.20.43-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (550.0 kB view details)

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

dulwich-0.20.43-cp36-cp36m-macosx_10_14_x86_64.whl (483.4 kB view details)

Uploaded CPython 3.6m macOS 10.14+ x86-64

File details

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

File metadata

  • Download URL: dulwich-0.20.43.tar.gz
  • Upload date:
  • Size: 423.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for dulwich-0.20.43.tar.gz
Algorithm Hash digest
SHA256 fcc2164e013b390a9ee3a109d7ef7b95d8de283b2e789bb07e94aa3115e329ea
MD5 485444e66f5c07fbc8750b29187cd6ca
BLAKE2b-256 c819247ec461430dc3f1785d2b1f7e0cc2957393ace16215d75eb4bd259c0821

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dulwich-0.20.43-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 bee585adc6636cc72e668e2b7882e2df56475bece3a59f5830e164b94cc336d1
MD5 c4cfeb53fcceee84d445bae9d70ca5bd
BLAKE2b-256 c85680545d5239a366d7a4e31416971af088ae0c75c6595f1526ed5dae5d1916

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dulwich-0.20.43-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 1bcd78cef7a9239e292ae494ff0a9daf8cc29228fb680cc11c9d8d360f23ad15
MD5 6bf5a5d1baf4e3973ffd3ad40d449a82
BLAKE2b-256 b338fd16cf7feca02733331e10c0b500d73db0752679b6b7fdf27546dbba4b49

See more details on using hashes here.

File details

Details for the file dulwich-0.20.43-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.43-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 80d17f29f5b2f459e968c7e16669f56682627e1eeef21f7470c42406462dcd97
MD5 2debc047710cb2eefe9e4c800885f054
BLAKE2b-256 f7483b6c595fc06faba449cefa1527520c6dbba0a091791ef9dcb476a6bedb47

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dulwich-0.20.43-cp310-cp310-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 5a2479e97575c0d2e30b3c7ea31042125b9e13f6466cdd10e56dbfa0a22e415b
MD5 40503596e1145388c77441602163bece
BLAKE2b-256 b5d4c1a73b8f3a5197d74287f403bb0cc9897e22742a647f3b9bcc290ffe7a20

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for dulwich-0.20.43-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 6a6ab2b8f9d3c0504de5485b1cb2c48a7f9cbc079e24fbb2bdf4533c39dbaa80
MD5 7a4b99844e70af50949f421470b52eed
BLAKE2b-256 000087c030952a54d84ee6cf081755ce01f87d282f4d93f2e232e4d395a00fb4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dulwich-0.20.43-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 bb48de2ae7f45066963bba07b4a7cb6270dbe91303211182233ee5ecf28d7213
MD5 1d505384b88569e5e9e3faad7d41a809
BLAKE2b-256 61dc297a700ed41e0b6b6ef4238c4aae14e5cf2bbef802c62abf09aa18d88325

See more details on using hashes here.

File details

Details for the file dulwich-0.20.43-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.43-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 5c6dd0f0244c04612d8b161b482a73937a3a12d1559919782fff5f03ece85c11
MD5 c9488bfcfdc6743239ed5593fe2466e2
BLAKE2b-256 e7fba4798929823d1a65de343cc5ef38b22417076e905452274b964063aa148b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dulwich-0.20.43-cp39-cp39-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 14567de0f7917640890a187c4d60d3423c2a1354f401e5a6963ae583f9180d02
MD5 32ea5bb3b328e4cf997f833556dd6edd
BLAKE2b-256 ac377c6265b07e5d43680595168cb600299dfbcd2323603b613769c7014372ed

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for dulwich-0.20.43-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 015c974e59539abe2a48942e828eea82fbfcdedbaa98650c74e5af675d2eab32
MD5 ad903d995cfd58376b0e5fead9790551
BLAKE2b-256 546ff5813faa0d5f63298b3f559baacadd64f7d826da0dbc3618b8b8d1316b89

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dulwich-0.20.43-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 94d6755525f097258481d8f8f1c2d5d5260e4a1da07b362d0660c8a8c147c598
MD5 06645893ea2da75a2bdbe5391cf33bad
BLAKE2b-256 a004ea2709b5f7eb9c08f98508062ab0b92a9be72711ab42c8811196408146b3

See more details on using hashes here.

File details

Details for the file dulwich-0.20.43-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.43-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 ea4f0fd8c752ce452a1650fe5462951200e196238c990c81311a13c44e98ed13
MD5 fbe5cfc434e760bdc79a1e6fcbaf0396
BLAKE2b-256 576c271705a69638d1b84c68d3e00af23d4fef71b101973386ad77eced7b9e60

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dulwich-0.20.43-cp38-cp38-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 58f02f3e73d89fe1f9af653a743e12c1087a652fe9e37d7fcb5a98850481d3d0
MD5 8a7bbc9fc5428689dc3e22a86697fe12
BLAKE2b-256 bdaa8aa8be76434fffad7338c2c40a0ce0376872e5d07234fb02666e618b7e01

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for dulwich-0.20.43-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 d122ca90a490b211eb552a0c693704405f602d5a9731c0ce389829ff46848c29
MD5 fd8db9b2884b4396872c05ccc0d64106
BLAKE2b-256 98d9aba6a3b252cda25e4c2cb8a7cf2dbef290f3515e10405986b872ad22ff72

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dulwich-0.20.43-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 f458f59fad5ee1b5600b7108f9a4aa5777eaac99e17bf93e72fa658d58ef65ec
MD5 eb63247ae40abcce258f5d47d7aa3889
BLAKE2b-256 63598e84be1eee118c7066183ff749bbd99143953fda833b783afd9d955fe0c2

See more details on using hashes here.

File details

Details for the file dulwich-0.20.43-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.43-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 6b9dc43e5b32aa96cf54629686a4eca0a07da06bc8f013f2fb4fc3db0ba7b31f
MD5 8f1967e96e9b0f2f448506f2afe61344
BLAKE2b-256 a42859dd238b30cf9edb71cae2dfa63e9d680f983ec6f8d26f86ad411538c538

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dulwich-0.20.43-cp37-cp37m-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 2d6d907b530c968788ea885707c998b55a925234307d7e920a73a0e6c48a3cfa
MD5 59c177dccdfdabb30a28d2bbc4afb502
BLAKE2b-256 2d8c341a36799f7c84ebf4e52ecb6b7df2b0e3753dd6a7336083715cd3175709

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for dulwich-0.20.43-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 2cb39d7ceed5e63e8e522f8ccf7b0dc837a1d2988611f43701a694a64a64726c
MD5 f201d1ab18f64ce205971a146c56d6e5
BLAKE2b-256 6d3346550538d9b12547f8708490f40d2d3744270c2a6023fc27f1257ec9e254

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dulwich-0.20.43-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 3d1573d9e132a2d4e4ec41246a34493d817847d1dd1d0c6d92847e957e924c46
MD5 aab37bc46ebb1b3c783b09a16768c5ba
BLAKE2b-256 73d2b899f914ee5c6c1426990d1076b4569e858a989c175730bbe78c7c01731e

See more details on using hashes here.

File details

Details for the file dulwich-0.20.43-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.43-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 8d8105c65ebe2b8adcbf4e27e972207a641324d8968793cc65601d10b0a7f25f
MD5 6f2e40cd4767c74f95784708f5a33067
BLAKE2b-256 3f25039b9d5b10471ae469425354a5f7ef6c6d91984528d5602213a3c74127ff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dulwich-0.20.43-cp36-cp36m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 4220a2ed94973c20105ac30627c113a9383fa2ab6574bff9e8de5945a4f3da49
MD5 5bb4f1cfcf4fa907f85fb25763d76b84
BLAKE2b-256 86a9f2a32e43d5254f4232ede6af92ce6f6a1d045a54e2cff4a59b9a244d4d15

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