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

Uploaded Source

Built Distributions

dulwich-0.20.45-cp310-cp310-win_amd64.whl (467.2 kB view details)

Uploaded CPython 3.10 Windows x86-64

dulwich-0.20.45-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (496.0 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ ARM64

dulwich-0.20.45-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (510.2 kB view details)

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

dulwich-0.20.45-cp310-cp310-macosx_10_15_universal2.whl (454.9 kB view details)

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

dulwich-0.20.45-cp39-cp39-win_amd64.whl (467.2 kB view details)

Uploaded CPython 3.9 Windows x86-64

dulwich-0.20.45-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (495.4 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ ARM64

dulwich-0.20.45-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (509.7 kB view details)

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

dulwich-0.20.45-cp39-cp39-macosx_10_15_x86_64.whl (454.9 kB view details)

Uploaded CPython 3.9 macOS 10.15+ x86-64

dulwich-0.20.45-cp38-cp38-win_amd64.whl (467.1 kB view details)

Uploaded CPython 3.8 Windows x86-64

dulwich-0.20.45-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (498.3 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ ARM64

dulwich-0.20.45-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (511.5 kB view details)

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

dulwich-0.20.45-cp38-cp38-macosx_10_15_x86_64.whl (454.9 kB view details)

Uploaded CPython 3.8 macOS 10.15+ x86-64

dulwich-0.20.45-cp37-cp37m-win_amd64.whl (467.0 kB view details)

Uploaded CPython 3.7m Windows x86-64

dulwich-0.20.45-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (494.5 kB view details)

Uploaded CPython 3.7m manylinux: glibc 2.17+ ARM64

dulwich-0.20.45-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (510.5 kB view details)

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

dulwich-0.20.45-cp37-cp37m-macosx_10_15_x86_64.whl (454.8 kB view details)

Uploaded CPython 3.7m macOS 10.15+ x86-64

dulwich-0.20.45-cp36-cp36m-win_amd64.whl (466.9 kB view details)

Uploaded CPython 3.6m Windows x86-64

dulwich-0.20.45-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (494.5 kB view details)

Uploaded CPython 3.6m manylinux: glibc 2.17+ ARM64

dulwich-0.20.45-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (507.7 kB view details)

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

dulwich-0.20.45-cp36-cp36m-macosx_10_14_x86_64.whl (454.5 kB view details)

Uploaded CPython 3.6m macOS 10.14+ x86-64

File details

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

File metadata

  • Download URL: dulwich-0.20.45.tar.gz
  • Upload date:
  • Size: 424.4 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.45.tar.gz
Algorithm Hash digest
SHA256 70710dd9ca2a442190c7e506892db074c318ac762e221f7529b8ce34802041b7
MD5 e7a0ec386ae2e3700a6547d9550c2086
BLAKE2b-256 8e997f139ec0e9d224542115ef070c79503bcb271edaaf0c1e049a5fbdaad6a5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dulwich-0.20.45-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 6e02babb44bdad17b6c9c50b4f9df42f6e511e3a51555ac07dd85ec904efe0b1
MD5 7b19d1c8e0ee37e5a2456403835d1b6b
BLAKE2b-256 b6402d5d017a8d30925f21207329bef9b68a8c53b52af173f61a221734439853

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dulwich-0.20.45-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 2d7cf5171034d9d61b928bd5f9c509000e895d1ba29bd6ea850b9e4f93fca0f7
MD5 6bfa257b3924b9ef1423fcaabda22410
BLAKE2b-256 0ca9168badd89e3de1b4662d56f73d7f5512daa54d8a65aa121d769e2bd64b89

See more details on using hashes here.

File details

Details for the file dulwich-0.20.45-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.45-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 22d433ba9c776f2b0e19b1186e01e25ca286175e20f4ac422141db94eeaac08b
MD5 859eb29bc2dd08272e3cd07f73ed11d4
BLAKE2b-256 6e27180643ddeaef02f115ab853477450d021861ac3b277482164a98d8488edb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dulwich-0.20.45-cp310-cp310-macosx_10_15_universal2.whl
Algorithm Hash digest
SHA256 9b689b05bc7baa5cb20ebff54291085b598a9bdf7caeab23daf93b46421d96ff
MD5 de1d40409fae31059f3b8969fc2ef84b
BLAKE2b-256 5be835d7b5739f904aa06fc2e588a52f4651251d252112429d88b4923a0a9340

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.45-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 467.2 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.45-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 3136bcaf7508522a2aa63f856743f06129261bc5a03331aa6a0654fa6d04a4ae
MD5 99095991f5cd97f9e34f53ca8034a497
BLAKE2b-256 db90206c92c3ad50c746eeacb4c65025f2dd2d9a83109d96b6ff20325f8ea48a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dulwich-0.20.45-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 b3f64870f2f206dda3308cb73563f5f59fdc084179271651a0488d12ab4185b9
MD5 457e75837a5ec1111f78dec4001be657
BLAKE2b-256 732cc0023fafd26f687bf3a1bdf24ea12c5636a01d38f9c55d7918d90eeeb149

See more details on using hashes here.

File details

Details for the file dulwich-0.20.45-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.45-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 49852f12c1e1d50039f927e9fdee1bd00a9b428c31b078ba5ba9fc1cf88e9d3e
MD5 65fe3cd2a97892249d9db949f267ba26
BLAKE2b-256 88229c20e14b685084a3bfdf32f6f3b76cf2bed7a1831f96e28ac5ba298f1c25

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dulwich-0.20.45-cp39-cp39-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 bb75268cec2f3ae6f6b7addbc0db50db2e9e42b2ad8364e74b9f5b17ab0053b5
MD5 95c0dc4188996a6e149c78c18e101e30
BLAKE2b-256 ef12cf71823c3b860109376107b500550aeed08d50c9d94bce819788928af720

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.45-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 467.1 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.45-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 d8b6aae7af8edbfac8038e1777ae820efac33c7c22a8025d3254bbd53ec725b5
MD5 f86a3b6232d01585114295dd2124a062
BLAKE2b-256 6d22bd78064a2b91dfb84c397002073134db96635dadcb6dcb5a2661fddad5f1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dulwich-0.20.45-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 65334bd7a1d91054516a49f86343e9c2549740bbddebcbb4763c8aacf2aac48c
MD5 16262ce525f73df2aae2f066ecbcefa7
BLAKE2b-256 873e145421e6ceb57949c869ae0d0549c1dc1f0014a9f11feb6382a7a593a72c

See more details on using hashes here.

File details

Details for the file dulwich-0.20.45-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.45-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 5e41044ac51a4b3454d67e5f691808540470deeb6a852d7c5c6ca44c48b4cdc3
MD5 bd1c107fc3d3fdbdf0d0022ef2c3be3d
BLAKE2b-256 38bfae880b08fb4b1c6c1bd5e42cd3bff7f00423f918cff8b130c3763ccf0324

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dulwich-0.20.45-cp38-cp38-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 3f2c137a0003e80e384d116e65b453f8a704c2d393c30a47b447764e7f9c05a1
MD5 327f3c14abd8b6b19068b46b5678cd89
BLAKE2b-256 aac3ac59e28b8941cf7372b17504ea621bd1515d1e4a1e706f5c3f0920b6bee5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.45-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 467.0 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.45-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 efe46167eb02ba85d9c2e993635e7543e1e04bb3261112e9d54daff2385ae5df
MD5 f5161984e39c546f9121ff2e47ae112a
BLAKE2b-256 36ba0dff457dbd254f6ea982cd044899561183c6821161abc63f4b27176ebab9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dulwich-0.20.45-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 4abb1b0e1e50192ce7204c4e14f24c989c5920c56de908365f4e66c6e3458945
MD5 654d0905756aa1671a56d6ba03e6a8f5
BLAKE2b-256 54a076564e258471cfc1d8d1909b4dfbf2e1a89dd0d2f98b30d5b1910b6f8376

See more details on using hashes here.

File details

Details for the file dulwich-0.20.45-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.45-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 eb4189d72a0e2f3070e2abdbd10a05c0e62355cd5496761d6e68f1e865ac6fad
MD5 9acf31a804afd600ffa21e20493dec37
BLAKE2b-256 4e373a2edd782d9f6c17432ea1b990683598a7b62f79dc47e80ae6957baf46dd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dulwich-0.20.45-cp37-cp37m-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 d89f53a739ac3394b5ef2f178480569b7d36d4fe7b4bb49678582914530ce35b
MD5 a6f9ae25a7e7bade32c77a51aa775a02
BLAKE2b-256 3bc3dec07935460624aaafccdc10d590a5da8514c4cfe0c3b901ee155e25eed2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.45-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 466.9 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.45-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 35015e43207752cf7924860e85a3c2290c652c0c3ee81e7c95c52d34638f605d
MD5 a22363da2c0a0101a6cb0842b13baa89
BLAKE2b-256 6ac4ae452d48031289249ef8f9ecff29740476ff9965d41729bf7c6e07ca4749

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dulwich-0.20.45-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 4e405ac9426288ca782c45e066f816d878b4a529acf4d4b0b2a5bb45a804dfec
MD5 c785b007b57a27b0c2cb25ac124a3117
BLAKE2b-256 27c6796e16170716b1f1b89cfe6af34f7ceebc39c10d36578b2d758a1fabb4dc

See more details on using hashes here.

File details

Details for the file dulwich-0.20.45-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.45-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 c8c0fc7d2e3b0ad6a4faadf96f0626fa50935ababfd774b9b94edaa28f0668ec
MD5 3d6d23d7a8447aeca984a3e8d9415f3f
BLAKE2b-256 6bece99e9574a5d517127b36c94512e8c113058580c5ba2cab122c08f78216cd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dulwich-0.20.45-cp36-cp36m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 042bc206764968b17338e32c52bb6a116154eb87a63651971946917dfa37a359
MD5 1208c097ba0f00c70f6486247119b578
BLAKE2b-256 2c029c1ab1b38952e242b1cde828e25b4469ba366f5dff455b7c78d0fe7135d2

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