px
pypx

fnvhash

v0.2.1

Pure Python FNV hash implementation.

18 KB Python 3.9+ py3-none-anyMIT License
Diff
$ uv add fnvhash

Pure Python FNV hash implementation

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.

Usage

>>> from fnvhash import fnv1a_32
>>> hex(fnv1a_32(b'foo'))
'0xa9f37ed7'

License

The software is subject to the MIT license.

Details

Version
0.2.1
License
MIT License
Python
>=3.9
Maintainer
Lorenz Schori <[email protected]>

Maintainers