Simple Python interface for librsync
Install
pip install simple-rsync
Build
- Make sure Rust toolchain is installed. If not goto https://rustup.rs/ to install it.
- Create an virtual environment and run:
python setup.py developfor develop build orpython setup.py bdist_wheelfor release build
Verify
python setup.py test
Use
from simple_rsync import signature, delta, patch
base_file = "base"
new_file = "new"
signature_file = "sig"
delta_file = "delta"
result_file = "result"
signature(base_file, signature_file, block_len=1024, strong_len=8)
delta(new_file, signature_file, delta_file)
patch(base_file, delta_file, result_file)
with open(new_file, "rb") as expected:
with open(result_file, "rb") as result:
assert expected.read() == result.read()
For OS specific instructions see the mac and windows folders.
Release files for simple-rsync 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| simple_rsync-1.0.1.tar.gz | 7.5 kB | Details |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| simple_rsync-1.0.1-cp312-cp312-win_amd64.whl | CPython 3.12 | CPython 3.12 | Windows x86-64 | Details |
| simple_rsync-1.0.1-cp312-cp312-macosx_10_13_universal2.whl | CPython 3.12 | CPython 3.12 | macOS 10.13+ universal2 (ARM64, x86-64) | Details |
Total release size: 646.0 kB
Release files / simple_rsync-1.0.1.tar.gz
| Download URL | simple_rsync-1.0.1.tar.gz |
|---|---|
| Size | 7.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
52cea34a95724202398d6e43865227f68bdf027b08b0a496074d999ba2f6b40c
|
|
BLAKE2b-256 checksum How to use checksums |
f639789fe3f2b71f7c39089493e9b2a3acb43b46e5d539418c8845d3035d7f01
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.12.3
|
Release files / simple_rsync-1.0.1-cp312-cp312-win_amd64.whl
| Download URL | simple_rsync-1.0.1-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 138.9 kB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
bb1eaa2b6b1a43e2d5b83fa3d108d6fcbb9d929053ecb098678e1bf46d13f5f3
|
|
BLAKE2b-256 checksum How to use checksums |
2412c7e2f499bc90875e1adf48dd44ea2876985d7e677761e6bbeb20a17154c7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.12.3
|
Release files / simple_rsync-1.0.1-cp312-cp312-macosx_10_13_universal2.whl
| Download URL | simple_rsync-1.0.1-cp312-cp312-macosx_10_13_universal2.whl |
|---|---|
| Size | 499.6 kB |
| Tags | CPython 3.12 macOS 10.13+ universal2 (ARM64, x86-64) |
|
SHA-256 checksum How to use checksums |
156280aed3aa749236310fca373ee0a505d3ce6d10f9cc9861f33ebbf706dd1a
|
|
BLAKE2b-256 checksum How to use checksums |
53410bb4d1f15c1bacff0d74c0542fda6291ea9740e727dcd67a6af1ea98e063
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.12.3
|