Metadata-Version: 1.1
Name: rehash
Version: 0.1.0
Summary: Resumable hashlib: a picklable interface to CPython's OpenSSL-based hashlib standard library
Home-page: https://github.com/kislyuk/rehash
Author: Andrey Kislyuk
Author-email: kislyuk@gmail.com
License: Apache Software License
Description: Rehash: Resumable Hashlib
        =========================
        
        Rehash is a resumable interface to the OpenSSL-based hashers in the
        CPython ``hashlib`` standard library. Rehash provides hashers that
        can be pickled, reconstituted from their ``repr()``, and otherwise
        serialized. The rest of the Rehash API is identical to
        ``hashlib``.
        
        Rehash hashers can be used to checkpoint and restore progress
        when hashing large byte streams::
        
          import pickle, rehash
          hasher = rehash.sha256(b"foo")
          state = pickle.dumps(hasher)
        
          hasher2 = pickle.loads(state)
          hasher2.update(b"bar")
        
          assert hasher2.hexdigest() == rehash.sha256(b"foobar").hexdigest()
        
        .. admonition:: Non-openssl hashers
        
          ``sha3`` and ``blake2`` hash algorithms in Python 3.6 are not OpenSSL-based and not supported by rehash.
        
        .. admonition:: PyPy
        
          PyPy uses its own hasher implementations. Those are not serializable using rehash.
        
        Links
        -----
        * `Project home page (GitHub) <https://github.com/kislyuk/rehash>`_
        * `Documentation (Read the Docs) <https://rehash.readthedocs.io/en/latest/>`_
        * `Package distribution (PyPI) <https://pypi.python.org/pypi/rehash>`_
        * `Change log <https://github.com/kislyuk/rehash/blob/master/Changes.rst>`_
        
        Bugs
        ~~~~
        Please report bugs, issues, feature requests, etc. on `GitHub <https://github.com/kislyuk/rehash/issues>`_.
        
        License
        -------
        Licensed under the terms of the `Apache License, Version 2.0 <http://www.apache.org/licenses/LICENSE-2.0>`_.
        
        .. image:: https://travis-ci.org/kislyuk/rehash.png
                :target: https://travis-ci.org/kislyuk/rehash
        .. image:: https://codecov.io/github/kislyuk/rehash/coverage.svg?branch=master
                :target: https://codecov.io/github/kislyuk/rehash?branch=master
        .. image:: https://img.shields.io/pypi/v/rehash.svg
                :target: https://pypi.python.org/pypi/rehash
        .. image:: https://img.shields.io/pypi/l/rehash.svg
                :target: https://pypi.python.org/pypi/rehash
        .. image:: https://readthedocs.org/projects/rehash/badge/?version=latest
                :target: https://rehash.readthedocs.org/
        
Platform: MacOS X
Platform: Posix
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Operating System :: POSIX
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Development Status :: 5 - Production/Stable
Classifier: Topic :: Software Development :: Libraries :: Python Modules
