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 Distribution
pyfarmhash-0.3.2.tar.gz
(99.9 kB
view hashes)
Built Distributions
Close
Hashes for pyfarmhash-0.3.2-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc3ef74dc64a19bb325d85749e0a7955ebaa6777d7cc357bfa4ba6e5864a4362 |
|
MD5 | 22696f1245eb1add1626885affc2adfb |
|
BLAKE2b-256 | 99e7e3c97a5ba709e28db06f89684ad54e740efcdf8235cecc9ae2626b3188d2 |
Close
Hashes for pyfarmhash-0.3.2-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c125ffdf317672996e63e98bf1e84d0829fc2a85db3304ca62f873767bc0abf |
|
MD5 | 1ea4f2ff06b5da942d358cd441f8be45 |
|
BLAKE2b-256 | 7ed3659f24a6636df197d804db194f764bd3489d037b66a06f4f750eb6b14e60 |
Close
Hashes for pyfarmhash-0.3.2-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00eadc04a0a0595fbf05bf430bac3baf9788e00b3abcdd26cd478b4b3c244837 |
|
MD5 | 0c49e354df0183789856601acfd48ac5 |
|
BLAKE2b-256 | 0e4f0c7dddbb43e6da3be80c52182555951636c541a2bad5d7a4418e59a6d6e3 |
Close
Hashes for pyfarmhash-0.3.2-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea0394094509eff756e093cd7a32d6c91d7e40afce941a00c3cf5980f2d9d0dd |
|
MD5 | b1ee6c62fd2946d4443a566d24c67a38 |
|
BLAKE2b-256 | 9d69c4ce7badf4a92b721a0593f1a21a600e5d9d6e1b890b10ba6a5458a937cc |