Skip to main content

Python-bindings for CityHash

Project description

A Python wrapper around CityHash

https://travis-ci.org/escherba/python-cityhash.svg

Installation

To get started, clone this repo and run make env or, alternatively, install it into your environment of choice (below). Note that you will need to have Cython installed before you install this package.

pip install -U cython
pip install git+https://github.com/escherba/python-cityhash

Example Usage

The package contains 64- and 128-bit implementations of CityHash algorithm.

>>> from cityhash import CityHash64, CityHash128
>>> CityHash64("abc")
2640714258260161385L
>>> CityHash128("abc")
76434233956484675513733017140465933893L

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

cityhash-0.1.0.tar.gz (11.7 kB view hashes)

Uploaded Source

Built Distribution

cityhash-0.1.0-cp27-none-macosx_10_10_x86_64.whl (18.1 kB view hashes)

Uploaded CPython 2.7 macOS 10.10+ x86-64

Supported by

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