fnv-hash-fast
A fast version of fnv1a
Decision gist · record as of 2026-08-14
Yes, if you need a fast FNV-1a implementation and accept that this is a non-cryptographic hash. The package is actively maintained, has no known vulnerabilities, supports modern Python versions, and offers both compiled and pure-Python paths. Install it for performance-sensitive hashing tasks where FNV-1a is already your algorithm of choice; do not use it as a general-purpose cryptographic hash.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later.
- C++ implementation requires Cython; pure Python fallback from fnvhash is used if unavailable.
- Medium install friction due to compiled wheels for multiple platforms and Python versions (3.10–3.14).
License · maintenance · safety
MIT (permissive) — MIT license permits unrestricted use, modification, and distribution with minimal restrictions—suitable for commercial and open-source projects alike.
last release 2026-05-16 (90 days) · last repo commit 2026-08-10 · 6 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 781,477 downloads/mo, #5,079 on PyPI
Alternatives
Verify before relying
pip install fnv-hash-fast
import fnv_hash_fast
result = fnv_hash_fast.fnv1a_32(b"hello")
print(result) # 1335831723- Whether the C++ implementation provides measurable performance gains over the pure Python fallback in typical workloads.
- Collision rate or cryptographic properties of the FNV-1a implementation compared to other hash functions.
- Whether this package is suitable for security-critical applications or only for non-cryptographic hashing.
What it is and what it does
fnv-hash-fast is a Python library that computes FNV-1a 32-bit hashes on byte strings. It attempts to use a compiled C++ implementation for speed when Cython is available, and falls back to a pure Python implementation from the fnvhash package otherwise. The library exports a single primary function, fnv1a_32, which takes bytes as input and returns an integer hash value.
The package targets developers who need fast, non-cryptographic hashing—for example, in hash tables, bloom filters, or data deduplication. It supports Python 3.10 through 3.14 and is distributed as pre-compiled wheels for common platforms (Linux, macOS, Windows) and architectures (x86_64, ARM), reducing installation friction on most systems.
Use it for
- Hash table or dictionary key generation where speed matters more than cryptographic strength.
- Bloom filter construction for fast membership testing in large datasets.
- Data deduplication or fingerprinting in file systems or caching layers.
- Network packet or message identification in protocols that use FNV hashing.
- Distributed system node selection or consistent hashing without cryptographic requirements.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need a fast FNV-1a implementation and accept that this is a non-cryptographic hash.
The package is actively maintained, has no known vulnerabilities, supports modern Python versions, and offers both compiled and pure-Python paths. Install it for performance-sensitive hashing tasks where FNV-1a is already your algorithm of choice; do not use it as a general-purpose cryptographic hash.
Install
fnv-hash-fast on PyPI
Before you install
Medium install friction due to compiled wheels for multiple platforms and Python versions (3.10–3.14). Active maintenance with a recent release in May 2026 and a commit as of August 2026 suggests ongoing support.
Requires Python 3.10 or later. C++ implementation requires Cython; pure Python fallback from fnvhash is used if unavailable.
License in practice
MIT license permits unrestricted use, modification, and distribution with minimal restrictions—suitable for commercial and open-source projects alike.
Quickstart
pip install fnv-hash-fast
import fnv_hash_fast
result = fnv_hash_fast.fnv1a_32(b"hello")
print(result) # 1335831723
Verify before relying
- Whether the C++ implementation provides measurable performance gains over the pure Python fallback in typical workloads.
- Collision rate or cryptographic properties of the FNV-1a implementation compared to other hash functions.
- Whether this package is suitable for security-critical applications or only for non-cryptographic hashing.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Medium. Platform-specific wheel |
| Runtime dependencies | 1 packagefnvhash |
| Maintenance | Actively maintained 90 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 781,477 / month, #5,079 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersNatural Language :: EnglishOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Software Development :: Libraries |
Evidence: fnv_hash_fast-2.0.3-cp311-cp311-macosx_11_0_arm64.whl; fnv_hash_fast-2.0.3-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl; fnv_hash_fast-2.0.3-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl; fnv_hash_fast-2.0.3-cp311-cp311-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl; fnv_hash_fast-2.0.3-cp311-cp311-musllinux_1_2_aarch64.whl; fnv_hash_fast-2.0.3-cp311-cp311-musllinux_1_2_armv7l.whl; fnv_hash_fast-2.0.3-cp311-cp311-musllinux_1_2_x86_64.whl; fnv_hash_fast-2.0.3-cp311-cp311-win32.whl; fnv_hash_fast-2.0.3-cp311-cp311-win_amd64.whl; fnv_hash_fast-2.0.3-cp312-cp312-macosx_11_0_arm64.whl; fnv_hash_fast-2.0.3-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl; fnv_hash_fast-2.0.3-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl; fnv_hash_fast-2.0.3-cp312-cp312-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl; fnv_hash_fast-2.0.3-cp312-cp312-musllinux_1_2_aarch64.whl; fnv_hash_fast-2.0.3-cp312-cp312-musllinux_1_2_armv7l.whl; fnv_hash_fast-2.0.3-cp312-cp312-musllinux_1_2_x86_64.whl; fnv_hash_fast-2.0.3-cp312-cp312-win32.whl; fnv_hash_fast-2.0.3-cp312-cp312-win_amd64.whl; fnv_hash_fast-2.0.3-cp313-cp313-macosx_11_0_arm64.whl; fnv_hash_fast-2.0.3-cp313-cp313-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “fnv1a 32-bit hashing”
- fnv-hash-fastComputes FNV-1a 32-bit hashes using a C++ implementation when…
- fnvhashComputes FNV hash values in pure Python, prioritizing portability…
- murmurhash2Provides 32-bit murmurhash2 and murmurhash3 hash functions for…
Give your agent the search over MCP, or paste the wish link into any chat.
More Libraries packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Provides parsing, arithmetic, and recurrence rule computation for dates and times, with timezone support and iCalendar RFC compliance.
Install it if you need to parse flexible date strings, compute relative dates, handle timezones, or work with recurrence rules—it's the de facto choice for these tasks.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.
See also fnvhash · kasa-crypt · siphashc · murmurhash · xxhash · murmurhash2 · mmhash3 · siphash · mmh3 · cityhash