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

Uploaded Source

Built Distributions

dulwich-0.19.13-py3-none-any.whl (419.2 kB view details)

Uploaded Python 3

dulwich-0.19.13-py2-none-any.whl (419.2 kB view details)

Uploaded Python 2

dulwich-0.19.13-cp36-cp36m-win_amd64.whl (440.1 kB view details)

Uploaded CPython 3.6m Windows x86-64

dulwich-0.19.13-cp36-cp36m-win32.whl (437.4 kB view details)

Uploaded CPython 3.6m Windows x86

dulwich-0.19.13-cp35-cp35m-win_amd64.whl (440.0 kB view details)

Uploaded CPython 3.5m Windows x86-64

dulwich-0.19.13-cp35-cp35m-win32.whl (437.4 kB view details)

Uploaded CPython 3.5m Windows x86

dulwich-0.19.13-cp27-cp27m-win_amd64.whl (433.4 kB view details)

Uploaded CPython 2.7m Windows x86-64

dulwich-0.19.13-cp27-cp27m-win32.whl (433.7 kB view details)

Uploaded CPython 2.7m Windows x86

File details

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

File metadata

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

File hashes

Hashes for dulwich-0.19.13.tar.gz
Algorithm Hash digest
SHA256 aa628449c5f594a9a282f4d9e5993fef65481ef5e3b9b6c52ff31200f8f5dc95
MD5 319977aa2634a58d69ae9ec4244a45de
BLAKE2b-256 4426d0c3930418e57e79f30766fe1dd536a8863fe3e443efaf6574e66d33264a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.19.13-py3-none-any.whl
  • Upload date:
  • Size: 419.2 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.34.0 CPython/3.6.7

File hashes

Hashes for dulwich-0.19.13-py3-none-any.whl
Algorithm Hash digest
SHA256 82792a9d49b112fa2151fa0fb29b01667855a843ff99325b1c1578a4aec11b57
MD5 c27c9118ecb7dabab3df77dfac7831c3
BLAKE2b-256 c2958e2b82c0064ef9bd76413fbbef4b0330a501c150c2a227fd6395c762bdf3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.19.13-py2-none-any.whl
  • Upload date:
  • Size: 419.2 kB
  • Tags: Python 2
  • 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.34.0 CPython/2.7.15

File hashes

Hashes for dulwich-0.19.13-py2-none-any.whl
Algorithm Hash digest
SHA256 c8b48079a14850cbeb788b38e1061ae6db75061431c1c0f91382460be4c84bbe
MD5 f561ce814c9784f34e0b0bb4904171e2
BLAKE2b-256 bf39e20acb3a379776ef678a107f843ed77b585e31f95a9d02718316923f45c7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.19.13-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 440.1 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.34.0 CPython/3.6.8

File hashes

Hashes for dulwich-0.19.13-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 c35ed2cd5b263ce0d67758ffba590c0466ff13b048457ff060b7d2e6cb55a40e
MD5 fee92614af79b86b246832bffcfab20c
BLAKE2b-256 91cbc6cc9cbec12eff3606a40354ae2107f20b1f234dfc7384bfd776881ca4ef

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.19.13-cp36-cp36m-win32.whl
  • Upload date:
  • Size: 437.4 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.34.0 CPython/3.6.8

File hashes

Hashes for dulwich-0.19.13-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 667f49536ccba09d3b90bac80d44048e45566f84b98a5e139cc8c70757a6ae60
MD5 ef101a67703fd0c6665bd8cdbcbc4236
BLAKE2b-256 7c06b6a5b756517fe476cc005cf8d1ab9416e90dae8d44f28bf384339ca5d37e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.19.13-cp35-cp35m-win_amd64.whl
  • Upload date:
  • Size: 440.0 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.34.0 CPython/3.5.4

File hashes

Hashes for dulwich-0.19.13-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 dfcd9943c69f963dd61a027f480d16f548ea5905c2485be8f4b8f130df2c32de
MD5 221786fee69e5e69fbbe91edd1d914e6
BLAKE2b-256 77901cd4d63d16e158fdfea8d5c70a7198b15337f12d242cc99f8936f702c193

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.19.13-cp35-cp35m-win32.whl
  • Upload date:
  • Size: 437.4 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.34.0 CPython/3.5.4

File hashes

Hashes for dulwich-0.19.13-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 0e442f6f96e6d97270a7cca4e75306b6b0228627bdf57dde3759e0e345a6b523
MD5 f6f15a419a56300d29aaa9eada4c6f4f
BLAKE2b-256 70c546f7a8f519a083879b7625fdd2681584b4518d18c531d43b2057acc1acec

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.19.13-cp27-cp27m-win_amd64.whl
  • Upload date:
  • Size: 433.4 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.34.0 CPython/2.7.16

File hashes

Hashes for dulwich-0.19.13-cp27-cp27m-win_amd64.whl
Algorithm Hash digest
SHA256 e3693c3238c1a5fc1e4427281c4455d78549f4797f2a7107a5f4443b21efafb4
MD5 490e7886fcbd4a415804543d351299ed
BLAKE2b-256 6abff784a3b599ddd656c00f2a3c15b4dc41c08f9b146d77685a083a4af628f7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.19.13-cp27-cp27m-win32.whl
  • Upload date:
  • Size: 433.7 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.34.0 CPython/2.7.16

File hashes

Hashes for dulwich-0.19.13-cp27-cp27m-win32.whl
Algorithm Hash digest
SHA256 ab4668bc4e1996d12eb1910e123a09edcff8e166e7ec46db5aafb5c7e250b99f
MD5 65e01d59eac6f8d1f2797158d742bb25
BLAKE2b-256 77ee59d07baabc2a38aa1d41c6a1491d9ac642526b379bd0b8db72d7795bc99d

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