{ "info": { "author": "Andrey Kislyuk", "author_email": "kislyuk@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Operating System :: MacOS :: MacOS X", "Operating System :: POSIX", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "Rehash: Resumable Hashlib\n=========================\n\nRehash is a resumable interface to the OpenSSL-based hashers (message digest objects) in the\nCPython ``hashlib`` standard library. Rehash provides hashers that\ncan be pickled, persisted and reconstituted from their ``repr()``,\nand otherwise serialized. The rest of the Rehash API is identical to\n``hashlib``.\n\nRehash hashers can be used to checkpoint and restore progress\nwhen hashing large byte streams:\n\n.. code-block:: python\n\n import pickle, rehash\n hasher = rehash.sha256(b\"foo\")\n state = pickle.dumps(hasher)\n\n hasher2 = pickle.loads(state)\n hasher2.update(b\"bar\")\n\n assert hasher2.hexdigest() == rehash.sha256(b\"foobar\").hexdigest()\n\nInstallation\n------------\n::\n\n pip install rehash\n\nApplications\n~~~~~~~~~~~~\nRehash is useful in any situation when your VM is short-lived or preemptable, and the object you're hashing is huge. For\nexample, Rehash can be used to hand off the hashing state of large objects between AWS Lambda functions or Google Cloud\nFunctions, which have runtime limits of 15 and 9 minutes, respectively.\n\n.. admonition:: Non-openssl hashers\n\n ``sha3`` and ``blake2`` hash algorithms in Python 3.6 are not OpenSSL-based and not supported by rehash.\n\n.. admonition:: PyPy\n\n PyPy uses its own hasher implementations. Those are not serializable using rehash.\n\n.. admonition:: Security note\n\n By default, rehash objects present themselves with a ``repr()`` that exposes their internal state. This allows one to\n resume the hashing from the point where it stopped. If exposed through an untrusted channel under specific conditions,\n this could potentially allow an attacker to use an extension attack. If you are unsure about the implications of this,\n set ``rehash.opaque_repr = True`` after importing rehash.\n\nLinks\n-----\n* `Project home page (GitHub) `_\n* `Documentation (Read the Docs) `_\n* `Package distribution (PyPI) `_\n* `Change log `_\n\nBugs\n~~~~\nPlease report bugs, issues, feature requests, etc. on `GitHub `_.\n\nLicense\n-------\nLicensed under the terms of the `Apache License, Version 2.0 `_.\n\n.. image:: https://travis-ci.org/kislyuk/rehash.png\n :target: https://travis-ci.org/kislyuk/rehash\n.. image:: https://codecov.io/github/kislyuk/rehash/coverage.svg?branch=master\n :target: https://codecov.io/github/kislyuk/rehash?branch=master\n.. image:: https://img.shields.io/pypi/v/rehash.svg\n :target: https://pypi.python.org/pypi/rehash\n.. image:: https://img.shields.io/pypi/l/rehash.svg\n :target: https://pypi.python.org/pypi/rehash\n.. image:: https://readthedocs.org/projects/rehash/badge/?version=latest\n :target: https://rehash.readthedocs.org/\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/kislyuk/rehash", "keywords": "", "license": "Apache Software License", "maintainer": "", "maintainer_email": "", "name": "rehash", "package_url": "https://pypi.org/project/rehash/", "platform": "MacOS X", "project_url": "https://pypi.org/project/rehash/", "project_urls": { "Homepage": "https://github.com/kislyuk/rehash" }, "release_url": "https://pypi.org/project/rehash/1.0.0/", "requires_dist": null, "requires_python": "", "summary": "Resumable hashlib: a picklable interface to CPython's OpenSSL-based hashlib standard library", "version": "1.0.0", "yanked": false, "yanked_reason": null }, "last_serial": 6021343, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "7df196932ac6625064aa44767a9a1850", "sha256": "38919aa43792e5d6fef9b1fd7ff446d89d7187fd04ef004a3f07bd522741ba24" }, "downloads": -1, "filename": "rehash-0.0.1.tar.gz", "has_sig": false, "md5_digest": "7df196932ac6625064aa44767a9a1850", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1157, "upload_time": "2017-07-12T03:01:54", "upload_time_iso_8601": "2017-07-12T03:01:54.692941Z", "url": "https://files.pythonhosted.org/packages/cf/2b/3a85ed05f35ce2f19cfb5f3854d9ccde07aa8e04a0d074e255e6c1a8363a/rehash-0.0.1.tar.gz", "yanked": false, "yanked_reason": null } ], "0.1.0": [ { "comment_text": "", "digests": { "md5": "22163651af566e1de218339a69dfb38c", "sha256": "b4067df9d2205b71ca216713eeef6568e6e8734cbd52a8a53c021a4b49a3f948" }, "downloads": -1, "filename": "rehash-0.1.0-py2.py3-none-any.whl", "has_sig": true, "md5_digest": "22163651af566e1de218339a69dfb38c", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 5089, "upload_time": "2017-07-12T17:47:49", "upload_time_iso_8601": "2017-07-12T17:47:49.396422Z", "url": "https://files.pythonhosted.org/packages/35/09/a888de0134b3efa97b938cd300c5e7c568634d8a262fe0e46ed2a9945fdc/rehash-0.1.0-py2.py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "d56188c95f09d6e0a2500e3a6f4bb2bc", "sha256": "60eb38125b762ea2adc26ebde89bfe21dad9ce0f6e74c8ee7ebf69f4c35df108" }, "downloads": -1, "filename": "rehash-0.1.0.tar.gz", "has_sig": true, "md5_digest": "d56188c95f09d6e0a2500e3a6f4bb2bc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3732, "upload_time": "2017-07-12T17:47:47", "upload_time_iso_8601": "2017-07-12T17:47:47.171445Z", "url": "https://files.pythonhosted.org/packages/59/13/c3325578759f32e6028882592f64810104a751e698478a9159cc05759e4d/rehash-0.1.0.tar.gz", "yanked": false, "yanked_reason": null } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "b7b53a593a201dee323f7e62d8a78b6f", "sha256": "c5b0cc7b1c83c61d66f6bac5a1db35f662bd45b98c3c642090155bc636f830d7" }, "downloads": -1, "filename": "rehash-0.2.0-py2.py3-none-any.whl", "has_sig": true, "md5_digest": "b7b53a593a201dee323f7e62d8a78b6f", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 5256, "upload_time": "2017-07-13T20:46:37", "upload_time_iso_8601": "2017-07-13T20:46:37.438735Z", "url": "https://files.pythonhosted.org/packages/00/cd/1a3f92ea57b8ac032d442eb0466e18527c2e8f2cd0242190f46f50198b73/rehash-0.2.0-py2.py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "5ffd3e4a950aa064407ea0bde4fdc94e", "sha256": "141376cd7f2de3029ce1daa341e40d9fb87795e57709322f0b4343376eeade5d" }, "downloads": -1, "filename": "rehash-0.2.0.tar.gz", "has_sig": true, "md5_digest": "5ffd3e4a950aa064407ea0bde4fdc94e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3896, "upload_time": "2017-07-13T20:46:35", "upload_time_iso_8601": "2017-07-13T20:46:35.312227Z", "url": "https://files.pythonhosted.org/packages/1c/a9/ffa2819283b809c230372e8fd2ec3f5bad4a9017b24fc2b6ae43820bd7b3/rehash-0.2.0.tar.gz", "yanked": false, "yanked_reason": null } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "b5155dae1b1cf7487e057f44d9ded320", "sha256": "5406e26d7f60d9902774cd507009811c9588fa9a8b1c2fd45a223c161a6270e6" }, "downloads": -1, "filename": "rehash-0.2.1-py2.py3-none-any.whl", "has_sig": true, "md5_digest": "b5155dae1b1cf7487e057f44d9ded320", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 5290, "upload_time": "2017-07-13T21:03:57", "upload_time_iso_8601": "2017-07-13T21:03:57.371394Z", "url": "https://files.pythonhosted.org/packages/b1/f9/f68d8d1a3e6ac65817cf9195cc4a967bc0a0edf95385ef32eaeea92293bd/rehash-0.2.1-py2.py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "db157ee82503865b132c365b09fb2b50", "sha256": "444d7926bf400887859673a9c2fa5a3951272247c4ed782e924de36d6c2b109c" }, "downloads": -1, "filename": "rehash-0.2.1.tar.gz", "has_sig": true, "md5_digest": "db157ee82503865b132c365b09fb2b50", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3945, "upload_time": "2017-07-13T21:03:55", "upload_time_iso_8601": "2017-07-13T21:03:55.575235Z", "url": "https://files.pythonhosted.org/packages/9a/71/3cc781668fcdc869022b63156fe6d1e62acbe9d27df6e3d0c7501bf5daaa/rehash-0.2.1.tar.gz", "yanked": false, "yanked_reason": null } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "0cd674538c55a718181cc60eed8f5758", "sha256": "f3970d485e16665c139e7d95dde42ddf7603ac389ca6cec6efce208924ea515a" }, "downloads": -1, "filename": "rehash-0.3.0-py2.py3-none-any.whl", "has_sig": true, "md5_digest": "0cd674538c55a718181cc60eed8f5758", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 6718, "upload_time": "2017-08-09T00:40:33", "upload_time_iso_8601": "2017-08-09T00:40:33.377157Z", "url": "https://files.pythonhosted.org/packages/26/8e/6d7032014db4acf457517ed944d0a83eac59e27bd785b28155e5ec1246a7/rehash-0.3.0-py2.py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "1d8b7c486ae7826d672ebe7e5eef63f7", "sha256": "7e913945cf766ffef31eeacdf708d9458de18b47f4d741dba01f221b028ffc14" }, "downloads": -1, "filename": "rehash-0.3.0.tar.gz", "has_sig": true, "md5_digest": "1d8b7c486ae7826d672ebe7e5eef63f7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5009, "upload_time": "2017-08-09T00:40:30", "upload_time_iso_8601": "2017-08-09T00:40:30.983954Z", "url": "https://files.pythonhosted.org/packages/69/88/e0b2266a758f021f45fc1f6d643d3a8d57a1814adebd7b946ec356f435f2/rehash-0.3.0.tar.gz", "yanked": false, "yanked_reason": null } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "8c1d773318c5812818a13f19e59a1460", "sha256": "daa8f7bdd61dcff2a36be56154431e4a47d5a942f385a822392b045334836c0f" }, "downloads": -1, "filename": "rehash-0.3.1-py2.py3-none-any.whl", "has_sig": true, "md5_digest": "8c1d773318c5812818a13f19e59a1460", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 6770, "upload_time": "2017-11-23T22:02:59", "upload_time_iso_8601": "2017-11-23T22:02:59.797070Z", "url": "https://files.pythonhosted.org/packages/e5/fe/6a2b7ba5168a5b38e6188845428279c8a2dcfff6d1e90aeefa81915e8d7e/rehash-0.3.1-py2.py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "81591606a61b9c85e2d8dce995e74c44", "sha256": "7bf08120d88151457bd6cb0b4ab9b03f0f0124814db9b42d09823f76ae6a4a8d" }, "downloads": -1, "filename": "rehash-0.3.1.tar.gz", "has_sig": true, "md5_digest": "81591606a61b9c85e2d8dce995e74c44", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5028, "upload_time": "2017-11-23T22:02:56", "upload_time_iso_8601": "2017-11-23T22:02:56.707069Z", "url": "https://files.pythonhosted.org/packages/32/45/ad549ff460677e0ddb6dbbc9615310cc2980d5dffd2c39d3f25e8dddb1e3/rehash-0.3.1.tar.gz", "yanked": false, "yanked_reason": null } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "1c41d273fa8a371c9076296e6ac2d72f", "sha256": "2e903ff2c4c7668adaf6cc937b44cbe6b87e7a1c76587b7e0b896714e522f4fa" }, "downloads": -1, "filename": "rehash-1.0.0-py2.py3-none-any.whl", "has_sig": true, "md5_digest": "1c41d273fa8a371c9076296e6ac2d72f", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 8669, "upload_time": "2019-10-24T02:22:13", "upload_time_iso_8601": "2019-10-24T02:22:13.274276Z", "url": "https://files.pythonhosted.org/packages/c9/e4/30db193232d9e9c8e123764d84f0807535677548833ca251556ad6134c24/rehash-1.0.0-py2.py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "ef637c77f27c154e88bb2cf236237972", "sha256": "8d8d4d4a6848dd75e638d4720e172d95927ed32a4a11e2e8767e95beef881581" }, "downloads": -1, "filename": "rehash-1.0.0.tar.gz", "has_sig": true, "md5_digest": "ef637c77f27c154e88bb2cf236237972", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5012, "upload_time": "2019-10-24T02:22:15", "upload_time_iso_8601": "2019-10-24T02:22:15.234882Z", "url": "https://files.pythonhosted.org/packages/0e/4d/d93e8a9d6cefbba25182c2128dee87d3f940bf4ab61bc58ceefbedf8fcdd/rehash-1.0.0.tar.gz", "yanked": false, "yanked_reason": null } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "1c41d273fa8a371c9076296e6ac2d72f", "sha256": "2e903ff2c4c7668adaf6cc937b44cbe6b87e7a1c76587b7e0b896714e522f4fa" }, "downloads": -1, "filename": "rehash-1.0.0-py2.py3-none-any.whl", "has_sig": true, "md5_digest": "1c41d273fa8a371c9076296e6ac2d72f", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 8669, "upload_time": "2019-10-24T02:22:13", "upload_time_iso_8601": "2019-10-24T02:22:13.274276Z", "url": "https://files.pythonhosted.org/packages/c9/e4/30db193232d9e9c8e123764d84f0807535677548833ca251556ad6134c24/rehash-1.0.0-py2.py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "ef637c77f27c154e88bb2cf236237972", "sha256": "8d8d4d4a6848dd75e638d4720e172d95927ed32a4a11e2e8767e95beef881581" }, "downloads": -1, "filename": "rehash-1.0.0.tar.gz", "has_sig": true, "md5_digest": "ef637c77f27c154e88bb2cf236237972", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5012, "upload_time": "2019-10-24T02:22:15", "upload_time_iso_8601": "2019-10-24T02:22:15.234882Z", "url": "https://files.pythonhosted.org/packages/0e/4d/d93e8a9d6cefbba25182c2128dee87d3f940bf4ab61bc58ceefbedf8fcdd/rehash-1.0.0.tar.gz", "yanked": false, "yanked_reason": null } ], "vulnerabilities": [] }