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 3.5, 3.6, 3.7, 3.8 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.0.tar.gz (372.7 kB view details)

Uploaded Source

Built Distributions

dulwich-0.20.0-py3-none-any.whl (427.9 kB view details)

Uploaded Python 3

dulwich-0.20.0-cp37-cp37m-win_amd64.whl (449.2 kB view details)

Uploaded CPython 3.7m Windows x86-64

dulwich-0.20.0-cp36-cp36m-win_amd64.whl (449.2 kB view details)

Uploaded CPython 3.6m Windows x86-64

dulwich-0.20.0-cp36-cp36m-win32.whl (446.6 kB view details)

Uploaded CPython 3.6m Windows x86

File details

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

File metadata

  • Download URL: dulwich-0.20.0.tar.gz
  • Upload date:
  • Size: 372.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.7

File hashes

Hashes for dulwich-0.20.0.tar.gz
Algorithm Hash digest
SHA256 768717145fd43d1132b19a3f698d286b5b29fee016a699e45ab7e7e664d09a25
MD5 ffc3642cd97e75327b2ce69fbdcde204
BLAKE2b-256 e064fb5a693b4444c02cc8391519456c71faddd3e5125a02a17ef1f9c8ca187b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.0-py3-none-any.whl
  • Upload date:
  • Size: 427.9 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/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.7

File hashes

Hashes for dulwich-0.20.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5ce5dfab600a497464d4add339d53e69e45aa423187dbccc83de61a9554ec528
MD5 0297172f9bd8042044a781233a01f01e
BLAKE2b-256 6b426712c3d6a1fbfbe7870a70a8400ccc5a56cf321abdb8721f201e0f6a29e6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.0-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 449.2 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.5

File hashes

Hashes for dulwich-0.20.0-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 fc329aacd76ada0435dd63032d8eed81fcf9438f549dcf74163ef1b1b75ed913
MD5 963fdae927418ad9d580d622ac5285e8
BLAKE2b-256 3a1c4e6c6226547c1ccf3fac0942e81483cfe0d8ba740ad80a2fcbbd648f5bab

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for dulwich-0.20.0-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 d57ddc9904411c2e2bc005e73efbada6b43a8e872ae9af161041b1ebaf11b113
MD5 3bd7835362a36f12d5c9f6f3fb961918
BLAKE2b-256 af34667401fb4862bc83846c5eee628b3bf41f1c444b904cbe30c703e408d9b0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.0-cp36-cp36m-win32.whl
  • Upload date:
  • Size: 446.6 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.23.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.8

File hashes

Hashes for dulwich-0.20.0-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 a329fd7a6c167c58a77ff11b7a981e9a17765fd82cf2b7728423cb93539eebb2
MD5 93b6b4600fb4d91557d6e97c58c337a7
BLAKE2b-256 051cd43de85ac0fd0df87cb8a8d95289491fb84bafd107722f5b731501b4866c

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