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 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 and later 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.17.tar.gz (391.9 kB view details)

Uploaded Source

Built Distributions

dulwich-0.20.17-cp39-cp39-win_amd64.whl (464.9 kB view details)

Uploaded CPython 3.9 Windows x86-64

dulwich-0.20.17-cp39-cp39-manylinux2010_x86_64.whl (507.1 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.12+ x86-64

dulwich-0.20.17-cp39-cp39-manylinux1_x86_64.whl (507.1 kB view details)

Uploaded CPython 3.9

dulwich-0.20.17-cp39-cp39-macosx_10_14_x86_64.whl (453.0 kB view details)

Uploaded CPython 3.9 macOS 10.14+ x86-64

dulwich-0.20.17-cp38-cp38-win_amd64.whl (464.9 kB view details)

Uploaded CPython 3.8 Windows x86-64

dulwich-0.20.17-cp38-cp38-manylinux2010_x86_64.whl (508.9 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

dulwich-0.20.17-cp38-cp38-manylinux1_x86_64.whl (508.9 kB view details)

Uploaded CPython 3.8

dulwich-0.20.17-cp38-cp38-macosx_10_14_x86_64.whl (453.0 kB view details)

Uploaded CPython 3.8 macOS 10.14+ x86-64

dulwich-0.20.17-cp37-cp37m-win_amd64.whl (464.7 kB view details)

Uploaded CPython 3.7m Windows x86-64

dulwich-0.20.17-cp37-cp37m-manylinux2010_x86_64.whl (507.9 kB view details)

Uploaded CPython 3.7m manylinux: glibc 2.12+ x86-64

dulwich-0.20.17-cp37-cp37m-manylinux1_x86_64.whl (507.9 kB view details)

Uploaded CPython 3.7m

dulwich-0.20.17-cp37-cp37m-macosx_10_14_x86_64.whl (452.9 kB view details)

Uploaded CPython 3.7m macOS 10.14+ x86-64

dulwich-0.20.17-cp36-cp36m-win_amd64.whl (464.7 kB view details)

Uploaded CPython 3.6m Windows x86-64

dulwich-0.20.17-cp36-cp36m-manylinux2010_x86_64.whl (505.1 kB view details)

Uploaded CPython 3.6m manylinux: glibc 2.12+ x86-64

dulwich-0.20.17-cp36-cp36m-manylinux1_x86_64.whl (505.1 kB view details)

Uploaded CPython 3.6m

dulwich-0.20.17-cp36-cp36m-macosx_10_14_x86_64.whl (452.9 kB view details)

Uploaded CPython 3.6m macOS 10.14+ x86-64

File details

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

File metadata

  • Download URL: dulwich-0.20.17.tar.gz
  • Upload date:
  • Size: 391.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.4.2 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.1+

File hashes

Hashes for dulwich-0.20.17.tar.gz
Algorithm Hash digest
SHA256 f4582e405a9db3cb4981de41e8b919200d0e3e1f32e1cbb6b8bec1815c1ccece
MD5 52b4eb66f16f0bd7918409170c52becf
BLAKE2b-256 7b30c3b0d42538e3bb7a53dc25c512ff7190ad6678c60c444f01a594470e1b9a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.17-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 464.9 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

File hashes

Hashes for dulwich-0.20.17-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 4d46d0fed03b0305a7effb0674a81d9ce775a1598e8c11fe664d0116759541c3
MD5 a46d79402dbf90fbeaf6ec56fddee2ef
BLAKE2b-256 6d40298adbbb9fa0f8f997d95a7e7faaa17bdad068225e6075445d58481d2cd7

See more details on using hashes here.

File details

Details for the file dulwich-0.20.17-cp39-cp39-manylinux2010_x86_64.whl.

File metadata

  • Download URL: dulwich-0.20.17-cp39-cp39-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 507.1 kB
  • Tags: CPython 3.9, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

File hashes

Hashes for dulwich-0.20.17-cp39-cp39-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 d514e844d2fb57f20d303add041d6a70d4aea83af3725420d916239a11f731c1
MD5 3fc38fe37c1e8f3897d7ba2232ffa1c4
BLAKE2b-256 59aeaf14ca806e7abffc6949420d9c3ac14918ba29414cb0f675325d01877b08

See more details on using hashes here.

File details

Details for the file dulwich-0.20.17-cp39-cp39-manylinux1_x86_64.whl.

File metadata

  • Download URL: dulwich-0.20.17-cp39-cp39-manylinux1_x86_64.whl
  • Upload date:
  • Size: 507.1 kB
  • Tags: CPython 3.9
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

File hashes

Hashes for dulwich-0.20.17-cp39-cp39-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 db37210da27f902679619572f3b8bff58e40abbb68bc5f45d0062b9a061b1ca4
MD5 43309236316a78a3bebdc92437445f7c
BLAKE2b-256 c4b712f2cffbc28803cf5a782c7d1ccb8e24c5f28d5a7582c168beb13d0502e0

See more details on using hashes here.

File details

Details for the file dulwich-0.20.17-cp39-cp39-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: dulwich-0.20.17-cp39-cp39-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 453.0 kB
  • Tags: CPython 3.9, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

File hashes

Hashes for dulwich-0.20.17-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 1f6aa36a2b57d8aeb422d7049609275c4b465a487ca45db438821ee33f8d0509
MD5 7bea7c61674903b8b7a3aaea968a8860
BLAKE2b-256 b4b0f8c50d33e09f3d7c299305a82ed1596a71b8fa961d186baaffb37d8f965f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.17-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 464.9 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.7

File hashes

Hashes for dulwich-0.20.17-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 f98f91baf6bef5d6941547fdaacf312ad93dd1902ed74c526847b549ff8741b2
MD5 744d5c9d2951a07e142c29355e1e432f
BLAKE2b-256 c8bde38a0be84ed170c7d81c8041783eeef5c5dabdd817cee549b89ff03bc43c

See more details on using hashes here.

File details

Details for the file dulwich-0.20.17-cp38-cp38-manylinux2010_x86_64.whl.

File metadata

  • Download URL: dulwich-0.20.17-cp38-cp38-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 508.9 kB
  • Tags: CPython 3.8, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

File hashes

Hashes for dulwich-0.20.17-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 d4941434eb6cca517022436ec728257019d7633b70b0c1d03bb8e29480bb7bf7
MD5 450b3a68394ee9e0b9d11afe00e2dffa
BLAKE2b-256 8dc1188664de40aa6a1f7b9c7b3a9ed95e920dff8917e5e2e27463c1c0fdaa85

See more details on using hashes here.

File details

Details for the file dulwich-0.20.17-cp38-cp38-manylinux1_x86_64.whl.

File metadata

  • Download URL: dulwich-0.20.17-cp38-cp38-manylinux1_x86_64.whl
  • Upload date:
  • Size: 508.9 kB
  • Tags: CPython 3.8
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

File hashes

Hashes for dulwich-0.20.17-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 26be139f76be53928d9b226e57093d4198919297f6e8e6425360cb47bac1074e
MD5 0bbc158ce1b6632cc7e1f267c888c276
BLAKE2b-256 70cd0f3bde72a6ac1a9942c65c9192515642ada7bff8459ab0507d075d193fc0

See more details on using hashes here.

File details

Details for the file dulwich-0.20.17-cp38-cp38-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: dulwich-0.20.17-cp38-cp38-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 453.0 kB
  • Tags: CPython 3.8, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.7

File hashes

Hashes for dulwich-0.20.17-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 d34c2f19de0b2879e07d730c09d8f45c7801406c69ef271c267829d4a4637a11
MD5 0498f0c5327e9ccfec130cfad1e8b19a
BLAKE2b-256 ef152cd1b51bc1dc266182bfc53b6c431ed5c71d75ab18f0c1a1a00a10190a10

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.17-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 464.7 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.9

File hashes

Hashes for dulwich-0.20.17-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 5ede79718b6719296afb722ba710f2507770ebe02b7b6c174912ce28aeac475c
MD5 5413fd19a9e3a819dabcd51d7551951b
BLAKE2b-256 14f4369403efb372fcc9994e3dab5bdab89770ef70b12ab1de5abf9fac14f4f8

See more details on using hashes here.

File details

Details for the file dulwich-0.20.17-cp37-cp37m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: dulwich-0.20.17-cp37-cp37m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 507.9 kB
  • Tags: CPython 3.7m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

File hashes

Hashes for dulwich-0.20.17-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 1e4c3ba2cebb3714894502064aa87847eb1018442cf6d5c96e1b07078f99bdd2
MD5 2b91e61c1885ee12991413c1b377f67a
BLAKE2b-256 df72038bffb69c3e9c1e0182b7064be682769075a2c2846d9d8477ed804811ce

See more details on using hashes here.

File details

Details for the file dulwich-0.20.17-cp37-cp37m-manylinux1_x86_64.whl.

File metadata

  • Download URL: dulwich-0.20.17-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 507.9 kB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

File hashes

Hashes for dulwich-0.20.17-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 a21642e86fad866705a1b1f1ee9874273838bb39a89c3b88ffebbb56072f8d5d
MD5 d4812776b3c43bfa4c216dbdf227e02a
BLAKE2b-256 cdc60ba802d574938eed3805bc1634d33e69b4924d67b20a419bd3ad30ba9791

See more details on using hashes here.

File details

Details for the file dulwich-0.20.17-cp37-cp37m-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: dulwich-0.20.17-cp37-cp37m-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 452.9 kB
  • Tags: CPython 3.7m, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.9

File hashes

Hashes for dulwich-0.20.17-cp37-cp37m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 df7cd37a524743844ef1ac26184ad716c57ee97630986ebcfa850a4ffebe59b9
MD5 9dd09d239abc2361ec2c218c70d7772b
BLAKE2b-256 d3523aa51acd15356e2111c3d872fc5922a6918fa6e4b917e1124045008d4eba

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.17-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 464.7 kB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.6.8

File hashes

Hashes for dulwich-0.20.17-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 3a57cfbab8133941b50221239b8d1711248f386d02144b67b50509d9d5327249
MD5 ba99a0f234c35a01df0aac09800d15ec
BLAKE2b-256 f0880ea198339bae7da57d34732c12d4ec392b359539d78175624d37b6997aab

See more details on using hashes here.

File details

Details for the file dulwich-0.20.17-cp36-cp36m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: dulwich-0.20.17-cp36-cp36m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 505.1 kB
  • Tags: CPython 3.6m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

File hashes

Hashes for dulwich-0.20.17-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 62af365f06b4b48dcd5f97f4e0c04f1506526b83a7613a9fab8b411b658aa314
MD5 da8ad21315b9a53d383893d58e8370c7
BLAKE2b-256 01041e648ba3102e2759905b2538458d4a45d2bff23f7c3c5804fe4dfa364ed2

See more details on using hashes here.

File details

Details for the file dulwich-0.20.17-cp36-cp36m-manylinux1_x86_64.whl.

File metadata

  • Download URL: dulwich-0.20.17-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 505.1 kB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

File hashes

Hashes for dulwich-0.20.17-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 b62ed3d118f3bcdd3514c0a0b914f85ef695396151e57846fa9deabcdab462c8
MD5 ab53a7e8dc1ff8510c3f8031711fb83d
BLAKE2b-256 24f90e63de8a080ff3357b709aa7e08e254ad64608543b4cafbc083d39ee1c4a

See more details on using hashes here.

File details

Details for the file dulwich-0.20.17-cp36-cp36m-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: dulwich-0.20.17-cp36-cp36m-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 452.9 kB
  • Tags: CPython 3.6m, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.6.12

File hashes

Hashes for dulwich-0.20.17-cp36-cp36m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 dddb93f7cc143f0271d6794db1c0a20a4a74f5f1c863ec2dbcd63dc442c21bce
MD5 1151c0e9d1c9bcb4828bea20c917c983
BLAKE2b-256 f935f0991dfe67babb9d96f26ec284269faa5c8365427409c8ca6a4fed2702d4

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