{"library":"rdiff","title":"rdiff","description":"A native Python implementation of the rdiff tool by librsync, providing signature, delta, and patch operations for file synchronization. Current version 0.2.3, requires Python >=3.6. Maintained irregularly; last release in 2022.","language":"python","status":"active","last_verified":"Fri May 01","install":{"commands":["pip install rdiff"],"cli":null},"imports":["from rdiff import signature","from rdiff import delta","from rdiff import patch"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"from rdiff import signature, delta, patch\n\n# Create signature from original file\nsig = signature(b'original data')\n\n# Compute delta between signature and new file\nd = delta(sig, b'new data with changes')\n\n# Apply delta to original data to get new data\nnew_data = b'original data'\npatched = patch(new_data, d)\nprint(patched)","lang":"python","description":"Basic usage of rdiff: signature on original data, delta on new data, and patch to reconstruct the new file.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}