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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

dulwich-0.20.4-cp38-cp38-win_amd64.whl (457.3 kB view details)

Uploaded CPython 3.8 Windows x86-64

dulwich-0.20.4-cp38-cp38-manylinux2010_x86_64.whl (501.5 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

dulwich-0.20.4-cp38-cp38-manylinux1_x86_64.whl (501.5 kB view details)

Uploaded CPython 3.8

dulwich-0.20.4-cp38-cp38-macosx_10_14_x86_64.whl (445.4 kB view details)

Uploaded CPython 3.8 macOS 10.14+ x86-64

dulwich-0.20.4-cp37-cp37m-win_amd64.whl (457.2 kB view details)

Uploaded CPython 3.7m Windows x86-64

dulwich-0.20.4-cp37-cp37m-manylinux2010_x86_64.whl (500.5 kB view details)

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

dulwich-0.20.4-cp37-cp37m-manylinux1_x86_64.whl (500.5 kB view details)

Uploaded CPython 3.7m

dulwich-0.20.4-cp37-cp37m-macosx_10_14_x86_64.whl (445.4 kB view details)

Uploaded CPython 3.7m macOS 10.14+ x86-64

dulwich-0.20.4-cp36-cp36m-win_amd64.whl (457.2 kB view details)

Uploaded CPython 3.6m Windows x86-64

dulwich-0.20.4-cp36-cp36m-manylinux2010_x86_64.whl (497.7 kB view details)

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

dulwich-0.20.4-cp36-cp36m-manylinux1_x86_64.whl (497.7 kB view details)

Uploaded CPython 3.6m

dulwich-0.20.4-cp36-cp36m-macosx_10_14_x86_64.whl (445.3 kB view details)

Uploaded CPython 3.6m macOS 10.14+ x86-64

dulwich-0.20.4-cp35-cp35m-macosx_10_14_x86_64.whl (445.3 kB view details)

Uploaded CPython 3.5m macOS 10.14+ x86-64

File details

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

File metadata

  • Download URL: dulwich-0.20.4-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 457.3 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

File hashes

Hashes for dulwich-0.20.4-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 fef08d875a81c5fecdc7b1042281e821bfcd2541ee64fb3141a545cfb04a4040
MD5 62e963cbddb3a7882d27148d71a588a8
BLAKE2b-256 abb3da08f2136fa8fc34a7eabe1bef58975a81fd98558f913ce7cba8df448a1a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.4-cp38-cp38-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 501.5 kB
  • Tags: CPython 3.8, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

File hashes

Hashes for dulwich-0.20.4-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 e995682334ca409c1f99ca48b77266eda362b155e6e0003a4117acb16bb52e9a
MD5 5312c75d98d15e76900e7f76a9b52938
BLAKE2b-256 6c5f41d81e7bb0eadf9f49bb66a39a5107f37e2319fe90d15340a9dd19d200d8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.4-cp38-cp38-manylinux1_x86_64.whl
  • Upload date:
  • Size: 501.5 kB
  • Tags: CPython 3.8
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

File hashes

Hashes for dulwich-0.20.4-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 36aa50e875886512cec6f784d6fd91acab08dfd62658dfc4fa9e790275d87b06
MD5 8c44c49b6942c2c090c89cf3989bee08
BLAKE2b-256 c73cd08e794cdcc65e0374cf724f2e7f3cb2f345ed920f4d42f9c192ed48f10a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.4-cp38-cp38-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 445.4 kB
  • Tags: CPython 3.8, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

File hashes

Hashes for dulwich-0.20.4-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 84d8a873f46d07012e6ee9ed4d4391cd0b547f12e955ef503324cb005fb473b3
MD5 0cdc70ed7e427ec2fb415588fff15e34
BLAKE2b-256 6acee5d288cff14e3dfd789e1faa22d84995af9d30eee24dcbcc2d3be5267afc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.4-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 457.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.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.7

File hashes

Hashes for dulwich-0.20.4-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 6aa35a0248ab7880f9c624566f00260697f3fa72a1342ad33dc21be8f6410119
MD5 cd81d2f3a7bdf4c57abe60d421653681
BLAKE2b-256 f10ab347f08caef2577c462c3408d1cc7d60c8587effcf7a8287616ccb2e595f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.4-cp37-cp37m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 500.5 kB
  • Tags: CPython 3.7m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

File hashes

Hashes for dulwich-0.20.4-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 70d2c12b4dbfbc02147df13dcde4d013b9ae6bc24892528930048a46d7be5d56
MD5 bbf829c9af73fa654bded6723fa90cfe
BLAKE2b-256 f438ef4839c5a86cb33cab538415a396b0d4b01da995a7780d8dae93a945492c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.4-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 500.5 kB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

File hashes

Hashes for dulwich-0.20.4-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 c00636671091ee820f3c787e9b5bf7298bce9e3821aea25076124313d5631e4c
MD5 9a50a689704549492c26c4936e4aca32
BLAKE2b-256 6c5e36d9da6d09d5ad38ae437e2ddfb6c14feb16d3c47d4f891618e9768a02fc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.4-cp37-cp37m-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 445.4 kB
  • Tags: CPython 3.7m, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.7

File hashes

Hashes for dulwich-0.20.4-cp37-cp37m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 7c3190241b89a725c498e157ea7dc23add0a81d821a2ee75ef9d7ef6f5670b47
MD5 0e216e109ff9866c5be3541698baf17b
BLAKE2b-256 3b65b9726ad37ced8b22e6a0c5c605d36edd1fc9d3f5c0289476766dab4934ec

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.4-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 457.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.24.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.6.8

File hashes

Hashes for dulwich-0.20.4-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 52f359cae056a77b978898b7842d6478a2f3dac0b6172f4ddf972815cf8e4b80
MD5 abfbd72a1fcbcf893d8e9f3d84b4d3ec
BLAKE2b-256 9b2cfc227a49aaed34099aca8c38ae0a93cca867dee7cd89c12dd0ec15dcd3c7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.4-cp36-cp36m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 497.7 kB
  • Tags: CPython 3.6m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

File hashes

Hashes for dulwich-0.20.4-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 5bd44eea19d24b988dde670a6b00b61c612c7417e4a4d165137c3700796b1239
MD5 8af8ef1ccc8de3fd54d62514adca21e8
BLAKE2b-256 445e3e84e9a75dd916cb446d582e423a46e071feb4ae986b8ba8e78834375017

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.4-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 497.7 kB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

File hashes

Hashes for dulwich-0.20.4-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 066ea2e607f370cb37179834419fd675717129342bb7a09f31a86402074c0ae3
MD5 e7b46abf4f5c388d262c14f9e45aba03
BLAKE2b-256 2290ca4d38d8b0511f55a2395a64b5f48de53dcdbaa4641802db86554b532a3d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dulwich-0.20.4-cp36-cp36m-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 445.3 kB
  • Tags: CPython 3.6m, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.6.10

File hashes

Hashes for dulwich-0.20.4-cp36-cp36m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 66a8f6e31c0c422351c31e9dc3d4fe792169c3befdb5df047e3143c9ca4d30ab
MD5 03d736cc2b0985373498eca2aebc198b
BLAKE2b-256 4e8936612ccdabbc6cf079a9978963f331a7d1ec4e8bc1deae4e8167659d7770

See more details on using hashes here.

File details

Details for the file dulwich-0.20.4-cp35-cp35m-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: dulwich-0.20.4-cp35-cp35m-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 445.3 kB
  • Tags: CPython 3.5m, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/28.8.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.5.9

File hashes

Hashes for dulwich-0.20.4-cp35-cp35m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 dab98cdb1a5abedba5bd10ac58738ab09ed5842be34573d840312b36d909e040
MD5 d2ea5187707236230752920c6b0dce98
BLAKE2b-256 0d6968b120f8d3009baf2abc0bf813fcaa5940a4fbba01cba8527127ba52c643

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