Python wrapper for Murmur Hash3
C++ C Python
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 21 commits ahead of bkz:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
MurmurHash3.cpp
MurmurHash3.h
README
module.cpp
setup.py
version.py

README

MurmurHash3 for Python 2.x and 3.x.

Installing:

    sudo python setup.py install

API:

murmur3.hash32(string[, seed])
murmur3.hash128(string[, seed])
murmur3.hash128_64(string[, seed])

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.