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 2.7, 3.4, 3.5, 3.6, 3.7 and Pypy.

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

Uploaded Source

Built Distributions

dulwich-0.19.15-py3-none-any.whl (419.8 kB view details)

Uploaded Python 3

dulwich-0.19.15-py2-none-any.whl (419.8 kB view details)

Uploaded Python 2

dulwich-0.19.15-cp36-cp36m-win_amd64.whl (440.8 kB view details)

Uploaded CPython 3.6m Windows x86-64

dulwich-0.19.15-cp36-cp36m-win32.whl (438.4 kB view details)

Uploaded CPython 3.6m Windows x86

dulwich-0.19.15-cp35-cp35m-win_amd64.whl (440.7 kB view details)

Uploaded CPython 3.5m Windows x86-64

dulwich-0.19.15-cp35-cp35m-win32.whl (438.1 kB view details)

Uploaded CPython 3.5m Windows x86

dulwich-0.19.15-cp27-cp27m-win_amd64.whl (434.1 kB view details)

Uploaded CPython 2.7m Windows x86-64

dulwich-0.19.15-cp27-cp27m-win32.whl (434.4 kB view details)

Uploaded CPython 2.7m Windows x86

File details

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

File metadata

  • Download URL: dulwich-0.19.15.tar.gz
  • Upload date:
  • Size: 369.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.20.0 setuptools/44.0.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.7.6

File hashes

Hashes for dulwich-0.19.15.tar.gz
Algorithm Hash digest
SHA256 805a9b1932dc28b91f359f529c2e46b7623aec3ab719c96d3f2fc63d0d8d8411
MD5 929e01fa8b28360aded9e39e08881a77
BLAKE2b-256 619e975cd95e7b15f71ff29307a02fc61d232d07cc3b66519ca43aceff0cde10

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.19.15-py3-none-any.whl
  • Upload date:
  • Size: 419.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.6.7

File hashes

Hashes for dulwich-0.19.15-py3-none-any.whl
Algorithm Hash digest
SHA256 3285366eb2e97ee89ac4715d24f8c66aff78f7c7040f2b1c3d7cfc8973293ced
MD5 7c0f18bbc86d68fd547c786c7f542a14
BLAKE2b-256 cd7008d356c8eb7e2a76879f535a5133e08bd0c265794588893497f17f03d89b

See more details on using hashes here.

File details

Details for the file dulwich-0.19.15-py2-none-any.whl.

File metadata

  • Download URL: dulwich-0.19.15-py2-none-any.whl
  • Upload date:
  • Size: 419.8 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/2.7.15

File hashes

Hashes for dulwich-0.19.15-py2-none-any.whl
Algorithm Hash digest
SHA256 578722f11e881bbeb61aed80178839bcf9064c553051b78edabc91d5450996cb
MD5 b3c11574f4e90949b4fec8404ef91b91
BLAKE2b-256 e926a45c9187a08f121afbb9c0939bfee94fbb6ca179350e775b6d113895c973

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.19.15-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 440.8 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.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.6.8

File hashes

Hashes for dulwich-0.19.15-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 7b05cfb4fe9d4dab5121c880025f8f93a3062d2e7a89a2db375250e707c091da
MD5 e95eb6c3507c98282963e7e8f5ae7ec6
BLAKE2b-256 7c8d2992cdf6dd19457a1946393958e351acc06ba3cb5c47eb38325cc5c593e3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.19.15-cp36-cp36m-win32.whl
  • Upload date:
  • Size: 438.4 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.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.6.8

File hashes

Hashes for dulwich-0.19.15-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 cfb9b80bc16454d92742a0b3d916ef9fc77e4c0502515d9a3068c8c7c7abb943
MD5 9286c27253cc56df406a8f183f4ea167
BLAKE2b-256 83acb14c460d05b1869797bd6bd11b6a26fefc4129000aa1015389012606bf9b

See more details on using hashes here.

File details

Details for the file dulwich-0.19.15-cp35-cp35m-win_amd64.whl.

File metadata

  • Download URL: dulwich-0.19.15-cp35-cp35m-win_amd64.whl
  • Upload date:
  • Size: 440.7 kB
  • Tags: CPython 3.5m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/28.8.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.5.4

File hashes

Hashes for dulwich-0.19.15-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 81a023d151b11d560c6d17aeca36e107e43ca9cdc3e867e4f6d8fb43b2ff36f6
MD5 e107854aae1174b5563eff6748dc3794
BLAKE2b-256 6b64321a14810b64259133bd53a8a8addd36f5d96f273893e1358f08c1a3afef

See more details on using hashes here.

File details

Details for the file dulwich-0.19.15-cp35-cp35m-win32.whl.

File metadata

  • Download URL: dulwich-0.19.15-cp35-cp35m-win32.whl
  • Upload date:
  • Size: 438.1 kB
  • Tags: CPython 3.5m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/28.8.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.5.4

File hashes

Hashes for dulwich-0.19.15-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 cebd1996f6c8ce7c4e0d9565b727be132094d9baab8d81721a893f8b180f6841
MD5 db387ba76f6d958ed8e6d5d95f933f3c
BLAKE2b-256 d7c748b56605139e597cde53997da4fe812035eaaee52ab98398f69d3bfa2522

See more details on using hashes here.

File details

Details for the file dulwich-0.19.15-cp27-cp27m-win_amd64.whl.

File metadata

  • Download URL: dulwich-0.19.15-cp27-cp27m-win_amd64.whl
  • Upload date:
  • Size: 434.1 kB
  • Tags: CPython 2.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/2.7.17

File hashes

Hashes for dulwich-0.19.15-cp27-cp27m-win_amd64.whl
Algorithm Hash digest
SHA256 92681a22dbd68c9a538a3be6f0aeab46a877b01ea2a71d20e0b231d3209c6efc
MD5 c6c712faf7170ac5306bf70e3904f70a
BLAKE2b-256 8109525c63f6ca6b62b35ed00a229d4450b82894b43087a365d0edbca178353d

See more details on using hashes here.

File details

Details for the file dulwich-0.19.15-cp27-cp27m-win32.whl.

File metadata

  • Download URL: dulwich-0.19.15-cp27-cp27m-win32.whl
  • Upload date:
  • Size: 434.4 kB
  • Tags: CPython 2.7m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/2.7.17

File hashes

Hashes for dulwich-0.19.15-cp27-cp27m-win32.whl
Algorithm Hash digest
SHA256 4090d5dc1b7bacccf23cbbf963d0ce7d97c3d93421c6d156b1c52b010f36c361
MD5 e6310ee12884e29de2d0de070b4b67c1
BLAKE2b-256 f697ac90a81e0462d72ef173336c9a675874dd04546ffdb7b1d9202d6b698b28

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