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
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_tree-0.3.tar.gz
(6.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dulwich_tree-0.3.tar.gz.
File metadata
- Download URL: dulwich_tree-0.3.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.32.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
800a672e265cbfc751b10ee9daac0a9faf048a4ee8cb6a6af1217aa8750bd86b
|
|
| MD5 |
c06360580d33ad791e0ee3fb7d802e80
|
|
| BLAKE2b-256 |
19bd01786ad8e95cad47b443518b9860641c38e703e71d24d0cf28319bdfb339
|
File details
Details for the file dulwich_tree-0.3-py3-none-any.whl.
File metadata
- Download URL: dulwich_tree-0.3-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.32.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ad5622ca8db3d36556bf17c15102204f9d312568a4f98f820b687857c482212a
|
|
| MD5 |
b5870d71a45df257774aa56acb0f9a5c
|
|
| BLAKE2b-256 |
5b19da99261df9d02dd97cde78aa7e0df98b9d49188b686f8b49a165242b06f4
|