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())
Metadata
Release files for dulwich-tree 0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| dulwich_tree-0.3.tar.gz | 6.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dulwich_tree-0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.7 kB
Release files / dulwich_tree-0.3.tar.gz
| Download URL | dulwich_tree-0.3.tar.gz |
|---|---|
| Size | 6.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
800a672e265cbfc751b10ee9daac0a9faf048a4ee8cb6a6af1217aa8750bd86b
|
|
BLAKE2b-256 checksum How to use checksums |
19bd01786ad8e95cad47b443518b9860641c38e703e71d24d0cf28319bdfb339
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.32.5
|
Release files / dulwich_tree-0.3-py3-none-any.whl
| Download URL | dulwich_tree-0.3-py3-none-any.whl |
|---|---|
| Size | 3.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ad5622ca8db3d36556bf17c15102204f9d312568a4f98f820b687857c482212a
|
|
BLAKE2b-256 checksum How to use checksums |
5b19da99261df9d02dd97cde78aa7e0df98b9d49188b686f8b49a165242b06f4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.32.5
|