Skip to main content

a library for MurmurHash3, a set of fast and robust hash functions

Project description


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.



pip install murmurhash3


pip install murmurhash3

>>> import mmh3
>>> mmh3.hash('foo')  # 32-bit signed int
>>> mmh3.hash64('foo')  # two 64-bit signed ints (the 128-bit hash sliced in half)
(-2129773440516405919, 9128664383759220103)
>>> mmh3.hash128('foo')  # 128-bit signed int
>>> mmh3.hash_bytes('foo')  # 128-bit value as bytes
>>> mmh3.hash('foo', 42)  # uses 42 for its seed


Public Domain


MurmurHash3 was created by Austin Appleby

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for murmurhash3, version 2.3.5
Filename, size File type Python version Upload date Hashes
Filename, size murmurhash3-2.3.5.tar.gz (3.8 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page