Skip to main content

Google FarmHash Bindings for Python

Project description

python-farmhash
==========


Overview
========
This package provides bindings for the [Google's FarmHash](http://code.google.com/p/farmhash/).

Code specific to this project is covered by [The MIT License](http://opensource.org/licenses/MIT)

Install
=======
Currently, clone the repo and:
> $ cd python-farmhash
> $ sudo python setup.py Install


The package was hosted on [PyPI](http://pypi.python.org/pypi/pyfarmhash)

> $ pip install pyfarmhash
> $ easy_install pyfarmhash

Usage
=====
The library is pretty simple to use:

> import pyfarmhash as farmhash
> print farmhash.hash64('abc')
> 2640714258260161385

For more details, use ipython:
> In [1]: import pyfarmhash as 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


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.1.2.tar.gz (63.6 kB view details)

Uploaded Source

File details

Details for the file pyfarmhash-0.1.2.tar.gz.

File metadata

  • Download URL: pyfarmhash-0.1.2.tar.gz
  • Upload date:
  • Size: 63.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pyfarmhash-0.1.2.tar.gz
Algorithm Hash digest
SHA256 1339aca6f9f640b3e8448232ff3f89715fd4c432fe2e90156c8b307eb2a31364
MD5 f861f6a7734760e7c830c15869d2e7f8
BLAKE2b-256 860ac08f74eb37b939f2dff6f73008a115a6eb499fc3dc3e675b57cb9769f84b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page