A Python wrapper for SpookyHash version 2, a fast non-cryptographic hash function. Current version 2.1.1 provides hash128 and hash64 algorithms with an API similar to hashlib. Release cadence is low; last update July 2024.
pip install spookyhashNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Quickstart: compute hash of bytes or use incremental hashing.
Update code to expect str from hexdigest(), or use .digest() for bytes.
Use hashlib or cryptography for secure hashing.
Upgrade to 2.1.1 and follow the current API.
Use from spookyhash import hash128 (or hash64).
Encode the string: hash128(b"text") or hash128("text".encode()).No dependency data recorded yet.