用于 librsync 的简单 Python 接口
项目描述
用于 librsync 的简单 Python 接口
建造
- 确保安装了 Rust 工具链。如果没有转到https://rustup.rs/进行安装。
- 创建一个虚拟环境并运行:
python setup.py install
核实
python setup.py test
利用
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()
项目详情
下载文件
下载适用于您平台的文件。如果您不确定要选择哪个,请了解有关安装包的更多信息。
源分布
simple-rsync-0.3.0.tar.gz
(7.1 kB
查看哈希)
内置发行版
simple_rsync-0.3.0-cp39-cp39-win_amd64.whl
(496.0 kB
查看哈希)
simple_rsync-0.3.0-cp38-cp38-win_amd64.whl
(128.7 kB
查看哈希)
simple_rsync-0.3.0-cp37-cp37m-win_amd64.whl
(373.5 kB
查看哈希)
关
simple_rsync -0.3.0-cp39-cp39-win_amd64.whl 的哈希值
| 算法 | 哈希摘要 | |
|---|---|---|
| SHA256 | 726509ff23fb69e69b11f0ee84033b5147a9f3a45b318b54d1fd2c4ff00df0bc |
|
| MD5 | f6314926c72c00b1f903f43d7834005b |
|
| 布莱克2-256 | 0fd11233eb12dd4124b5ad949daa00885d449abf000283e3a6a33e33fd30927c |
关
simple_rsync -0.3.0-cp39-cp39-macosx_10_9_x86_64.whl 的哈希值
| 算法 | 哈希摘要 | |
|---|---|---|
| SHA256 | 110d6f9b53ab37c67061718e831723b1b25bcb90e00fbc499c92f1160ae05186 |
|
| MD5 | e015a137615a79cf266d061c075477f7 |
|
| 布莱克2-256 | 3f25099c6fa37eaa432018f74b5c410f35e70e24541ce582a54599ba6eea35e8 |
关
simple_rsync -0.3.0-cp38-cp38-win_amd64.whl 的哈希值
| 算法 | 哈希摘要 | |
|---|---|---|
| SHA256 | dc6da50862e86a7649bc109442b1facd2225b3388c957ff3eea3bc10299a44dc |
|
| MD5 | 0023824a7ebe04ff85d7327fd6f1014e |
|
| 布莱克2-256 | 6573cdc4b50ae0625b79996edeb3f1eb23d59d2220a5e2bf37ab15669994cc69 |
关
simple_rsync -0.3.0-cp38-cp38-macosx_10_9_x86_64.whl 的哈希值
| 算法 | 哈希摘要 | |
|---|---|---|
| SHA256 | 896b193d139a46f62a451c627d91a662fc128ff01d65524d936cc569de2c19b0 |
|
| MD5 | 2582d869bdb9b8902a4e3f76cd665efb |
|
| 布莱克2-256 | 9b2b3323876fd8507406d297c2da5201fb9c132f16d9bcecd72e2bf65f70c918 |
关
simple_rsync -0.3.0-cp37-cp37m-win_amd64.whl 的哈希值
| 算法 | 哈希摘要 | |
|---|---|---|
| SHA256 | d0e4ae78107300cc314726cda6a480323bea0788228216d91b03d32d7ea47e4b |
|
| MD5 | 3de21b83830e4bc2fe5f14e4524ff831 |
|
| 布莱克2-256 | 3044b6079c4df35a85e42d86a01dbc073c260d72f9a9859963eb6ad3794d9f20 |
关
simple_rsync -0.3.0-cp37-cp37m-macosx_10_15_x86_64.whl 的哈希值
| 算法 | 哈希摘要 | |
|---|---|---|
| SHA256 | 54be34d4615e38eb58c2c3ebb45b8526960bc83c9e1c1dd55c7e40c2aaf35d13 |
|
| MD5 | 024193c600101aed4eb94a089119f241 |
|
| 布莱克2-256 | cc2c6444a5b1c28e0e61b6487c817b39d1eb599f1406ece3c10ddec8ce260421 |
关
simple_rsync -0.3.0-cp37-cp37m-macosx_10_9_x86_64.whl 的哈希值
| 算法 | 哈希摘要 | |
|---|---|---|
| SHA256 | 54a63cfecd135efa2eaa2e50f567e37ee82b3a96cbacfd3464c9ac7e6130107f |
|
| MD5 | 4944c44f6d8823388bbef4c1136e25e5 |
|
| 布莱克2-256 | 6679bad1d711738045114699f9e6375895548f107dac390a3a5cac5f6bdc3110 |