Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Google FarmHash Bindings for Python

Project Description

This package provides bindings for the [Google's FarmHash](

Code specific to this project is covered by [The MIT License](

Forked on 2015.04.06 to add bindings for fingerprint functions. Pull request submitted.
Currently, clone the repo and:

> $ cd python-farmhash
> $ sudo python Install

(Sheer hackery. I'm sure there's a way to do this with the new VS but this is working and
I don't have hours to work on it. Feel free to submit a pull request)

> Install Microsoft Visual C++ Compiler for Python 2.7
> Install msinttypes
> Copy stdint.h to the src directory, and modify the line 47 reference to use double quotes instead of angle brackets
> Add "if defined(_MSC_VER) ||" to line 76 of
> $ cd python-farmhash
> $ sudo python install

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
Release History

Release History

This version
History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
pyfarmhash-0.2.2.tar.gz (99.3 kB) Copy SHA256 Checksum SHA256 Source Jul 2, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting