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

Uploaded Source

Built Distributions

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

Uploaded Python 3

dulwich-0.19.12-cp36-cp36m-win_amd64.whl (440.7 kB view details)

Uploaded CPython 3.6m Windows x86-64

dulwich-0.19.12-cp36-cp36m-win32.whl (438.1 kB view details)

Uploaded CPython 3.6m Windows x86

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

Uploaded CPython 3.5m Windows x86-64

dulwich-0.19.12-cp35-cp35m-win32.whl (438.0 kB view details)

Uploaded CPython 3.5m Windows x86

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

Uploaded CPython 2.7m Windows x86-64

dulwich-0.19.12-cp27-cp27m-win32.whl (434.3 kB view details)

Uploaded CPython 2.7m Windows x86

File details

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

File metadata

  • Download URL: dulwich-0.19.12.tar.gz
  • Upload date:
  • Size: 369.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.4

File hashes

Hashes for dulwich-0.19.12.tar.gz
Algorithm Hash digest
SHA256 e83e981b0b90d724db7d21dc3cc106ff87b151dee9eb3a6fc6a98a638d280515
MD5 4efcf6fd1903e9a5334b095333a77aa4
BLAKE2b-256 94c2feb3ad542c37bf433240d4390f17bc7a8ac347b42f286b4496e43431ba08

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for dulwich-0.19.12-py3-none-any.whl
Algorithm Hash digest
SHA256 c723cbe965defc5aae14bb8f29b1e6cd73b504fdc8175f482c6e131cb3cf6ea3
MD5 96792b40ecb01813fd00acf3cae61715
BLAKE2b-256 a24e3b81be3d803bffc5966c98023d7749d73a871ac74daf118c750cce41809e

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for dulwich-0.19.12-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 4da88abe785600ec1aaaf74cbba67a254874a3ed542aba015aec6d167ef1adb1
MD5 70f83c8d730e055d3305f62b70ecc108
BLAKE2b-256 11f72a238c571347589ce8ff00946c73891faed66f9cc41f428e5dc386052b2f

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for dulwich-0.19.12-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 976e520c1a64e36cfbf85afab1fb11c034d91e847c0c57be88e23fa66c22893b
MD5 444ac51475a682540da5e50c77b3f210
BLAKE2b-256 6dd652e98e653b5a299ad28b2eadb3ba94b8e4dc0ff0d3957127674551680fb5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.19.12-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.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/28.8.0 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.5.4

File hashes

Hashes for dulwich-0.19.12-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 b402f7203f4fd6515f13d7e7edc2775988c0e214b9ed469e18e89b25071b52d5
MD5 6e084315b7f22817e98e5328d356200f
BLAKE2b-256 dd4a7b30eb0d87e44744b2e013723382b74164e01753c5cdfa855ed83c5f969a

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for dulwich-0.19.12-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 d2ba7698e5fe1ee9b5c4bfa3e6499aa84af61100eb7fb44739f0b63a54e5979f
MD5 b6361fa6058ac0570537c5458ee5fc1c
BLAKE2b-256 cb4bd21af875ab7835d9580cdcdcdb9e7ecd03651064a107acdc847716453cbc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.19.12-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.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/2.7.16

File hashes

Hashes for dulwich-0.19.12-cp27-cp27m-win_amd64.whl
Algorithm Hash digest
SHA256 4bfab2164625513ce54960fcdc1681317c16996ce6cde906deb995dd4334239b
MD5 0ee241a5c9b368047b3c85b02022ed87
BLAKE2b-256 7a1f3679f42ad888da19185c4dfd0e0a9f519238e8d973de5957eeb1da12d8cd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.19.12-cp27-cp27m-win32.whl
  • Upload date:
  • Size: 434.3 kB
  • Tags: CPython 2.7m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/2.7.16

File hashes

Hashes for dulwich-0.19.12-cp27-cp27m-win32.whl
Algorithm Hash digest
SHA256 c55b19198c68b871f4b19892848b0a2ecc5a7d3213f8fc04e1b07bcda342b343
MD5 a839360e63090245d717ffc3432ffdf4
BLAKE2b-256 39a832782b9f064b4064302b6e733508bf9888e5bbaf70f28eeb7ff1e5cb8f8a

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