murmurhash2
murmurhash2 for Python
What it is and what it does
murmurhash2 is a Python binding to the MurmurHash2 and MurmurHash3 C implementations, providing fast non-cryptographic hash functions for byte strings. It exposes two functions—murmurhash2() and murmurhash3()—each taking a byte string and an optional seed value, returning a 32-bit hash. The package is distributed as precompiled wheels for common platforms and Python versions, with no runtime dependencies.
This is a low-level hashing utility, not a cryptographic library. It is typically used in scenarios where you need fast, deterministic hashing of data and do not require collision resistance or security properties. The project has been abandoned since its latest release on 2022-02-12, so it receives no active maintenance or updates.
Use it for:
- Hash-based data structures like hash tables or hash sets where speed matters more than cryptographic strength
- Bloom filters or other probabilistic data structures that require a fast, seeded hash function
- Distributed systems or load balancing that need consistent hashing with a seed for reproducibility
- Legacy code migration where MurmurHash2 or MurmurHash3 output must match existing implementations
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides 32-bit murmurhash2 and murmurhash3 hash functions for Python, wrapping C implementations with a simple byte-string interface.
Yes, if you specifically need MurmurHash2 or MurmurHash3 for compatibility or performance in a non-security context. No, if you are looking for an actively maintained hashing library or need cryptographic guarantees. The abandoned status and lack of recent updates mean no security patches will be issued if issues arise.
Install
murmurhash2 on PyPI
pip
pip install murmurhash2uv
uv add murmurhash2poetry
poetry add murmurhash2Installing murmurhash2
Before you install
Medium install friction due to compiled wheels; prebuilt binaries available for common platforms (x86_64, ARM, PowerPC, s390x on Linux/macOS/Windows) but requires matching your architecture. Last release was 2022-02-12 and the project is marked abandoned, so no active maintenance.
License in practice
MIT license is permissive; you can use this package freely in commercial and private projects with minimal restrictions, though you must include a copy of the license.
Quickstart
pip install murmurhash2
from murmurhash2 import murmurhash2, murmurhash3
SEED = 3242157231
print(murmurhash2(b'key', SEED))
print(murmurhash3(b'key', SEED))
Requires prebuilt wheel matching your Python version, architecture, and OS; no pure-Python fallback.
Verify before relying
- Whether the package will receive security updates if vulnerabilities are discovered
- Performance characteristics compared to alternatives in standard library or other packages
- Whether murmurhash2 and murmurhash3 are suitable for your use case (cryptographic vs. non-cryptographic)
Package facts
| License | MIT (permissive) |
| Python support | not specified |
| Install friction | medium — platform-specific wheel |
| Runtime dependencies | none |
| Maintenance | abandoned — 1,644 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 857,029/month — #4,885 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: murmurhash2-0.2.10-cp36-abi3-macosx_10_7_x86_64.whl; murmurhash2-0.2.10-cp36-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl; murmurhash2-0.2.10-cp36-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; murmurhash2-0.2.10-cp36-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl; murmurhash2-0.2.10-cp36-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl; murmurhash2-0.2.10-cp36-abi3-manylinux_2_17_ppc64.manylinux2014_ppc64.whl; murmurhash2-0.2.10-cp36-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl; murmurhash2-0.2.10-cp36-abi3-manylinux_2_5_i686.manylinux1_i686.whl; murmurhash2-0.2.10-cp36-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.whl; murmurhash2-0.2.10-cp36-abi3-musllinux_1_2_aarch64.whl; murmurhash2-0.2.10-cp36-abi3-musllinux_1_2_armv7l.whl; murmurhash2-0.2.10-cp36-abi3-musllinux_1_2_i686.whl; murmurhash2-0.2.10-cp36-abi3-musllinux_1_2_x86_64.whl; murmurhash2-0.2.10-cp36-abi3-win32.whl; murmurhash2-0.2.10-cp36-abi3-win_amd64.whl
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
mmhash3mmhash3 is a Python wrapper for MurmurHash3,…
permissive · top 15,000 on PyPI
murmurhashProvides fast MurmurHash2 hashing through…
permissive · top 1,000 on PyPI
mmh3mmh3 is a Python binding to MurmurHash3, a fast…
permissive · top 1,000 on PyPI
spookyhashProvides fast 32-, 64-, and 128-bit hashing via…
permissive · top 15,000 on PyPI
py-multihashEncodes and decodes multihash digests,…
permissive · top 15,000 on PyPI
xxhashxxhash provides fast non-cryptographic hashing…
permissive · top 1,000 on PyPI
bbhashBuilds minimal perfect hash functions for…
unclear · top 15,000 on PyPI
clickhouse-cityhashProvides Python bindings to CityHash, a fast…
permissive · top 15,000 on PyPI
siphash24Provides a C-based SipHash-1-3 and SipHash-2-4…
unclear · top 15,000 on PyPI
fnv-hash-fastComputes FNV-1a 32-bit hashes using a C++…
permissive · top 15,000 on PyPI