{"id":13617357,"url":"https://github.com/isislovecruft/pyrsync","last_synced_at":"2025-04-09T16:10:36.977Z","repository":{"id":2312193,"uuid":"3271908","full_name":"isislovecruft/pyrsync","owner":"isislovecruft","description":"A pure Python module which implements the rsync algorithm.","archived":false,"fork":false,"pushed_at":"2023-06-06T15:22:43.000Z","size":110,"stargazers_count":146,"open_issues_count":8,"forks_count":31,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-04-02T14:04:52.821Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/isislovecruft.png","metadata":{"files":{"readme":"README","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}},"created_at":"2012-01-26T07:09:57.000Z","updated_at":"2025-01-23T03:11:12.000Z","dependencies_parsed_at":"2024-01-17T00:54:11.489Z","dependency_job_id":"c66bf1fa-f033-4689-bed5-c5c0a69dbc4b","html_url":"https://github.com/isislovecruft/pyrsync","commit_stats":{"total_commits":11,"total_committers":3,"mean_commits":"3.6666666666666665","dds":"0.18181818181818177","last_synced_commit":"0393ba956070aafd6cb20f3c4453f450088eb6c9"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isislovecruft%2Fpyrsync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isislovecruft%2Fpyrsync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isislovecruft%2Fpyrsync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isislovecruft%2Fpyrsync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/isislovecruft","download_url":"https://codeload.github.com/isislovecruft/pyrsync/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248065283,"owners_count":21041871,"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":"2024-08-01T20:01:40.463Z","updated_at":"2025-04-09T16:10:36.954Z","avatar_url":"https://github.com/isislovecruft.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"===============================\n#pyrsync\n===============================\npyrsync is a Python module which implements the [rsync algorithm] [1], \nwritten in pure Python. It *is not* a wrapper for rsync, but a set of \nfunctions which apply full rsync functionality through Python.\n\nThe original rsync specification calls for the use of an MD5 hash, which\nthe developers of this module considers to be outdated, and thus all \noccurences of MD5 have been replaced with SHA256. Personally, I would\nopt for using SHA512, but this would double the storage size for hash\ntable databases. SHA256 is sufficient to meet standard security \nrequirements for verification processes as of this release, although,\neventually, added functionality for the user/developer to choose between\nvarious hashes should be considered for further releases.\n\nThe majority of the code for this module is taken from [Eric Pruitt's\npost at ActiveState] [2]. It was orginally licensed under an [MIT license]\n[3], and this license has been kept wthout modifications.\n\n## Installation\n--------------------------------\nIf you have [setuptools] [4] installed, simply do:\n\n    $ sudo python setup.py install\n\nIf you do not have setuptools, the setup.py script will detect this and \ndefault to using the python builtin distutils. To install using distutils,\nthe installation process is the same as documented above for setuptools.\n\n## Use\n--------------------------------\nAn example use case for this module:\n\n    # On the system containing the file that needs to be patched\n    \u003e\u003e\u003e import pyrsync\n    \u003e\u003e\u003e unpatched = open(\"unpatched.file\", \"rb\")\n    \u003e\u003e\u003e hashes = pyrsync.blockchecksums(unpatched)\n\n    # On the remote system after having received hashes\n    \u003e\u003e\u003e import pyrsync\n    \u003e\u003e\u003e patchedfile = open(\"patched.file\", \"rb\")\n    \u003e\u003e\u003e delta = pyrsync.rsyncdelta(patchedfile, hashes)\n\n    # System with the unpatched file after receiving delta\n    \u003e\u003e\u003e unpatched.seek(0)\n    \u003e\u003e\u003e save_to = open(\"locally-patched.file\", \"wb\")\n    \u003e\u003e\u003e pyrsync.patchstream(unpatched, save_to, delta)\n\n[1]: http://samba.anu.edu.au/rsync/ \"Andrew Tridgell and Paul Mackerras. The rsync algorithm. Technical Report TR-CS-96-05, Canberra 0200 ACT, Australia, 1996.\"\n[2]: https://code.activestate.com/recipes/577518-rsync-algorithm/ \"Rsync Algorithm (Python Recipe)\"\n[3]: http://www.opensource.org/licenses/mit-license.php \"OSI MIT License\"\n[4]: http://pypi.python.org/pypi/setuptools/ \"setuptools\"\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fisislovecruft%2Fpyrsync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fisislovecruft%2Fpyrsync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fisislovecruft%2Fpyrsync/lists"}