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

Uploaded Source

Built Distributions

dulwich-0.20.2-cp38-cp38-win_amd64.whl (451.7 kB view details)

Uploaded CPython 3.8 Windows x86-64

dulwich-0.20.2-cp38-cp38-manylinux2010_x86_64.whl (496.0 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

dulwich-0.20.2-cp38-cp38-manylinux1_x86_64.whl (496.0 kB view details)

Uploaded CPython 3.8

dulwich-0.20.2-cp38-cp38-macosx_10_14_x86_64.whl (439.9 kB view details)

Uploaded CPython 3.8 macOS 10.14+ x86-64

dulwich-0.20.2-cp37-cp37m-win_amd64.whl (451.5 kB view details)

Uploaded CPython 3.7m Windows x86-64

dulwich-0.20.2-cp37-cp37m-win32.whl (446.9 kB view details)

Uploaded CPython 3.7m Windows x86

dulwich-0.20.2-cp37-cp37m-manylinux2010_x86_64.whl (495.0 kB view details)

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

dulwich-0.20.2-cp37-cp37m-manylinux1_x86_64.whl (495.0 kB view details)

Uploaded CPython 3.7m

dulwich-0.20.2-cp37-cp37m-macosx_10_14_x86_64.whl (439.8 kB view details)

Uploaded CPython 3.7m macOS 10.14+ x86-64

dulwich-0.20.2-cp36-cp36m-win_amd64.whl (451.6 kB view details)

Uploaded CPython 3.6m Windows x86-64

dulwich-0.20.2-cp36-cp36m-win32.whl (446.6 kB view details)

Uploaded CPython 3.6m Windows x86

dulwich-0.20.2-cp36-cp36m-manylinux2010_x86_64.whl (492.2 kB view details)

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

dulwich-0.20.2-cp36-cp36m-manylinux1_x86_64.whl (492.2 kB view details)

Uploaded CPython 3.6m

dulwich-0.20.2-cp36-cp36m-macosx_10_14_x86_64.whl (439.8 kB view details)

Uploaded CPython 3.6m macOS 10.14+ x86-64

dulwich-0.20.2-cp35-cp35m-macosx_10_14_x86_64.whl (439.8 kB view details)

Uploaded CPython 3.5m macOS 10.14+ x86-64

File details

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

File metadata

  • Download URL: dulwich-0.20.2.tar.gz
  • Upload date:
  • Size: 376.1 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.2.tar.gz
Algorithm Hash digest
SHA256 273fa401e11c215ed81a4a0c8474ed06aeae31900974fdd4a87af5df0e458115
MD5 8bc7339b505768a84c74981b04a5157f
BLAKE2b-256 168eb43e8e612cfe0e03410cd23da18094cbb78296fd56a8275f8213ac9a7699

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.2-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 451.7 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.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3

File hashes

Hashes for dulwich-0.20.2-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 d302691430f978f53ef9af08f9e5546834066b53b580a5b4ca5b90c14ebc3da6
MD5 c7f7f2eb0fb28198b8a0dfb459c205c1
BLAKE2b-256 3cf3da2e4f6800f36c6de48a312be2fb77cfb2764658081c7b705b6fb67e41d9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.2-cp38-cp38-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 496.0 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.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3

File hashes

Hashes for dulwich-0.20.2-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 562d16a2acac458a3642c99b0fe9b102fea49844147b8079ff55c3d19423f0c4
MD5 25f8bfceddf83bf08add8ed7264e3c3a
BLAKE2b-256 64c471cc48478a12b04150a867a4c33b018185bcb934d9a7130cbdc3b11f5a22

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for dulwich-0.20.2-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 be90e9b577734db41f0de8a786eb4aaa8b56bc1f0f28c34912033c1a778773d1
MD5 73e187d4c16dcfa806d20529c25bead7
BLAKE2b-256 88b8f0cf5f68da4f677ce7a7d391b53d0547bcbe44378156f394e3604eea62af

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.2-cp38-cp38-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 439.9 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.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3

File hashes

Hashes for dulwich-0.20.2-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 30cee03fe8417c535d6486caf81f6d649dcc4cdb9e683a9804ff542d8ea92c4c
MD5 6dd9b3e0632180d30cc7a229775f226d
BLAKE2b-256 a9dd118849a9c7fb8f2fadcbf37617d23ffb9d800e2ede789b81c75114836550

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.2-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 451.5 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.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7

File hashes

Hashes for dulwich-0.20.2-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 76ab291e1fb9e5b29de68f007c11bcd740137d99c6e80fb561222fbc79867c60
MD5 d0664502c6464b995d4b61c100e68fea
BLAKE2b-256 dc2c65151885e5b36d3c23f5e33a18a72ab71c52dab018f9071bb26d0c806e31

See more details on using hashes here.

File details

Details for the file dulwich-0.20.2-cp37-cp37m-win32.whl.

File metadata

  • Download URL: dulwich-0.20.2-cp37-cp37m-win32.whl
  • Upload date:
  • Size: 446.9 kB
  • Tags: CPython 3.7m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.5

File hashes

Hashes for dulwich-0.20.2-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 420a109b920c011c75fd11191a863d59318a4d2540f9b59ff74c53bb8c03b93c
MD5 2b456f07ec166228326f362e88d65bc2
BLAKE2b-256 d165168ce9728e411f95449c9306e696dc3ab2e3f3a3279756fea31c97d9a727

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.2-cp37-cp37m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 495.0 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.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3

File hashes

Hashes for dulwich-0.20.2-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 69028ea580eec97de8b7dea95bfec834a745bd8467df3bdd8f29085b0131f365
MD5 66bf072dc5ef5a8bc997b4ec36378b0c
BLAKE2b-256 d29b1517a0ac54782d956612ee133027aad0db0997cdb7909c8f4843dc00c883

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for dulwich-0.20.2-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 7ce727bebbad254b738da2f180e6f67bee87e51e513d1822723f1390cd2833ec
MD5 207406f58e9f2714eb73e1f1bbf92079
BLAKE2b-256 c57cfdb3dc365bc561749e2ea4bc09c1d36273acbc57b403439fa299ab1295cf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.2-cp37-cp37m-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 439.8 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.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7

File hashes

Hashes for dulwich-0.20.2-cp37-cp37m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 c25c5a26270c759fa1dbde3a5976b8e6d0401ba416fa67706d77b0aaaf453598
MD5 32043e6073dceb52310704b15ebddb4f
BLAKE2b-256 6d107f352e428810eec2dba075e49c5d6a03db047220b838138b788f42da172e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.2-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 451.6 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.23.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.8

File hashes

Hashes for dulwich-0.20.2-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 ddf8cb8574e7e48a2767a9cc937f8c02c4162e2c85f602cafee75bb5ed225777
MD5 72993f1c69197396b9caacb2cd2eac29
BLAKE2b-256 f42a2795686ead29ee99f66df7e2e32715a01f2a74f5d4d65389431623f26d88

See more details on using hashes here.

File details

Details for the file dulwich-0.20.2-cp36-cp36m-win32.whl.

File metadata

  • Download URL: dulwich-0.20.2-cp36-cp36m-win32.whl
  • Upload date:
  • Size: 446.6 kB
  • Tags: CPython 3.6m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.8

File hashes

Hashes for dulwich-0.20.2-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 0abe66deb00030d8f6965cc6802c3d6b14aa386e48d72ad68317d12ae0656a6b
MD5 977ef6bac9a363512253d66a2abd4ff2
BLAKE2b-256 9477aec1e96df2cdb69a189259b662298df12cde884f5c67afd830b207ed9f72

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.2-cp36-cp36m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 492.2 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.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3

File hashes

Hashes for dulwich-0.20.2-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 9453ddce20f2961ffcedbed3981832f2c3f5ea41ae67a6af61ff15ad859fccab
MD5 ad4072799177e3791cab44e16b5352c1
BLAKE2b-256 113b24866f011fd7fd03f1a9f083cb1e68a3e0ff24d024893931be3cae9e13b5

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for dulwich-0.20.2-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 4916452f9cde8ec72963641d28945e2ff36cced102b9fc3b1aa97b51a1a37a09
MD5 a00370564307293e1d52cc1d8ef844f0
BLAKE2b-256 5234a73a0ec5b22cf443a0598b07679aab4f5d9b041e04a7acd779ecd408f4d6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.2-cp36-cp36m-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 439.8 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.23.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.10

File hashes

Hashes for dulwich-0.20.2-cp36-cp36m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 12993c57e9f3988e327a939050f16808129f3b2cfa4ac628b23db2a5db467953
MD5 354daba6702c54c1a3d1e52b3d24e355
BLAKE2b-256 b04c70b1dcd1acab0bc0e65407ba64fb6c4a2403e405bab2e71dcee50c21ceef

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.2-cp35-cp35m-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 439.8 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.23.0 setuptools/28.8.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.5.9

File hashes

Hashes for dulwich-0.20.2-cp35-cp35m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 272f95c34435f427ecbec9f5aa84b81cfed8cbb093393bfac1a3d3907c1b2a24
MD5 692d30a8ab2f29b3d7915f29b1665418
BLAKE2b-256 8e7c1ee91e533e486c82203d72d2507a0383e79d74b7aeece532cbae16b2a783

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