a library for MurmurHash3, a set of fast and robust hash functions
Project description
murmurhash3
- Version:
2.3.4
- Download:
- Source:
- Keywords:
hash, MurmurHash
murmurhash3 is a Python library for MurmurHash (MurmurHash3), a set of fast and robust hash functions. This library is a Python extension module written in C.
Supports Python >= 3.2.0 on all platforms.
Usage
Install:
pip install murmurhash3
Usage:
pip install murmurhash3 >>> import mmh3 >>> mmh3.hash('foo') # 32-bit signed int -156908512 >>> mmh3.hash64('foo') # two 64-bit signed ints (the 128-bit hash sliced in half) (-2129773440516405919, 9128664383759220103) >>> mmh3.hash128('foo') # 128-bit signed int 168394135621993849475852668931176482145 >>> mmh3.hash_bytes('foo') # 128-bit value as bytes 'aE\xf5\x01W\x86q\xe2\x87}\xba+\xe4\x87\xaf~' >>> mmh3.hash('foo', 42) # uses 42 for its seed -1322301282
License
Public Domain
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
murmurhash3-2.3.5.tar.gz
(3.8 kB
view details)
File details
Details for the file murmurhash3-2.3.5.tar.gz
.
File metadata
- Download URL: murmurhash3-2.3.5.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f53387d1425a165427b55f1938355e5c05beecbcf180ef1738bd892082f6bfbd |
|
MD5 | 3fc68fe48bd2dbccdb9853f22b28e8de |
|
BLAKE2b-256 | b5f41f9c4851667a2541bd151b8d9efef707495816274fada365fa6a31085a32 |