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

Uploaded Source

Built Distributions

dulwich-0.20.44-cp310-cp310-win_amd64.whl (497.7 kB view details)

Uploaded CPython 3.10 Windows x86-64

dulwich-0.20.44-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (539.8 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ ARM64

dulwich-0.20.44-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (554.0 kB view details)

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

dulwich-0.20.44-cp310-cp310-macosx_10_15_universal2.whl (485.4 kB view details)

Uploaded CPython 3.10 macOS 10.15+ universal2 (ARM64, x86-64)

dulwich-0.20.44-cp39-cp39-win_amd64.whl (497.6 kB view details)

Uploaded CPython 3.9 Windows x86-64

dulwich-0.20.44-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (539.2 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ ARM64

dulwich-0.20.44-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (553.5 kB view details)

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

dulwich-0.20.44-cp39-cp39-macosx_10_15_x86_64.whl (485.4 kB view details)

Uploaded CPython 3.9 macOS 10.15+ x86-64

dulwich-0.20.44-cp38-cp38-win_amd64.whl (497.6 kB view details)

Uploaded CPython 3.8 Windows x86-64

dulwich-0.20.44-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (542.0 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ ARM64

dulwich-0.20.44-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (555.3 kB view details)

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

dulwich-0.20.44-cp38-cp38-macosx_10_15_x86_64.whl (485.3 kB view details)

Uploaded CPython 3.8 macOS 10.15+ x86-64

dulwich-0.20.44-cp37-cp37m-win_amd64.whl (497.4 kB view details)

Uploaded CPython 3.7m Windows x86-64

dulwich-0.20.44-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (538.2 kB view details)

Uploaded CPython 3.7m manylinux: glibc 2.17+ ARM64

dulwich-0.20.44-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (554.3 kB view details)

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

dulwich-0.20.44-cp37-cp37m-macosx_10_15_x86_64.whl (485.3 kB view details)

Uploaded CPython 3.7m macOS 10.15+ x86-64

dulwich-0.20.44-cp36-cp36m-win_amd64.whl (497.4 kB view details)

Uploaded CPython 3.6m Windows x86-64

dulwich-0.20.44-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (538.2 kB view details)

Uploaded CPython 3.6m manylinux: glibc 2.17+ ARM64

dulwich-0.20.44-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (551.5 kB view details)

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

dulwich-0.20.44-cp36-cp36m-macosx_10_14_x86_64.whl (485.0 kB view details)

Uploaded CPython 3.6m macOS 10.14+ x86-64

File details

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

File metadata

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

File hashes

Hashes for dulwich-0.20.44.tar.gz
Algorithm Hash digest
SHA256 10e8d73763dd30c86a99a15ade8bfcf3ab8fe96532cdf497e8cb1d11832352b8
MD5 6ca2628b80ee5449e1c1c56b7842323b
BLAKE2b-256 047f1738a3957c6ed99f2d6db3f8883c56bebfaf543ca9a691c3f58624c29922

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dulwich-0.20.44-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 61eb4633410ed7e6b49a0ce0f0a4a0604206fc1532ea119b948ff3cf974a0d02
MD5 a0133ec5eda0085e4ea53933225463be
BLAKE2b-256 ebb00e5c1d1ba0eaecdc55c2a89e08b9d72e9ceb25e09f44cbc6cc6503394875

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dulwich-0.20.44-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 46273dd4b6fc80f7bd3cdfe35ed1e7ed5cbd9850735b12b1a64f81058f337351
MD5 fe94b34e4d92f912f16081a622e42876
BLAKE2b-256 e57730bf877fbd04fa91f4044fa422db4f7e081212b44ce7e415d933b4fa2cfa

See more details on using hashes here.

File details

Details for the file dulwich-0.20.44-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.44-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 e7a884dd92bbfe66e4662a71d302b22b7910cc694d45f6e32acd1ae5da877183
MD5 43366dbef68eaeca5a8c80b5ed0dac3c
BLAKE2b-256 e5c21b264fd603e041b482d3704fd46c9d32d4765a396456b377be0a4f660ea7

See more details on using hashes here.

File details

Details for the file dulwich-0.20.44-cp310-cp310-macosx_10_15_universal2.whl.

File metadata

File hashes

Hashes for dulwich-0.20.44-cp310-cp310-macosx_10_15_universal2.whl
Algorithm Hash digest
SHA256 2f6e35487963296894f2a2fcc49cc1340c24592ea465962f96a33f1527afd3f7
MD5 f51c85ea35689a6dbcc398625ff448e2
BLAKE2b-256 c89998bc3a7837abc05dd0a81d83ee9556b9b86ff2a3ceff7c2a4098b646759d

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for dulwich-0.20.44-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 0a227684997f94518de53041503f4d467ef711319a09b85479a564c751ced65c
MD5 900b443d54afbf3449ec8855dad019ac
BLAKE2b-256 79ddae225d643a6ec80bc0125cfb411e6c28da19ba51c0afb31834a0f3590f0e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dulwich-0.20.44-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 45a069407630b60d85345da9c9bed07fe9a3d0b55fc3705815ddac1f31ce97be
MD5 6ecd0c7db3f837e86567edc72242f882
BLAKE2b-256 31f699117e654d7fe1d1f0b719a9c8cfa349f440edee9965f625ae6586816224

See more details on using hashes here.

File details

Details for the file dulwich-0.20.44-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.44-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 68e46a462d7686f440ef849947b7284412a2715e084090c8f5624d871758bf98
MD5 11ec793626b375a594901715cd328b7b
BLAKE2b-256 0b3534d331205c45225d2cf97510e3113602140fe32176b94fa2276fad14b1f4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dulwich-0.20.44-cp39-cp39-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 6aa185f04dfba6ab15c36c06ff5f0e8b44f05268011699c25e18b320a76d2d3f
MD5 f720494e42114bad89ef772c6ff8f121
BLAKE2b-256 048e03150d7099ed00f59158f1a5dd57bc4133c8817375ae0392b7630a2cb584

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for dulwich-0.20.44-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 4784e480c6368e1199e5292aca558455b65dbc1b5b0f06341e5702041c5e275a
MD5 180a2ee6ceb0dfcefb87973ab2281754
BLAKE2b-256 dff4b4bae0bc986cf8770643c2f536494d4e24aac3163ad0b1e506aa141a9757

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dulwich-0.20.44-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 496fa0298285d5e442e858d742ed3fc721a15452b736a03c89124acd08f169a7
MD5 b55f108412d4ce1d88b3ff4aeee2e250
BLAKE2b-256 10df72a0953e15d2dcf1a380796bba8ee15def1684b05844534b2464e52247c3

See more details on using hashes here.

File details

Details for the file dulwich-0.20.44-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.44-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 29f56137a686e956dfa84242f12a79f2c13a0f0840646884de230f3ad07ccc50
MD5 6d7ce77300177a6a976be347462f3fe1
BLAKE2b-256 95d4f6c3f819bbe3d92864a3576418a88dbb8874f114826e7391810c5e15b33a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dulwich-0.20.44-cp38-cp38-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 f6d9822ce617de1836256808f43dceb80fb343d634d28aef170e87ca47176f83
MD5 0ddd993eff5821462b96e83cec7fd032
BLAKE2b-256 df8464ecb4a82f9084734e7571939494a2d1521b765fece956a76c2100bb468f

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for dulwich-0.20.44-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 63bdfc0b8d762b66053f3dadbbb4b57ac65d201b9863140b6aefc742a4c94814
MD5 b2b3cab3d87fc9f67d712a6705176f6d
BLAKE2b-256 a3c7d44ecc76cd7a9b71e1bd12816db55d7933678df58314ddb9f63f79efbbb4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dulwich-0.20.44-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 d97c739bfa8b99dfe40075b5928b16224aa22d739cba57855cccb4d8ee325654
MD5 d1fce23f0a990b7a6324a464fd5bf215
BLAKE2b-256 72fdee2881ef6745c250c9461fab53410e43dced0a359aa511b18034a5c788c9

See more details on using hashes here.

File details

Details for the file dulwich-0.20.44-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.44-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 5f9130827f89bbf013fa169d25fc113503e6536e2759b246db086300bf0caf05
MD5 e9a2de5cef7cc5c2c5be142832d13677
BLAKE2b-256 f64d36f72c8412e10844bc242814c51bf8639d0044dad5ad1f6af40a42ce62d7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dulwich-0.20.44-cp37-cp37m-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 0e324240007fb2bb5f8c2b92244146cc02a8c451890e3b75257dbc1b14e4fe93
MD5 cbfdde59e018af064189057e6099cdaf
BLAKE2b-256 cf3fc74236f637baff70616542bcf7cdbda9b19007c7de8188b0b7f9c3b7e23f

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for dulwich-0.20.44-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 a6a224c28aa47e960c0fa388ad7acc93346bf36cc8bae6f7b4524b14b0c30b7a
MD5 1a67525750b36db032899be282174d22
BLAKE2b-256 02f486ea49039c718bd0de5dc2ce33de2660b62913f7baa73964f0c39c6cc414

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dulwich-0.20.44-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 d18029b40faa09848cb9a9e5a1b5fcc5365f0c959e9fcb3ec63ec78720dfe5e1
MD5 f565aa4527806a49faead78cf6816155
BLAKE2b-256 3006cf4c5d0dc83f810fdf96e06b7d181f04a9c1417e98242f471be71e1b4b63

See more details on using hashes here.

File details

Details for the file dulwich-0.20.44-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.44-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 cbe9c167f3a591ac308a8dd54eef901db42cb898dd7f343479ef3badec4b96cc
MD5 d35986dadb7466485c672447c87bae7c
BLAKE2b-256 90d6ed382acd277a306033f3ef100afa1920a7d716f9e935cb97a3c56d3954ef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dulwich-0.20.44-cp36-cp36m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 6ac93e78eb19f65d958e339818316af07579cdf826257562d3f7310d7535d205
MD5 e1149875f9329b47004e1a1fa164355a
BLAKE2b-256 d1717097e45fea2ce5f95c31b8d5d8d9407c8ccbd3dae093b0e83b909bcd902f

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