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

Uploaded Source

Built Distributions

dulwich-0.19.16-py3-none-any.whl (428.0 kB view details)

Uploaded Python 3

dulwich-0.19.16-py2-none-any.whl (428.0 kB view details)

Uploaded Python 2

dulwich-0.19.16-cp36-cp36m-win_amd64.whl (448.8 kB view details)

Uploaded CPython 3.6m Windows x86-64

dulwich-0.19.16-cp35-cp35m-win_amd64.whl (448.8 kB view details)

Uploaded CPython 3.5m Windows x86-64

dulwich-0.19.16-cp27-cp27m-win_amd64.whl (442.2 kB view details)

Uploaded CPython 2.7m Windows x86-64

dulwich-0.19.16-cp27-cp27m-win32.whl (442.4 kB view details)

Uploaded CPython 2.7m Windows x86

File details

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

File metadata

  • Download URL: dulwich-0.19.16.tar.gz
  • Upload date:
  • Size: 375.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.23.0 setuptools/44.0.0 requests-toolbelt/0.8.0 tqdm/4.43.0 CPython/3.8.2

File hashes

Hashes for dulwich-0.19.16.tar.gz
Algorithm Hash digest
SHA256 f74561c448bfb6f04c07de731c1181ae4280017f759b0bb04fa5770aa84ca850
MD5 0715a7cc669dd19416b4ddc797e84c1f
BLAKE2b-256 6a3821c6077503961f338f995cdc9a7403ba0d25b5b6e5542bde88fc63d8cf37

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.19.16-py3-none-any.whl
  • Upload date:
  • Size: 428.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.7

File hashes

Hashes for dulwich-0.19.16-py3-none-any.whl
Algorithm Hash digest
SHA256 dddae02d372fc3b5cfb0046d0f62246ef281fa0c088df7601ab5916607add94b
MD5 1dda3e27fb1808da65cc094a4afad9f6
BLAKE2b-256 0b4fa0d30d99c47e29f84862b6d79cf3bbb211a402d69327eda567e1e411a751

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.19.16-py2-none-any.whl
  • Upload date:
  • Size: 428.0 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/44.1.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/2.7.15

File hashes

Hashes for dulwich-0.19.16-py2-none-any.whl
Algorithm Hash digest
SHA256 10699277c6268d0c16febe141a5b1c1a6e9744f3144c2d2de1706f4b1adafe63
MD5 650d1ccee4ea76891f1762625942600b
BLAKE2b-256 903a8328f36e0d2b730ca2a56c7bb3f647858c633dd7e66187140ae317237920

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.19.16-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 448.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.23.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.8

File hashes

Hashes for dulwich-0.19.16-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 f00d132082b8fcc2eb0d722abc773d4aeb5558c1475d7edd1f0f571146c29db9
MD5 9a03ec63597887e92071d62b9a962985
BLAKE2b-256 2b248918bff5bd89b1519a14eec4d23e9a2543145b262d4b1e43c347383d51e8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.19.16-cp35-cp35m-win_amd64.whl
  • Upload date:
  • Size: 448.8 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.23.0 setuptools/28.8.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.5.4

File hashes

Hashes for dulwich-0.19.16-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 60bb2c2c92f5025c1b53a556304008f0f624c98ae36f22d870e056b2d4236c11
MD5 1778b5b8c6c8cace4a8feaae34127f07
BLAKE2b-256 6d56c8a3e44d2b50152c35fafb43cd783788a8bf330d31006148d65021a0fdf3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.19.16-cp27-cp27m-win_amd64.whl
  • Upload date:
  • Size: 442.2 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.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/2.7.17

File hashes

Hashes for dulwich-0.19.16-cp27-cp27m-win_amd64.whl
Algorithm Hash digest
SHA256 4e3aba5e4844e7c700721c1fc696987ea820ee3528a03604dc4e74eff4196826
MD5 eaabdc10ea62ca91a9ccc722d47e076c
BLAKE2b-256 a164b2e165ed6ad0b847a90874b174b64f34915ccf3a0fee8ce276b213b7bd36

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.19.16-cp27-cp27m-win32.whl
  • Upload date:
  • Size: 442.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.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/2.7.17

File hashes

Hashes for dulwich-0.19.16-cp27-cp27m-win32.whl
Algorithm Hash digest
SHA256 267160904e9a1cb6c248c5efc53597a35d038ecc6f60bdc4546b3053bed11982
MD5 89db0b0129b30b8b9384f74395a903ab
BLAKE2b-256 d085122ce13213c8b91cff174508f9889f2c41cccc0e0a170b7fffcc1eac6c7f

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