Skip to main content

Python Git Library

Project description

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 and later 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.7.tar.gz (389.4 kB view details)

Uploaded Source

Built Distributions

dulwich-0.20.7-cp38-cp38-win_amd64.whl (460.9 kB view details)

Uploaded CPython 3.8 Windows x86-64

dulwich-0.20.7-cp38-cp38-macosx_10_14_x86_64.whl (449.1 kB view details)

Uploaded CPython 3.8 macOS 10.14+ x86-64

dulwich-0.20.7-cp37-cp37m-win_amd64.whl (460.8 kB view details)

Uploaded CPython 3.7m Windows x86-64

dulwich-0.20.7-cp37-cp37m-macosx_10_14_x86_64.whl (449.0 kB view details)

Uploaded CPython 3.7m macOS 10.14+ x86-64

dulwich-0.20.7-cp36-cp36m-win_amd64.whl (460.8 kB view details)

Uploaded CPython 3.6m Windows x86-64

dulwich-0.20.7-cp36-cp36m-macosx_10_14_x86_64.whl (449.0 kB view details)

Uploaded CPython 3.6m macOS 10.14+ x86-64

File details

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

File metadata

  • Download URL: dulwich-0.20.7.tar.gz
  • Upload date:
  • Size: 389.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.4.2 requests/2.24.0 setuptools/44.1.1 requests-toolbelt/0.8.0 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for dulwich-0.20.7.tar.gz
Algorithm Hash digest
SHA256 461e56d61b97762d4b7a07c5e0e12a9a1c4448d9bf2e49f1d00f40ff94f2d2a0
MD5 7571f60884ea18efaa628ba111065c94
BLAKE2b-256 77b5d20c30b52b0c1b54495f5f3ace0cd24c0c0ec260f1c4d932fbd83d1506ed

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.7-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 460.9 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for dulwich-0.20.7-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 34e1b839d2200018f7f27c7930696fcf517c9e6f9c84716d26db0f45ba8d50b6
MD5 d5b0fd801105500ae79241dd0515b604
BLAKE2b-256 7026ce6c265f45d1bab4c07ebc70226391c39d6059d8e0205bc0ed1340e4be04

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.7-cp38-cp38-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 449.1 kB
  • Tags: CPython 3.8, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for dulwich-0.20.7-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 671d90480826cfe7e92c3bc60d5d79985f5ec1b6782f69c31946a3b2d6c7bd23
MD5 14cd02ca5f9da75a076885ada749fae5
BLAKE2b-256 ced68f08c9f877b203a3adc20a3964a97029f1616e9bee65585bbb1b962e9e38

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.7-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 460.8 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.9

File hashes

Hashes for dulwich-0.20.7-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 a12eebd5611c9f40a417fb70533503eb1cb3e0a16044fc63bbf3fb8f6714c06d
MD5 b4645a232fd8b35dd3f32b5e470460d2
BLAKE2b-256 20b76967eccaba11b3744b453503a423c6053e66ded4b8bd3688c27063e68847

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.7-cp37-cp37m-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 449.0 kB
  • Tags: CPython 3.7m, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.9

File hashes

Hashes for dulwich-0.20.7-cp37-cp37m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 d23909bcb7d17fcbc289627b159d8f123f7e7f1ff05fedcd39ce4e5fae8c3c04
MD5 476f61e4509aaa7c800984f10fad0dab
BLAKE2b-256 dac1ba309139072dcf96b9df7637795eadbcaf7e5d25cdb14429c1604c9d8ba2

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for dulwich-0.20.7-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 acc34dff0ea6be5794b39e87f05d940549ba946af90e3960d46708c4f0e0c902
MD5 4452f9895601715b244cf18d078d8163
BLAKE2b-256 d07aa068ba9e9863ef2b60089472814519babde4eb5474b7b1398b73789c7d4f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.7-cp36-cp36m-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 449.0 kB
  • Tags: CPython 3.6m, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.6.12

File hashes

Hashes for dulwich-0.20.7-cp36-cp36m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 d320372f6fd9930a1fae77962c908d532bb4e696efadf6c386b8cfb68a6505a5
MD5 4c2e93fb1fca13d69fc9faa01caaece6
BLAKE2b-256 0d04999a35ee161964ad3754b1c5ab05beefeb75c3458b866c26670de3a19f3f

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