Skip to content

gmatty/python-farmhash

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-farmhash

Overview

This package provides bindings for the Google's FarmHash.

Code specific to this project is covered by The MIT License

Install

Currently, clone the repo and:

$ cd python-farmhash
$ sudo python setup.py Install

The package was hosted on PyPI

$ pip install pyfarmhash
$ easy_install pyfarmhash

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:
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

About

Python bindings for the Google's FarmHash

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 94.3%
  • C 5.2%
  • Python 0.5%