Python-bindings for CityHash, a fast non-cryptographic hash algorithm
Project description
A Python wrapper around CityHash
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
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.2.tar.gz
(12.3 kB
view hashes)
Built Distribution
Close
Hashes for cityhash-0.1.2-cp27-none-macosx_10_10_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c06159f9f28a8f19d4260833d6ec3785aa5ceb689d184cbffc4a4e436b93ad4 |
|
MD5 | c822418be621226e78c334201ada0e51 |
|
BLAKE2b-256 | 13af8c1874ebba29e08be96e996c00b2b66ee6f0b3ba6bc770b050152f4f8fd8 |