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 the particular Monty Python sketch.

Installation

By default, Dulwich’ setup.py will attempt to build and install the optional Rust 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 Rust bindings, specify the –pure argument to setup.py:

$ python setup.py --pure install

or if you are installing from pip:

$ pip install --no-binary dulwich dulwich --config-settings "--build-option=--pure"

Note that you can also specify –build-option in a requirements.txt file, e.g. like this:

dulwich --config-settings "--build-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 a dulwich-discuss mailing list.

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.22.5.tar.gz (450.5 kB view hashes)

Uploaded Source

Built Distributions

dulwich-0.22.5-py3-none-any.whl (263.0 kB view hashes)

Uploaded Python 3

dulwich-0.22.5-pp310-pypy310_pp73-win_amd64.whl (597.2 kB view hashes)

Uploaded PyPy Windows x86-64

dulwich-0.22.5-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (973.6 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

dulwich-0.22.5-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (966.0 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ ARM64

dulwich-0.22.5-pp310-pypy310_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl (1.0 MB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ i686 manylinux: glibc 2.5+ i686

dulwich-0.22.5-pp310-pypy310_pp73-macosx_10_15_x86_64.whl (898.7 kB view hashes)

Uploaded PyPy macOS 10.15+ x86-64

dulwich-0.22.5-pp39-pypy39_pp73-win_amd64.whl (597.6 kB view hashes)

Uploaded PyPy Windows x86-64

dulwich-0.22.5-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (974.5 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

dulwich-0.22.5-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (965.9 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ ARM64

dulwich-0.22.5-pp39-pypy39_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl (1.0 MB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ i686 manylinux: glibc 2.5+ i686

dulwich-0.22.5-pp39-pypy39_pp73-macosx_10_15_x86_64.whl (899.3 kB view hashes)

Uploaded PyPy macOS 10.15+ x86-64

dulwich-0.22.5-cp313-cp313-win_amd64.whl (592.8 kB view hashes)

Uploaded CPython 3.13 Windows x86-64

dulwich-0.22.5-cp313-cp313-win32.whl (569.4 kB view hashes)

Uploaded CPython 3.13 Windows x86

dulwich-0.22.5-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (966.5 kB view hashes)

Uploaded CPython 3.13 manylinux: glibc 2.17+ x86-64

dulwich-0.22.5-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (959.0 kB view hashes)

Uploaded CPython 3.13 manylinux: glibc 2.17+ ARM64

dulwich-0.22.5-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl (1.0 MB view hashes)

Uploaded CPython 3.13 manylinux: glibc 2.17+ i686 manylinux: glibc 2.5+ i686

dulwich-0.22.5-cp313-cp313-macosx_11_0_arm64.whl (874.8 kB view hashes)

Uploaded CPython 3.13 macOS 11.0+ ARM64

dulwich-0.22.5-cp312-cp312-win_amd64.whl (593.0 kB view hashes)

Uploaded CPython 3.12 Windows x86-64

dulwich-0.22.5-cp312-cp312-win32.whl (569.7 kB view hashes)

Uploaded CPython 3.12 Windows x86

dulwich-0.22.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (967.3 kB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

dulwich-0.22.5-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (960.1 kB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ ARM64

dulwich-0.22.5-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl (1.0 MB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ i686 manylinux: glibc 2.5+ i686

dulwich-0.22.5-cp312-cp312-macosx_11_0_arm64.whl (875.8 kB view hashes)

Uploaded CPython 3.12 macOS 11.0+ ARM64

dulwich-0.22.5-cp311-cp311-win_amd64.whl (594.8 kB view hashes)

Uploaded CPython 3.11 Windows x86-64

dulwich-0.22.5-cp311-cp311-win32.whl (570.2 kB view hashes)

Uploaded CPython 3.11 Windows x86

dulwich-0.22.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (968.9 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

dulwich-0.22.5-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (961.8 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ ARM64

dulwich-0.22.5-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl (1.0 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ i686 manylinux: glibc 2.5+ i686

dulwich-0.22.5-cp311-cp311-macosx_11_0_arm64.whl (877.7 kB view hashes)

Uploaded CPython 3.11 macOS 11.0+ ARM64

dulwich-0.22.5-cp310-cp310-win_amd64.whl (594.9 kB view hashes)

Uploaded CPython 3.10 Windows x86-64

dulwich-0.22.5-cp310-cp310-win32.whl (570.2 kB view hashes)

Uploaded CPython 3.10 Windows x86

dulwich-0.22.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (969.6 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

dulwich-0.22.5-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (962.3 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ ARM64

dulwich-0.22.5-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl (1.0 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ i686 manylinux: glibc 2.5+ i686

dulwich-0.22.5-cp310-cp310-macosx_11_0_arm64.whl (878.3 kB view hashes)

Uploaded CPython 3.10 macOS 11.0+ ARM64

dulwich-0.22.5-cp39-cp39-win_amd64.whl (595.3 kB view hashes)

Uploaded CPython 3.9 Windows x86-64

dulwich-0.22.5-cp39-cp39-win32.whl (571.0 kB view hashes)

Uploaded CPython 3.9 Windows x86

dulwich-0.22.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (970.4 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

dulwich-0.22.5-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (962.8 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ ARM64

dulwich-0.22.5-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl (1.0 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ i686 manylinux: glibc 2.5+ i686

dulwich-0.22.5-cp39-cp39-macosx_11_0_arm64.whl (878.8 kB view hashes)

Uploaded CPython 3.9 macOS 11.0+ ARM64

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