Simple Python interface for librsync
Project description
Simple Python interface for librsync
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 install
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()
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
simple-rsync-0.3.0.tar.gz
(7.1 kB
view hashes)
Built Distributions
Close
Hashes for simple_rsync-0.3.0-py3.9-macosx-10.9-x86_64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | e7e1d427b492b99cd126aa2a4fbcfbface0c430e3bfdf0f6694828e678e9e93e |
|
MD5 | 6d8515d3f35b2c3282e8aaf70ad2790d |
|
BLAKE2b-256 | ae8a52f1bd53c98a128ea6e9b7bcac923efd66da491407bad3a18db740bce1ad |
Close
Hashes for simple_rsync-0.3.0-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1cade366b23833c809236948e0233898a892a3ae2a1d064b305a130fb65bbdbd |
|
MD5 | b91005047db45120e2dca8322d1c78ae |
|
BLAKE2b-256 | 8b923a2fe7feb237d38a5f307a944173f657a24baf85f369730ab94bce7412bb |
Close
Hashes for simple_rsync-0.3.0-cp310-cp310-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a27db46561ccaeddf110089191eac58986cb07419ec8ded0a3caed31723568e |
|
MD5 | 2fa6f254fb3c50754cfa9c55ff6365df |
|
BLAKE2b-256 | 21beefe9c3bfa9cd068831b594ee612cc3ec1104fb23fd40fc4cf56d3e7ff167 |
Close
Hashes for simple_rsync-0.3.0-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 726509ff23fb69e69b11f0ee84033b5147a9f3a45b318b54d1fd2c4ff00df0bc |
|
MD5 | f6314926c72c00b1f903f43d7834005b |
|
BLAKE2b-256 | 0fd11233eb12dd4124b5ad949daa00885d449abf000283e3a6a33e33fd30927c |
Close
Hashes for simple_rsync-0.3.0-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 110d6f9b53ab37c67061718e831723b1b25bcb90e00fbc499c92f1160ae05186 |
|
MD5 | e015a137615a79cf266d061c075477f7 |
|
BLAKE2b-256 | 3f25099c6fa37eaa432018f74b5c410f35e70e24541ce582a54599ba6eea35e8 |
Close
Hashes for simple_rsync-0.3.0-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc6da50862e86a7649bc109442b1facd2225b3388c957ff3eea3bc10299a44dc |
|
MD5 | 0023824a7ebe04ff85d7327fd6f1014e |
|
BLAKE2b-256 | 6573cdc4b50ae0625b79996edeb3f1eb23d59d2220a5e2bf37ab15669994cc69 |
Close
Hashes for simple_rsync-0.3.0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 896b193d139a46f62a451c627d91a662fc128ff01d65524d936cc569de2c19b0 |
|
MD5 | 2582d869bdb9b8902a4e3f76cd665efb |
|
BLAKE2b-256 | 9b2b3323876fd8507406d297c2da5201fb9c132f16d9bcecd72e2bf65f70c918 |
Close
Hashes for simple_rsync-0.3.0-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0e4ae78107300cc314726cda6a480323bea0788228216d91b03d32d7ea47e4b |
|
MD5 | 3de21b83830e4bc2fe5f14e4524ff831 |
|
BLAKE2b-256 | 3044b6079c4df35a85e42d86a01dbc073c260d72f9a9859963eb6ad3794d9f20 |
Close
Hashes for simple_rsync-0.3.0-cp37-cp37m-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54be34d4615e38eb58c2c3ebb45b8526960bc83c9e1c1dd55c7e40c2aaf35d13 |
|
MD5 | 024193c600101aed4eb94a089119f241 |
|
BLAKE2b-256 | cc2c6444a5b1c28e0e61b6487c817b39d1eb599f1406ece3c10ddec8ce260421 |
Close
Hashes for simple_rsync-0.3.0-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54a63cfecd135efa2eaa2e50f567e37ee82b3a96cbacfd3464c9ac7e6130107f |
|
MD5 | 4944c44f6d8823388bbef4c1136e25e5 |
|
BLAKE2b-256 | 6679bad1d711738045114699f9e6375895548f107dac390a3a5cac5f6bdc3110 |