skip to navigation
skip to content

Not Logged In

smhasher 0.136.2

Python extension for smhasher hash functions

Latest Version: 0.150.1

python-smhasher is a Python 2.x/3.x wrapper for the [SMHasher](http://code.google.com/p/smhasher/) non-cryptographic hashing library. It currently supports the MurmurHash3 64-/128-bit and x86/x64 variants.

License: MIT License

Usage

>>> import smhasher
>>> [k for k in dir(smhasher) if k[0] == 'm']
['murmur3_x64_128', 'murmur3_x64_64', 'murmur3_x86_128', 'murmur3_x86_64']
>>> smhasher.murmur3_x86_128('hello')
213030289162235495270783145757721615258L
>>> seed = 1138
>>> smhasher.murmur3_x86_128('hello', seed)
94758481705480737162820094006203962724L
 
File Type Py Version Uploaded on Size
smhasher-0.136.2.tar.gz (md5) Source 2011-06-20 54KB
  • Downloads (All Versions):
  • 8 downloads in the last day
  • 99 downloads in the last week
  • 568 downloads in the last month