Skip to main content

Python-bindings for CityHash

Project description

A Python wrapper around CityHash

Latest Version Downloads Travis-CI Test Status

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

Authors

The Python bindings were originally written by Alexander [Amper] Marshalov and were subsequently edited and packaged by Eugene Scherba. The original CityHash algorithm is by Google.

License

This software is licensed under the MIT License. See the included LICENSE file for more information.

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.1.tar.gz (11.8 kB view hashes)

Uploaded Source

Built Distribution

cityhash-0.1.1-cp27-none-macosx_10_10_x86_64.whl (18.3 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