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

Uploaded Source

Built Distributions

dulwich-0.20.1-py3-none-any.whl (427.9 kB view details)

Uploaded Python 3

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

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

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

Uploaded CPython 3.8

dulwich-0.20.1-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.1-cp37-cp37m-win_amd64.whl (449.2 kB view details)

Uploaded CPython 3.7m Windows x86-64

dulwich-0.20.1-cp37-cp37m-win32.whl (446.6 kB view details)

Uploaded CPython 3.7m Windows x86

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

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

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

Uploaded CPython 3.7m

dulwich-0.20.1-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.1-cp36-cp36m-win_amd64.whl (449.2 kB view details)

Uploaded CPython 3.6m Windows x86-64

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

Uploaded CPython 3.6m Windows x86

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

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

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

Uploaded CPython 3.6m

dulwich-0.20.1-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.1-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.1.tar.gz.

File metadata

  • Download URL: dulwich-0.20.1.tar.gz
  • Upload date:
  • Size: 376.8 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.1.tar.gz
Algorithm Hash digest
SHA256 8d67fc2474952a46c74bc205a42f117f8146c0f61532211d2a53d27c8d267ab2
MD5 567f3e0a6b64702d6c0b5d86d59fffa8
BLAKE2b-256 4b3285065b278b68d07338a9f53c168d1d0c278404a8cbcb4d0e6092c2040ea5

See more details on using hashes here.

File details

Details for the file dulwich-0.20.1-py3-none-any.whl.

File metadata

  • Download URL: dulwich-0.20.1-py3-none-any.whl
  • Upload date:
  • Size: 427.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.7

File hashes

Hashes for dulwich-0.20.1-py3-none-any.whl
Algorithm Hash digest
SHA256 93e7b3a2a4e0abab12393e1f7b514c02bfe9e88ade8cd69a3e68958f53bb4ed5
MD5 4867282f505a6888abd55bd576678e93
BLAKE2b-256 a20a8b9536dd6bc4a67c0038ff349a8357942edf1cce0284fe245f5ca069182b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.1-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.1-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 1aa9da861da596213bc9b32444083e1f467cce35f128064abf22dbe893d3a7dc
MD5 adb50c7c22b86e306596223884caecec
BLAKE2b-256 583346585dc597517f8a21d2038e9a8dc64265686509e0c67d41f58b120c6e68

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.1-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.1-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 600108c5401afa97c501f5c01131a7e85c3de9c94417f75e304a27c6636072b9
MD5 6ca69f027a16b940cd26b671076cdcbf
BLAKE2b-256 3aae59ece772ac2062aaded71b8438e9f6b5776dc936b7cf4a8337a84381a12a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.1-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.1-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 4d0f68e3a7172abcd85c66bf98726a53d7cf107dd75c0efad7cb3c2581c531b2
MD5 d8462eb245a90359178744fd12d4b4b4
BLAKE2b-256 9849867c4c7ab67ea8edacd2c504df9b148ba9c8c0d073a2ff124aa3c7d5b5f4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.1-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 449.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.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.1-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 77657c36498bb6f76de27861d80aad74e01b63a98d9074f286b6166b206e2a1e
MD5 063ad467357558fa4e1f67abd0517030
BLAKE2b-256 f4b617338013ce3426afe448eb6164202089af9560d598b77567c96cf1e72deb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.1-cp37-cp37m-win32.whl
  • Upload date:
  • Size: 446.6 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.1-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 8765a9ef27b952236a1f4b19d751f81280c89f566a5b7f4edaf3074c9bd21e3e
MD5 a02722ea1f0d444299b4d42535870e67
BLAKE2b-256 072972afacfdfe09caa06be349290220df32fdf2cab0f03553995f9c60437223

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.1-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.1-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 9d4d71e40091d738fb2ecc2fd69cb511bf10bb790d00f5528a657d0582e60689
MD5 7d511480b4a5adfbc2c6953593373468
BLAKE2b-256 d9b50835b92679866f8dc05bd4e7a4ec7eed8e1d2d6fe674a3734e79715ff334

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.1-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.1-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 e4b87c8b6f9f0845f4c84c1d438604687293fedd97b253e2a3ee7f8e98e7a811
MD5 f9177aa99b96902a436210d91b4402aa
BLAKE2b-256 152730c348736da4ccd3ad08d58519f69fc10764b21bf61d9ce7e2b9072a6393

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.1-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.1-cp37-cp37m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 f1e04f1ab4f74bfdd747dfe77407126bccee0b9b15593b0cbf5a015884b25e66
MD5 f43db34e2e0b9c7739fd5c1fecfd14e1
BLAKE2b-256 ac46a0f93889af2511b0f009c429a368f05f6b52047e55b1aec17d9d9626df9f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.1-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 449.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.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.1-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 a0a917782496efa937b39387f7b3a2bfd440b8b092573fa7df81d6e45ee268db
MD5 e121d35979a185da87aa1b2ce9077693
BLAKE2b-256 aa3abb92636b81aebf167a8b4bfb3c0461dd6bf6bcd63c9ca873b0b823f366e4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.1-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.1-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 36e8e39891bc284936c6e6193c0448e89028c56ca6c072f5f17fc1a549e75e8d
MD5 45a792cf31395f6ce521852edd25c12a
BLAKE2b-256 182354930d587bae13d6e45cad7cec514552d1493f0f2b8ff2cd2e0d8fd63b43

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.1-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.1-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 da1447cf729d75c787bd770012de6a93fd56e5fbef3b2bd464fdef3b3969dd58
MD5 014e8009022b088b904a7d68d1369db4
BLAKE2b-256 150cc3d878043a4beabac13b7e81506d7159c0809e4be9a4c83c10f49d9305d7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.1-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.1-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 b7e2ae189cbfb547771d3b6756279068aa823a26668bd96e3947715147168533
MD5 e12c2560e03fd787510a0606c69193cd
BLAKE2b-256 6cb003cd939f5230d2e9e8871c0766437968477378623f637bc81f53b5278015

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.1-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.1-cp36-cp36m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 a8cc1dbd8cf5b7a6a63c5cc5f6faecbd3840d2e6686b7fe0ca44d3d8acbb0b6f
MD5 65d7863c0d3fa6fa695f13058456202a
BLAKE2b-256 8b26f0a33ceae53b019d82348fc01e9127c27dd3aec760b8d15b737da6ef57a0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.1-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.1-cp35-cp35m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 1b53a9e10e4bfe22243e676324efb1cadaa9442c59f2ec312915843854f39d8a
MD5 811bce9a9bb1539f587b968add1c8ff6
BLAKE2b-256 89348dfd8c46085b06261f631543fc85e87f9e92a88a32404e7d15a254b80916

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