Skip to main content

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

mmh3 2.0 now supports both Python 2.7 and 3.x. The interface is greatly changed.

Sample usage:
>>> import mmh3
>>> mmh3.hash('foo') # 32 bit signed int
-292180858
>>> mmh3.hash64('foo') # two 64 bit signed ints
(-2129773440516405919, 9128664383759220103)
>>> 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 a seed
725194882
hash64 and hash_bytes have a third argument for architecture optimization. Use True for x64 and False for x86 (default: True).
>>> mmh3.hash64('foo', 42, True)
(-840311307571801102, -6739155424061121879)

MurmurHash3 was created by Austin Appleby, http://code.google.com/p/smhasher/

Modified by Hajime Senuma

Metadata

Release files for mmh3 2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mmh3 2.0
File Size Uploaded
mmh3-2.0.tar.gz 4.9 kB Details

Release files / mmh3-2.0.tar.gz

Download URL mmh3-2.0.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
787f67a05a9cf9a5ac0b4755e0b0cc2ded5a1541ffde710da43aeebd7a15162b
BLAKE2b-256 checksum
How to use checksums
cbe0d9459f9d4b56cc78c85f1c1aca54eb0ed89d4ed703da979e09b24806d434
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

5.1.0

81 release files

5.0.1

96 release files

5.0.0

96 release files

4.0.1

64 release files

4.0.0

64 release files

3.1.0

35 release files

3.0.0

26 release files

2.5.1

1 release file

2.5

1 release file

2.4

1 release file

2.3.1

1 release file

2.3

1 release file

2.2

1 release file

This release

2.0 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page