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

Uploaded Source

Built Distributions

dulwich-0.20.14-cp39-cp39-win_amd64.whl (461.6 kB view details)

Uploaded CPython 3.9 Windows x86-64

dulwich-0.20.14-cp39-cp39-manylinux2010_x86_64.whl (503.8 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.12+ x86-64

dulwich-0.20.14-cp39-cp39-manylinux1_x86_64.whl (503.8 kB view details)

Uploaded CPython 3.9

dulwich-0.20.14-cp39-cp39-macosx_10_14_x86_64.whl (449.7 kB view details)

Uploaded CPython 3.9 macOS 10.14+ x86-64

dulwich-0.20.14-cp38-cp38-win_amd64.whl (461.6 kB view details)

Uploaded CPython 3.8 Windows x86-64

dulwich-0.20.14-cp38-cp38-manylinux2010_x86_64.whl (505.7 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

dulwich-0.20.14-cp38-cp38-manylinux1_x86_64.whl (505.7 kB view details)

Uploaded CPython 3.8

dulwich-0.20.14-cp38-cp38-macosx_10_14_x86_64.whl (449.7 kB view details)

Uploaded CPython 3.8 macOS 10.14+ x86-64

dulwich-0.20.14-cp37-cp37m-win_amd64.whl (461.4 kB view details)

Uploaded CPython 3.7m Windows x86-64

dulwich-0.20.14-cp37-cp37m-manylinux2010_x86_64.whl (504.7 kB view details)

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

dulwich-0.20.14-cp37-cp37m-manylinux1_x86_64.whl (504.7 kB view details)

Uploaded CPython 3.7m

dulwich-0.20.14-cp37-cp37m-macosx_10_14_x86_64.whl (449.6 kB view details)

Uploaded CPython 3.7m macOS 10.14+ x86-64

dulwich-0.20.14-cp36-cp36m-win_amd64.whl (461.4 kB view details)

Uploaded CPython 3.6m Windows x86-64

dulwich-0.20.14-cp36-cp36m-manylinux2010_x86_64.whl (501.8 kB view details)

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

dulwich-0.20.14-cp36-cp36m-manylinux1_x86_64.whl (501.8 kB view details)

Uploaded CPython 3.6m

dulwich-0.20.14-cp36-cp36m-macosx_10_14_x86_64.whl (449.6 kB view details)

Uploaded CPython 3.6m macOS 10.14+ x86-64

File details

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

File metadata

  • Download URL: dulwich-0.20.14.tar.gz
  • Upload date:
  • Size: 389.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.4.2 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.8.0 tqdm/4.51.0 CPython/3.9.0+

File hashes

Hashes for dulwich-0.20.14.tar.gz
Algorithm Hash digest
SHA256 21d6ee82708f7c67ce3fdcaf1f1407e524f7f4f7411a410a972faa2176baec0d
MD5 bba739431fec900bfba4fbc9d3ce78b7
BLAKE2b-256 c76db5ee7c6a5d202b41efa356a56efd5b1990eab518d9e583e621da0b1cf509

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.14-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 461.6 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.9.0

File hashes

Hashes for dulwich-0.20.14-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 1d6329a410d93d5174184a8196190a02bf149c34f975ea0bc94fd940c173438b
MD5 da613bee88740adc3c3a92dec6c2e27a
BLAKE2b-256 11744907f5a49cbbabcda1b5d891608a79c58aa8973307614561d13c58fc8d6e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.14-cp39-cp39-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 503.8 kB
  • Tags: CPython 3.9, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.9.0

File hashes

Hashes for dulwich-0.20.14-cp39-cp39-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 ba7024f34710a2ac76e97063cb3bcf49ca6268f7839be2f80e529263dfccaf1b
MD5 7087781f77461672ab473e895057c7e9
BLAKE2b-256 7e0c6685a3c1714c2dc5bd105cdba8b9aaac0aff3e2f408ff86682f3730bb0b8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.14-cp39-cp39-manylinux1_x86_64.whl
  • Upload date:
  • Size: 503.8 kB
  • Tags: CPython 3.9
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.9.0

File hashes

Hashes for dulwich-0.20.14-cp39-cp39-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 84c4ce2e88f2c815a23a2f817f682564651d1f48a79519e08ce948822862d8b5
MD5 3135c0923255d7560b187e8da0f02910
BLAKE2b-256 b1814f65973b17ee07be4b9bed25de0123eb3d03269c7f5d5a38b8ff397665b6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.14-cp39-cp39-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 449.7 kB
  • Tags: CPython 3.9, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.9.0

File hashes

Hashes for dulwich-0.20.14-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 418803330aaa4b81d527e395da666dd019f0a6693a686ae5bd81fa80dc5c0546
MD5 fa8e28dc0f85c38aaee4709e6bdbeb27
BLAKE2b-256 8ecf4b782db3f56e16b5d6d202a43e3f19bbd3cd6609793efb5b39cb31b615f4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.14-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 461.6 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.8.6

File hashes

Hashes for dulwich-0.20.14-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 5b682c65d2ac96a41c421a62d7eb8e0631477a5f282be4418bebd335b748f4df
MD5 cd44aef4da7ae8662fa04b3471430937
BLAKE2b-256 8f2dcd39ef396b85d635d0dafbfda979de7d4bafb13e89e1314df4b421c42a0c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.14-cp38-cp38-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 505.7 kB
  • Tags: CPython 3.8, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.9.0

File hashes

Hashes for dulwich-0.20.14-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 021d5c6862d389e9b8c5e5671c236dd4e34cc670ec45965f88c2b7a1b6856716
MD5 35381021c96f33c6b5fa17c6612e79e3
BLAKE2b-256 af30d13eeb5d4f46c3d13adcb8074f1b24b23050030b65daf81f7525ec775917

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.14-cp38-cp38-manylinux1_x86_64.whl
  • Upload date:
  • Size: 505.7 kB
  • Tags: CPython 3.8
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.9.0

File hashes

Hashes for dulwich-0.20.14-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 782c3a79139e865065512ea01514f1c2c19f661757a7caa93334dda4f0a18b56
MD5 a637321fe884bd9f591815cedbd11dd3
BLAKE2b-256 8eacee4a07a48e353bf1505ae3e21acf96c60d70c49b62cb657c9d688b94456d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.14-cp38-cp38-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 449.7 kB
  • Tags: CPython 3.8, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.8.6

File hashes

Hashes for dulwich-0.20.14-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 3126e3ae23eee2347dc2167b519832f584d667d06a43b418292029dcdd37d19b
MD5 7476595677c597e5116729ff0a2fff60
BLAKE2b-256 496b6eba3324d0e0ff724b22d47002a71bbc9fb91b73cabe16fc0e2974fa31ea

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.14-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 461.4 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.7.9

File hashes

Hashes for dulwich-0.20.14-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 57c8600171f6fd0e9f540ab0931256a1a1909a7b8bcb581fb972850fd1351f76
MD5 53dfc091c5678f9859cbd43cb45175dc
BLAKE2b-256 3c205ba3af5a3c701e378710c61a8108ae4e4ed576336ba20cedb082b1695d63

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.14-cp37-cp37m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 504.7 kB
  • Tags: CPython 3.7m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.9.0

File hashes

Hashes for dulwich-0.20.14-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 4a5b83b7718d8338ff66dc0c1d9fe9295de47cd6b504820df19eba91ddb6d92a
MD5 8958773be6385fdfde25cce40e1dfcab
BLAKE2b-256 52e62271f6482d39296d810c4bae598c0b6183f552a318f004ff81aa1d8c00d7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.14-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 504.7 kB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.9.0

File hashes

Hashes for dulwich-0.20.14-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 fd3bf4c103ff760b4af8e69cf1fe335c333b4684cc6ce35fbc47da96407f329a
MD5 a843e176ebff206fb941b48b9134ac1f
BLAKE2b-256 dd9d6bc993b48e91bc79462bce74544c1f6167ade7b9f0d6084bef8569e2a870

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.14-cp37-cp37m-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 449.6 kB
  • Tags: CPython 3.7m, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.7.9

File hashes

Hashes for dulwich-0.20.14-cp37-cp37m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 36a9d7998f25f047f7699450ae7cec11b0a89134deb9f879a92c8f9b3a36c238
MD5 69d43b469ccb0481a06fbf4df2644dc3
BLAKE2b-256 9ec789909fdaf14e2ca413dbbfa6bb615dfde14665833d20c934b8935e5e0e38

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.14-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 461.4 kB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.6.8

File hashes

Hashes for dulwich-0.20.14-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 297655bff6421dcb9d4705f9f42ebec8f7793c592f500b797e59dcd63ad96fcd
MD5 9276d37cdfd7b8751a0b249fd3bf734a
BLAKE2b-256 5153fc9b867185f97779cd6f6ee915d1da5e265247f217046a938df3e3d842ec

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.14-cp36-cp36m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 501.8 kB
  • Tags: CPython 3.6m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.9.0

File hashes

Hashes for dulwich-0.20.14-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 c5ebffce484459a2b3a83ec4c2426efb6f701887c0c99d237d4603685f703990
MD5 16027dd48535aa0d40fe8ba902c94a73
BLAKE2b-256 1e3eb5ee0d62282190a2937cde50bd7744318ffbd688146953f6305ccfb73274

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.14-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 501.8 kB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.9.0

File hashes

Hashes for dulwich-0.20.14-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 0e1f4d182bd6845f5d579f12e0ab6733e58aff138762054aaf39ec7bef8e1a50
MD5 4adb26dff1fb5dca4c940d493f5d760a
BLAKE2b-256 6c1237d9bbf1358c607c3370812efee2a5c14ba3fff6dd4436bffcea7736c54f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.14-cp36-cp36m-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 449.6 kB
  • Tags: CPython 3.6m, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.6.12

File hashes

Hashes for dulwich-0.20.14-cp36-cp36m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 837d32443c5a765b3b241ea99310c61f2ee9f44ee4d3c12c64a64851abba7434
MD5 c4c1be6c4e32f7edc8e1a39ccb384573
BLAKE2b-256 627765f53a9f653300dbd4902a2d3b9e08fb597ff4af092e9d5b6d4d5ee39c18

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