Skip to main content

Library to help make and commit modifications to a tree with Dulwich.

Project description

This library provides objects to make and commit modifications to tree using dulwich. It try's to provide and interface similar to making changes to a os filesystem.

Example:

    writer = TreeWriter(repo)

    writer.set_data('a/b', 'file b'.encode())
    writer.do_commit(message='Add a/b.'.encode())

    writer.set_data('a/b', b'file b ver 2',)
    writer.do_commit(message='Modify a/b.'.encode())

    writer.remove('a/b')
    writer.do_commit(message='Remove a.'.encode())

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dulwich-tree-0.2.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

dulwich_tree-0.2-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file dulwich-tree-0.2.tar.gz.

File metadata

  • Download URL: dulwich-tree-0.2.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.27.1

File hashes

Hashes for dulwich-tree-0.2.tar.gz
Algorithm Hash digest
SHA256 4b6648d5f3ce1813b17c7b50e39928fb81c2bfc0ebaff1afd4941de8e8c1c54f
MD5 6a4d37b734dcf3a63162c165835d10f6
BLAKE2b-256 d3e0f165d69ddf0edbe75cf0b315dc0cde92d6b460add22ff70fd4853b22fa0a

See more details on using hashes here.

File details

Details for the file dulwich_tree-0.2-py3-none-any.whl.

File metadata

  • Download URL: dulwich_tree-0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.27.1

File hashes

Hashes for dulwich_tree-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 13b909d5a36294b81c9de24163c4e32724335f99c3b30238658221091112d1ff
MD5 0963734dc2951099bb1317068d8a78c2
BLAKE2b-256 da3d2200eb30a53203531d255db0ea69be8be23291815ed1ee7b26f3dc0e98a8

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