Skip to main content

Python Git Library

Project description

Build Status Windows Build Status

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, 3.6, 3.7, 3.8 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.5.tar.gz (384.2 kB view details)

Uploaded Source

Built Distributions

dulwich-0.20.5-cp38-cp38-win_amd64.whl (457.3 kB view details)

Uploaded CPython 3.8 Windows x86-64

dulwich-0.20.5-cp38-cp38-manylinux2010_x86_64.whl (501.5 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

dulwich-0.20.5-cp38-cp38-manylinux1_x86_64.whl (501.5 kB view details)

Uploaded CPython 3.8

dulwich-0.20.5-cp38-cp38-macosx_10_14_x86_64.whl (445.4 kB view details)

Uploaded CPython 3.8 macOS 10.14+ x86-64

dulwich-0.20.5-cp37-cp37m-win_amd64.whl (457.2 kB view details)

Uploaded CPython 3.7m Windows x86-64

dulwich-0.20.5-cp37-cp37m-manylinux2010_x86_64.whl (500.5 kB view details)

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

dulwich-0.20.5-cp37-cp37m-manylinux1_x86_64.whl (500.5 kB view details)

Uploaded CPython 3.7m

dulwich-0.20.5-cp37-cp37m-macosx_10_14_x86_64.whl (445.4 kB view details)

Uploaded CPython 3.7m macOS 10.14+ x86-64

dulwich-0.20.5-cp36-cp36m-win_amd64.whl (457.2 kB view details)

Uploaded CPython 3.6m Windows x86-64

dulwich-0.20.5-cp36-cp36m-manylinux2010_x86_64.whl (497.7 kB view details)

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

dulwich-0.20.5-cp36-cp36m-manylinux1_x86_64.whl (497.7 kB view details)

Uploaded CPython 3.6m

dulwich-0.20.5-cp36-cp36m-macosx_10_14_x86_64.whl (445.3 kB view details)

Uploaded CPython 3.6m macOS 10.14+ x86-64

dulwich-0.20.5-cp35-cp35m-macosx_10_14_x86_64.whl (445.3 kB view details)

Uploaded CPython 3.5m macOS 10.14+ x86-64

File details

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

File metadata

  • Download URL: dulwich-0.20.5.tar.gz
  • Upload date:
  • Size: 384.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.23.0 setuptools/44.1.1 requests-toolbelt/0.8.0 tqdm/4.43.0 CPython/3.8.3

File hashes

Hashes for dulwich-0.20.5.tar.gz
Algorithm Hash digest
SHA256 98484ede022da663c96b54bc8dcdb4407072cb50efd5d20d58ca4e7779931305
MD5 450b4cb3a71ea299d6c04af3cf7eeb2e
BLAKE2b-256 b334adcd6646c5ed59a1206216d4a418121be57df3406f7a46570112db57ba6c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.5-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 457.3 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

File hashes

Hashes for dulwich-0.20.5-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 b332249d29918c0fa70d18d0461e7247ad5526a850ef3a1f166508a3af59c6f6
MD5 dd93b666cd5841dfaba26d6246d811c1
BLAKE2b-256 f4f53fef2f741263ff67dff4521de671a26932ff6efeafdfc8c854c8be86d6d6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.5-cp38-cp38-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 501.5 kB
  • Tags: CPython 3.8, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

File hashes

Hashes for dulwich-0.20.5-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 cc46fea2fc3fc5b3bf473982bb3948d08b2d98a7fa59f28410d58d0c8ecf32e6
MD5 46888f8230aa55e203012f8bbd645811
BLAKE2b-256 a3a5a124fc4bd442ed940798a480068d4b28ad79af912d5711a8d8d4c28e65a8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.5-cp38-cp38-manylinux1_x86_64.whl
  • Upload date:
  • Size: 501.5 kB
  • Tags: CPython 3.8
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

File hashes

Hashes for dulwich-0.20.5-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 2a025eb8a794c07ec3bc2f9659a50b4f60a25437a4dad7d06f5317f0390d2e8c
MD5 1891154e6f3ec945cc9963ff364d6f27
BLAKE2b-256 00c2bbaf37aa95c503e6fd5ba9f816dbaa8b703c00d5a487438395b542bd72af

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.5-cp38-cp38-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 445.4 kB
  • Tags: CPython 3.8, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

File hashes

Hashes for dulwich-0.20.5-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 ef3f1057422a366443bc1a9621ed199a289b56d2958407716ac770ac0eb60716
MD5 50df82b0ea273d3fe60e13ea369280fa
BLAKE2b-256 7c3a7825f12af901614c1166c51a1e58f0a107ecc4bb36e9979b9ca7f0606683

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.5-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 457.2 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.7

File hashes

Hashes for dulwich-0.20.5-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 e4154eb65ecca0d7a7732797aabb63c9fd0f0279b4f8d5a92c7e1b981778138d
MD5 c946dcc5e20d4c51f4b0cf899bda993c
BLAKE2b-256 2d3fd6e4193a11589234189d5ad3ceedcf2ebf29272323ee1e71359cbecff004

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.5-cp37-cp37m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 500.5 kB
  • Tags: CPython 3.7m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

File hashes

Hashes for dulwich-0.20.5-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 863bfb141a1cde6f9b235cac282d6b4c411d547caee6a414846b75db6e990e79
MD5 7f509598f397749ee8e5ea4a65fbc478
BLAKE2b-256 ce785e8087fd22bb4628782f2e998f73341cd297914fa0573cd78d3999e44599

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.5-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 500.5 kB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

File hashes

Hashes for dulwich-0.20.5-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 17f03a08725b067ebc270ba4e57eb3df68ee77ece4bf930318a71328a6dd240f
MD5 23238d03048d65561378cabd5d27e74f
BLAKE2b-256 89fe38e27a78d438e2b5eb0708a30a59b9d00e190daf4c805a981fa5667da421

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.5-cp37-cp37m-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 445.4 kB
  • Tags: CPython 3.7m, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.7

File hashes

Hashes for dulwich-0.20.5-cp37-cp37m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 3b6418af63e7b89c83e5d3df37643096f3afd35c0e5c988b3e2f8d55ba0cb89d
MD5 f72ac1efa5f094b762eda4b149b2bb8f
BLAKE2b-256 bacf7c4266426a510abb9a249dd923bdf4d3a259ef338ae5ede1e2d0b3a8d58d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.5-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 457.2 kB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.6.8

File hashes

Hashes for dulwich-0.20.5-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 b45a6beead9d333a6e96a626b3762d12ddebe900973aeac1f6605c43bb29f723
MD5 f35296850682d824dd8ed6d9f59cd0af
BLAKE2b-256 98b80eeabc7957483f8513349a8747d7a2d39e702d977fb4afdc4e0f4daac545

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.5-cp36-cp36m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 497.7 kB
  • Tags: CPython 3.6m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

File hashes

Hashes for dulwich-0.20.5-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 372d1fd746b9513629f72e4e6a2a4c95bbd9c8fd904cf8ea83fe836c6e3b82be
MD5 badb4fbcbf484fe586b1f118e72b27f2
BLAKE2b-256 869a35c72dd42ac80d117394dbc2972727f63822fd17ef3fb68426b7ce12e74b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.5-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 497.7 kB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

File hashes

Hashes for dulwich-0.20.5-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 036fe7f38a31185033fff6d6ecf13d294d4ed58de6cb8655f933732fa1780cde
MD5 a6719a02cdd271743c3cbf9fe88d6fe4
BLAKE2b-256 7a424e8ccf2ee5fe01706adac9b10b90d46a0bec67197b0a83f8a6775ffd0564

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.5-cp36-cp36m-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 445.3 kB
  • Tags: CPython 3.6m, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.6.10

File hashes

Hashes for dulwich-0.20.5-cp36-cp36m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 30355d696d93a58602349b546be6d993e9eee8b4e3d18fe4b4b523fc50e249dc
MD5 f265473a87c3982a3dea2eae70a1bd7e
BLAKE2b-256 35d0b19ebd725d901bc50d2236ba539dda48ed7417946f8141f139d7c6b990a0

See more details on using hashes here.

File details

Details for the file dulwich-0.20.5-cp35-cp35m-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: dulwich-0.20.5-cp35-cp35m-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 445.3 kB
  • Tags: CPython 3.5m, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/28.8.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.5.9

File hashes

Hashes for dulwich-0.20.5-cp35-cp35m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 31a528b7b4274d4610aed5b6a3403b8250d4dbdf02aaef51cbb795c6d1ce6dda
MD5 5b1e2db73b646efb2b45c33d130da2e5
BLAKE2b-256 575fe544322e7888027dd3ed61942c58f8cdcc9a5d4cf104b1aeb0404ff86f51

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