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 will be hosted on [PyPI](http://pypi.python.org/pypi/farmhash)

> $ pip install farmhash
> $ easy_install farmhash

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

> 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


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

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for pyfarmhash-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c5eccba6d6b7c21c53e5e20a5a2c0ca507dec03cbbdb489417d8987277a02648
MD5 e9082563e50fe736162d36118cf86817
BLAKE2b-256 30179e2116bcaf60d1329b0903f04bc982e65def450e4a770172db5bfaba2a58

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