{"id":28458729,"url":"https://github.com/openmined/py_fast_rsync","last_synced_at":"2025-07-02T09:31:44.789Z","repository":{"id":264897420,"uuid":"868916198","full_name":"OpenMined/py_fast_rsync","owner":"OpenMined","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-02T13:24:04.000Z","size":18,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-06-25T06:47:35.098Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OpenMined.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"openmined","open_collective":"openmined"}},"created_at":"2024-10-07T12:08:00.000Z","updated_at":"2024-12-16T14:08:26.000Z","dependencies_parsed_at":"2024-11-26T18:03:31.970Z","dependency_job_id":"d5fee2ee-8741-4855-9e59-6271389fd45d","html_url":"https://github.com/OpenMined/py_fast_rsync","commit_stats":null,"previous_names":["openmined/py_fast_rsync"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/OpenMined/py_fast_rsync","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenMined%2Fpy_fast_rsync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenMined%2Fpy_fast_rsync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenMined%2Fpy_fast_rsync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenMined%2Fpy_fast_rsync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OpenMined","download_url":"https://codeload.github.com/OpenMined/py_fast_rsync/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenMined%2Fpy_fast_rsync/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263111469,"owners_count":23415463,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-07T00:39:38.516Z","updated_at":"2025-07-02T09:31:44.774Z","avatar_url":"https://github.com/OpenMined.png","language":"Python","funding_links":["https://github.com/sponsors/openmined","https://opencollective.com/openmined"],"categories":[],"sub_categories":[],"readme":"# py_fast_rsync\n\n```py_fast_rsync``` is a Python library implemented in Rust using the ```pyo3``` and ```fast_rsync``` crates. This library provides functions for calculating the difference between two data sets and applying those differences to create updated data sets, as well as a simple function to sum two numbers and return the result as a string.\n\n### Usage\n\nHere's how you can use the functions provided by ```py_fast_rsync```:\n\n\n```python\n    import py_fast_rsync\n    from py_fast_rsync import signature\n\n    # 1. take data_a and return a \"signature\" of that data\n    # which is much smaller than the original data.\n    data_a = b\"hello world\"\n    sig = signature.calculate(data_a)\n\n    # 2. take the signature for data_a and data_b\n    # and return a delta between data_a and data_b.\n    data_b = b\"hello world!\"\n    delta = py_fast_rsync.diff(sig, data_b)\n\n    # 3. apply the delta to data_a\n    # (usually) return data_b\n\n    probably_data_b = py_fast_rsync.apply(data_a, delta)\n    assert probably_data_b == data_b\n```\n\n\n## Building the Project\n\n### Requirements for Development\n\n- Rust\n- Python\n- ```maturin``` (for building, developing and publishing the package)\n\nFirst, ensure you have ```maturin``` installed. You can install it via pip:\n\n```sh\npip install maturin\n```\n\nTo build the project, run:\n\n```sh\nmaturin develop\n```\n\nThis will compile the Rust code and install the resulting Python package in your current Python environment.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenmined%2Fpy_fast_rsync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenmined%2Fpy_fast_rsync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenmined%2Fpy_fast_rsync/lists"}