19 lines
341 B
Text
19 lines
341 B
Text
|
|
MurmurHash3 for Python 2.x and 3.x.
|
|
|
|
Installing:
|
|
|
|
sudo python setup.py install
|
|
|
|
Using:
|
|
|
|
import murmur3
|
|
|
|
print murmur3.hash32('my string')
|
|
a, b, c, d = murmur3.hash128('my other string')
|
|
print a, b, c, d
|
|
|
|
a, b = murmur3.hash128_64('my other other string')
|
|
print a, b
|
|
|
|
See http://code.google.com/p/smhasher/ for more information.
|