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 OFTC, 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.6 and later 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.20.27.tar.gz (416.6 kB view details)

Uploaded Source

Built Distributions

dulwich-0.20.27-cp310-cp310-win_amd64.whl (490.0 kB view details)

Uploaded CPython 3.10 Windows x86-64

dulwich-0.20.27-cp39-cp39-win_amd64.whl (490.0 kB view details)

Uploaded CPython 3.9 Windows x86-64

dulwich-0.20.27-cp38-cp38-win_amd64.whl (490.0 kB view details)

Uploaded CPython 3.8 Windows x86-64

dulwich-0.20.27-cp37-cp37m-win_amd64.whl (489.8 kB view details)

Uploaded CPython 3.7m Windows x86-64

dulwich-0.20.27-cp36-cp36m-win_amd64.whl (489.8 kB view details)

Uploaded CPython 3.6m Windows x86-64

File details

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

File metadata

  • Download URL: dulwich-0.20.27.tar.gz
  • Upload date:
  • Size: 416.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.6.4 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.9

File hashes

Hashes for dulwich-0.20.27.tar.gz
Algorithm Hash digest
SHA256 f5d3fa7659914e7a2b87835a85666c7701d3751f881551653d4cd2560b2a124e
MD5 fd8c7972267ef31bde0a097971b8952d
BLAKE2b-256 a511a7d955ceb465cb6a574d094e4cd5167da7fed5b5d626e80db2da0d6404f2

See more details on using hashes here.

File details

Details for the file dulwich-0.20.27-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: dulwich-0.20.27-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 490.0 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

File hashes

Hashes for dulwich-0.20.27-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 be0893dc32f9f9c18e32d8cce940b6d2bbbe85dfd67fcb77991a1431f8453ec8
MD5 5ada4e27c47205ff2274eb69713d13cf
BLAKE2b-256 e62e80f55b093c5ad9e31e7f8ba4380df2a8b6946ae1e9c97dce9a35d6583ae6

See more details on using hashes here.

File details

Details for the file dulwich-0.20.27-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: dulwich-0.20.27-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 490.0 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for dulwich-0.20.27-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 3c2e591a13b0d4ec037b8744d1cc3bab563b4809d9158ca4566735d136d939f4
MD5 6f1baa740b33da3657b868c7792b8074
BLAKE2b-256 dbe463c6be6c488a8839bb507785abfe84b7b331bee64b8e9b0a7a94bd554c9c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.27-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 490.0 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

File hashes

Hashes for dulwich-0.20.27-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 ff81932ea471951cd87593de8d403c062bcc1b3356e0020316b7601d030335bc
MD5 bcc56d88f49b846467e7d212e6736dce
BLAKE2b-256 46fde16538010afd7bbf1f605c9215ea800e55b41b6a56dbfa401fdbf3bb9504

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.27-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 489.8 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.9.0 pkginfo/1.8.2 requests/2.27.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.9

File hashes

Hashes for dulwich-0.20.27-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 a0e2ce90433f6565a88616b43d1158aa269881a1710e7a66fed5c77f64596d61
MD5 4fc5479dc26399db3e67d65a319254cf
BLAKE2b-256 0fa803f528395630b38f4b21a4c20042e62fbf14f64b5d967e94dbe376d602db

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.27-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 489.8 kB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.3 pkginfo/1.8.2 requests/2.27.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.6.8

File hashes

Hashes for dulwich-0.20.27-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 2acb0af56721a87b63d2b98c2092acbc2c2428557df28b095abb576b34974de1
MD5 38ee2ba384bf1bba7820afc03bd327f2
BLAKE2b-256 8f8abbe96226bca74df17a05e97c34233476a9148fcba945b660e8a84217b128

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