FNV Hash Fast is a high-performance Python library providing FNV-1a hash functions (32-bit and 64-bit). It leverages C extensions for maximum speed, offering a significantly faster alternative to pure Python implementations. The current version is 2.0.2, with recent releases focusing on performance improvements and platform support.
pip install fnv-hash-fastVerified import paths — ran on the pinned version, not inferred.
This example demonstrates how to compute 32-bit and 64-bit FNV-1a hashes for a given byte string. Note that the input must be a bytes-like object.
Review your code for any reliance on internal implementation details or specific build behaviors. Test thoroughly after upgrading.
Ensure your Python environment is 3.10 or later. Use `python --version` to check.
Convert strings to bytes using `.encode()` before passing them to `fnv1a_32` or `fnv1a_64`, e.g., `my_string.encode('utf-8')`.Ensure the input to `fnv1a_32()` or `fnv1a_64()` is a `bytes` object. Convert strings using `.encode('utf-8')` (or another appropriate encoding).Install the package using `pip install fnv-hash-fast`. Verify your Python environment is active and the import is `from fnvhash import ...`.
No dependency data recorded yet.