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

Uploaded Source

Built Distributions

dulwich-0.19.14-py3-none-any.whl (419.7 kB view details)

Uploaded Python 3

dulwich-0.19.14-py2-none-any.whl (419.7 kB view details)

Uploaded Python 2

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

Uploaded CPython 3.6m Windows x86-64

dulwich-0.19.14-cp36-cp36m-win32.whl (438.0 kB view details)

Uploaded CPython 3.6m Windows x86

dulwich-0.19.14-cp35-cp35m-win_amd64.whl (440.6 kB view details)

Uploaded CPython 3.5m Windows x86-64

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

Uploaded CPython 3.5m Windows x86

dulwich-0.19.14-cp27-cp27m-win_amd64.whl (434.0 kB view details)

Uploaded CPython 2.7m Windows x86-64

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

Uploaded CPython 2.7m Windows x86

File details

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

File metadata

  • Download URL: dulwich-0.19.14.tar.gz
  • Upload date:
  • Size: 385.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.4.2 requests/2.21.0 setuptools/41.4.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.7.5

File hashes

Hashes for dulwich-0.19.14.tar.gz
Algorithm Hash digest
SHA256 d1320232c859ab086fff79eee8fa6ddbcbcbe01ff0c64c9bed48eca470b00b46
MD5 ed939b01bf60f1d217a0ae7b2828a225
BLAKE2b-256 16be35e2a147f067894ca2e5b6c43e4e15c95083c6a4a04666cd969217b74175

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.19.14-py3-none-any.whl
  • Upload date:
  • Size: 419.7 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/42.0.1 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.6.7

File hashes

Hashes for dulwich-0.19.14-py3-none-any.whl
Algorithm Hash digest
SHA256 88ca53f8fd95a105d625616ddb7398e15f6801a27cf39b453697bd74f2dc3603
MD5 2b2e1bdbbcc5b77c071afa6581061c00
BLAKE2b-256 9343d0bcb8d2e330daa023999f95536b9e62d6d6742570dc254637b09853f2c4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.19.14-py2-none-any.whl
  • Upload date:
  • Size: 419.7 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/42.0.1 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/2.7.15

File hashes

Hashes for dulwich-0.19.14-py2-none-any.whl
Algorithm Hash digest
SHA256 134389371a98e39cc6a0b5d9f5abaf725ccd9478747871e42e0f5d7659c61ca1
MD5 374a1b797822f4ed802330f97b987123
BLAKE2b-256 ed3c8e822ec22cfeb815bcc7a94ef4656023bd4db120812d0c8f1e52851a15cb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.19.14-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/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.6.8

File hashes

Hashes for dulwich-0.19.14-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 b96571c8f27d79cabaeb037aa36759f3acdac1bd2c9f6411207de04dee4df244
MD5 cd8eac3c7ba2e8fe8d25cb8e2243f8b9
BLAKE2b-256 97e8270fa9b112649c56b5c65f9e0b12b9cceb111e062d4e3513383aaa695f3d

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for dulwich-0.19.14-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 a0c476f18b99112a0b3fc34350cdd5ec36a9ab91c77841e17e56b4a3c25dd5f8
MD5 94fce7f432072e7e0818b2cfe74f86ba
BLAKE2b-256 81cdaf6dbc62ebc4e4c503b8a53c755e3574e718aa03938b687003e24ec396be

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for dulwich-0.19.14-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 069333ee19d6045e0dfa6b5dcc7d44cbbbcdca049f77ac6513e913da17e825b3
MD5 2b69a6e331b5974d727a5751589592ae
BLAKE2b-256 0e9a0f89eb687e738176f7375fc4a65767de766edb98749c0a9083cbcc09ce06

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for dulwich-0.19.14-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 9e9f17083770093c63bc3ee67f7ed5dca031dcaf47382354863407312c0a7242
MD5 3643ad5e221418b8d7f9a36c1f0839dc
BLAKE2b-256 bb8605242c56159414154ea1e920183730c0acdc6f11c81f2e63039e554272bc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.19.14-cp27-cp27m-win_amd64.whl
  • Upload date:
  • Size: 434.0 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.39.0 CPython/2.7.17

File hashes

Hashes for dulwich-0.19.14-cp27-cp27m-win_amd64.whl
Algorithm Hash digest
SHA256 e14c25e775a57d2fe706f6575103fa52a6252a71c87295cec75ad8bdf7bc9025
MD5 53b0a93d9c5003a37f2868129d7fb188
BLAKE2b-256 5c66a5e66702ffd123dd7044a3fc105c10778d63fe1c361b18f7f9d61315f4b6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.19.14-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.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/2.7.17

File hashes

Hashes for dulwich-0.19.14-cp27-cp27m-win32.whl
Algorithm Hash digest
SHA256 05709897db32bee90b7c6bb15f16caf4f4d9aa6dccf07967acb1499682f9f160
MD5 23adc2f44f4626b70fb1deccf1aac075
BLAKE2b-256 0b515727de545dc9ce4c2d3a51056317434c050665c62c91e9471c6f93ccf183

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