Metadata-Version: 2.1
Name: simple-rsync
Version: 1.0.0
Summary: Simple Python interface for librsync
Home-page: https://github.com/YAtOff/simple-rsync
Author: Yavor Atov
Author-email: yavor.atov@gmail.com
License: Apache
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python
Classifier: Programming Language :: Rust
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE


# Simple Python interface for librsync

## Install

`pip install simple-rsync`

## Build

1. Make sure Rust toolchain is installed. If not goto https://rustup.rs/ to install it.
2. Create an virtual environment and run: `python setup.py develop` for develop build 
or `python setup.py bdist_wheel` for release build

## Verify

`python setup.py test`

## Use

```python
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.
