Google FarmHash Bindings for Python
Google's FarmHash binding for Python
This package provides bindings for the Google's FarmHash.
Code specific to this project is covered by The MIT License
Update: Windows binary wheel uploaded to pypi
Currently, clone the repo and:
pip(Linux & Windows):
$ sudo pip install pyfarmhash
From Source:
$ cd python-farmhash
$ sudo python setup.py Install
$ cd python-farmhash
$ sudo python setup.py install
import farmhash
print farmhash.hash64('abc')
2640714258260161385
For more details, use ipython:
In [1]: import farmhash
In [2]: farmhash.hash64withseed?
Type: builtin_function_or_method
String Form:<built-in function hash64withseed>
Docstring:
Hash function for a string. For convenience, a 64-bit seed is also hashed into the result.
example: print farmhash.hash64withseed('abc', 12345)
13914286602242141520L