Google FarmHash Bindings for Python
Project description
python-farmhash
Google's FarmHash binding for Python
Overview
This package provides bindings for the Google's FarmHash.
Code specific to this project is covered by The MIT License
Install
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
Build on Windows:
- Install Microsoft Visual C++ Compiler
- Install miniconda for Python
$ cd python-farmhash
$ sudo python setup.py install
Usage
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for pyfarmhash-0.3.1-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 526d6a19fb34df2aa8d19760781d28a4b690c6ab3c5b5e6bc26306a3dbe46cb0 |
|
MD5 | ec6a802998282591046d83c39e4bb5f9 |
|
BLAKE2b-256 | e9a4989cfd0d71046cc7acad882b75e4621e7949f595f4146ebdbb0ffcaebd3c |