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

Uploaded Source

Built Distributions

dulwich-0.20.20-cp39-cp39-win_amd64.whl (471.4 kB view details)

Uploaded CPython 3.9 Windows x86-64

dulwich-0.20.20-cp39-cp39-manylinux2010_x86_64.whl (513.5 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.12+ x86-64

dulwich-0.20.20-cp39-cp39-manylinux1_x86_64.whl (513.5 kB view details)

Uploaded CPython 3.9

dulwich-0.20.20-cp39-cp39-macosx_10_14_x86_64.whl (459.4 kB view details)

Uploaded CPython 3.9 macOS 10.14+ x86-64

dulwich-0.20.20-cp38-cp38-win_amd64.whl (471.4 kB view details)

Uploaded CPython 3.8 Windows x86-64

dulwich-0.20.20-cp38-cp38-manylinux2010_x86_64.whl (515.3 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

dulwich-0.20.20-cp38-cp38-manylinux1_x86_64.whl (515.3 kB view details)

Uploaded CPython 3.8

dulwich-0.20.20-cp38-cp38-macosx_10_14_x86_64.whl (459.4 kB view details)

Uploaded CPython 3.8 macOS 10.14+ x86-64

dulwich-0.20.20-cp37-cp37m-win_amd64.whl (471.3 kB view details)

Uploaded CPython 3.7m Windows x86-64

dulwich-0.20.20-cp37-cp37m-manylinux2010_x86_64.whl (514.3 kB view details)

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

dulwich-0.20.20-cp37-cp37m-manylinux1_x86_64.whl (514.3 kB view details)

Uploaded CPython 3.7m

dulwich-0.20.20-cp37-cp37m-macosx_10_14_x86_64.whl (459.3 kB view details)

Uploaded CPython 3.7m macOS 10.14+ x86-64

dulwich-0.20.20-cp36-cp36m-win_amd64.whl (471.3 kB view details)

Uploaded CPython 3.6m Windows x86-64

dulwich-0.20.20-cp36-cp36m-manylinux2010_x86_64.whl (511.5 kB view details)

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

dulwich-0.20.20-cp36-cp36m-manylinux1_x86_64.whl (511.5 kB view details)

Uploaded CPython 3.6m

dulwich-0.20.20-cp36-cp36m-macosx_10_14_x86_64.whl (459.3 kB view details)

Uploaded CPython 3.6m macOS 10.14+ x86-64

File details

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

File metadata

  • Download URL: dulwich-0.20.20.tar.gz
  • Upload date:
  • Size: 397.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.4.2 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.2

File hashes

Hashes for dulwich-0.20.20.tar.gz
Algorithm Hash digest
SHA256 426959b9705fadcc6c820e5adf3291d71a48aba0afccf7411422e3308f115f87
MD5 55eefdfd7764e360e902ed77fd3a8859
BLAKE2b-256 74a86e7cba1c5a37169e7f79343b6ab4a1f58ba4b9ddcc1322e561f9b193f759

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.20-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 471.4 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.1

File hashes

Hashes for dulwich-0.20.20-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 f94396c746df2678fc9a3c7abd6c135ea4ba10e1c27f5d1f1cdeebd163541232
MD5 157913968e52072a434b04d5128deb06
BLAKE2b-256 c565b5894006b904583d9557d7e46d9e435071fc8509eaff75ce4129d5aaa022

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.20-cp39-cp39-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 513.5 kB
  • Tags: CPython 3.9, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.1

File hashes

Hashes for dulwich-0.20.20-cp39-cp39-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 e24f7f665c7e615c7c6a51a1d8e24e89a9c1a9f5898b89bbeff4a845ad3c19dc
MD5 33507226d0793f6e07c55b4b3ae5ed81
BLAKE2b-256 b968c66690bd8234a785399ffc8cd0756a10255549b4787e926c97c005c3a066

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.20-cp39-cp39-manylinux1_x86_64.whl
  • Upload date:
  • Size: 513.5 kB
  • Tags: CPython 3.9
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.1

File hashes

Hashes for dulwich-0.20.20-cp39-cp39-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 e0bbcb3e9a5889d3e9e21ea99ae239389da054208e31485c591f60c7b08345aa
MD5 931b56932e02043c731acb23ea4b9a08
BLAKE2b-256 69b948a1a8653e2c5a18871d0ba674f7a4003fd720d62fd5da7f8d28c2b13932

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.20-cp39-cp39-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 459.4 kB
  • Tags: CPython 3.9, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.2

File hashes

Hashes for dulwich-0.20.20-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 03e7e75a8777fdb92efa66d25be378704d0b1c18af0f5970a3288c0a7c210e19
MD5 476ef4a6235f0cd25989f1553453edc2
BLAKE2b-256 88c4b739209bcfa202a1d3fa3fcea962a54763962c5ea14f0c808a68c4309a58

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.20-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 471.4 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.8.7

File hashes

Hashes for dulwich-0.20.20-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 a5507bdc13ac88eafc7d03e58288814bbf59648b484bd27b7692cc9fe3fd87a4
MD5 d7560a003ad4d73681188f380aba9f18
BLAKE2b-256 92370e57374347222dd2dfb93c7062754ebf66dd1337b28d0092f6ef8e10010f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.20-cp38-cp38-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 515.3 kB
  • Tags: CPython 3.8, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.1

File hashes

Hashes for dulwich-0.20.20-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 def6f826cae29d8d9ce0429fbec0c48ec7924ba37d596f2076b5f55bff93d793
MD5 288f6e5423a7d4e1f9995e599c0e7b57
BLAKE2b-256 cc3967e0c8a20be8f847684ba55c599343e9ae65960fc3aef9c271a0e349c4d7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.20-cp38-cp38-manylinux1_x86_64.whl
  • Upload date:
  • Size: 515.3 kB
  • Tags: CPython 3.8
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.1

File hashes

Hashes for dulwich-0.20.20-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 ff11304aaa3f452257454d11d084226fb008f76977a4c90ae2ba3dee81017a74
MD5 c5fea85c2fd03795623d0ff4e62bc817
BLAKE2b-256 e1377b9ba2040d8d87349263bc05738026afeac33c8ee32c3da94177a1c627a6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.20-cp38-cp38-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 459.4 kB
  • Tags: CPython 3.8, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.8.8

File hashes

Hashes for dulwich-0.20.20-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 1035720230d9defc2178ca79b8036442896a3391a451ed09d245f3fadf389452
MD5 63b544f039f09ce79f0666fae66f4347
BLAKE2b-256 59faa8bc5fa20d7fbdb884cf25628557ac6f0ebbf9737853da103a7c13a6633d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.20-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 471.3 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.7.9

File hashes

Hashes for dulwich-0.20.20-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 2833e9cf32d653cb326ea2423eedb0439e21d95e7b72a9e4c3ca00e2526f4554
MD5 b6fa386b2787ddd682cab7292fdd7ec6
BLAKE2b-256 8679032e393663c8660d6f1919487c7d732b1196df703101576db8cc0ec64796

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.20-cp37-cp37m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 514.3 kB
  • Tags: CPython 3.7m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.1

File hashes

Hashes for dulwich-0.20.20-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 22c3f90c9c85b09314c2775ad7454edada433cc0f4ba69334383c9b00b09ef3c
MD5 e7c2ca980d2e81e57206b8e528254542
BLAKE2b-256 d8510725560f04a65ef8ce45a379bcd3d5abf1976f2ec79452e048f056b0bdf1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.20-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 514.3 kB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.1

File hashes

Hashes for dulwich-0.20.20-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 5c7bddd947b62c50cfe1bcc10da5ed51aecf38b4b2ea0e8b420232aaa7cf64ef
MD5 e800b4c7bff123162039b53edd6b7d22
BLAKE2b-256 a5845334f3b9d499b4c1e58bccd20614117eb6242a0173f7ccda073ddd9c7945

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.20-cp37-cp37m-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 459.3 kB
  • Tags: CPython 3.7m, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.7.10

File hashes

Hashes for dulwich-0.20.20-cp37-cp37m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 cfc48fa2ce877360f0a7aa0ec3aa5143d61617ec66f96bb11a30c7ae135ec450
MD5 bdb96e3f79dab932dce330bdda133c51
BLAKE2b-256 3eea4eecec3bdcbf344e0c0158fd7cb62d62dcbf15a39c3261d3f1090b4d4721

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.20-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 471.3 kB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.6.8

File hashes

Hashes for dulwich-0.20.20-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 61d91761a10ba90e2bb709297d7dab9c6a74b19bafb07c1bc644ee2a6f835c0b
MD5 57e26fe39794efdbf53f7ebd2c5ae19a
BLAKE2b-256 39f77c0d1a9d4ba20848afa4d1c822611f005320dd789481131fcb8089b9f7e5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.20-cp36-cp36m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 511.5 kB
  • Tags: CPython 3.6m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.1

File hashes

Hashes for dulwich-0.20.20-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 1af700600ee04e0ddccc619431ea554e4af97ccbb37e5e61dfdf3ca08cea7b05
MD5 09fcf985bf64636b489deec9b778d3bb
BLAKE2b-256 fae96b5a8594e519f48f3c6d611dbcd514806c26772c1fa753357c6e1ce527bc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.20-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 511.5 kB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.1

File hashes

Hashes for dulwich-0.20.20-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 cfb727c59bfa418d378934206e29857512f00608cbc5b27e544b2357d36f9713
MD5 e156065bcd3fcada44dc342297ac00fd
BLAKE2b-256 9dba5a0b3c3ec2fcfe6c745b6eaa4a1f95c33dfd371bb80352116ed867972a76

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.20-cp36-cp36m-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 459.3 kB
  • Tags: CPython 3.6m, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.6.13

File hashes

Hashes for dulwich-0.20.20-cp36-cp36m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 da920a0d2ff736b89a403f8d5413c78fbac015fbc37775cd862820c868b31cad
MD5 3062aabbed89beba5571ff897dae8a8e
BLAKE2b-256 876511eb832516b428a03172178f23daf2663c8205ee95d27b29b9bb764aa545

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