https://github.com/znerol/py-fnvhash
Pure Python FNV hash implementation
https://github.com/znerol/py-fnvhash
Last synced: about 1 year ago
JSON representation
Pure Python FNV hash implementation
- Host: GitHub
- URL: https://github.com/znerol/py-fnvhash
- Owner: znerol
- License: mit
- Created: 2015-11-28T12:12:19.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2018-01-05T04:25:59.000Z (over 8 years ago)
- Last Synced: 2025-02-21T02:16:29.779Z (over 1 year ago)
- Language: Python
- Size: 17.6 KB
- Stars: 32
- Watchers: 3
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
Pure Python FNV hash implementation
===================================
.. image:: https://travis-ci.org/znerol/py-fnvhash.svg?branch=master
:target: https://travis-ci.org/znerol/py-fnvhash
.. image:: https://coveralls.io/repos/github/znerol/py-fnvhash/badge.svg?branch=master
:target: https://coveralls.io/github/znerol/py-fnvhash?branch=master
Pure Python implementation of the FNV_ hash family with 100% test coverage.
Take a look at pyhash_ for use cases where performance is more important than
portability.
.. _FNV: http://isthe.com/chongo/tech/comp/fnv/
.. _pyhash: https://pypi.python.org/pypi/pyhash
Usage
-----
::
>>> from fnvhash import fnv1a_32
>>> hex(fnv1a_32(b'foo'))
'0xa9f37ed7'
License
-------
The software is subject to the MIT license.