Skip to main content

Python-bindings for CityHash, a fast non-cryptographic hash algorithm

Project description

A fork of Python wrapper around CityHash with downgraded version of algorithm. This fork used as 3-rd party library for hashing data in ClickHouse protocol. Unfortunately ClickHouse server comes with built-in old version of this algorithm.

Please use original python-cityhash package for other purposes.

Getting Started

To use this package in your program, simply type

pip install clickhouse-cityhash

Development

If you want to contribute to original package by developing, the included Makefile provides some useful commands to help you with that task:

git clone https://github.com/escherba/python-cityhash.git
cd python-cityhash
make env           # creates a Python virtualenv
make test          # runs both Python and C++ tests

See Also

For other fast non-cryptographic hashing implementations available as Python extensions, see MetroHash and xxh.

Authors

The Python bindings were originally written by Alexander [Amper] Marshalov and were subsequently edited for more speed/versatility and packaged for PyPI 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


Download files

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

Source Distribution

clickhouse-cityhash-1.0.2.1.tar.gz (35.3 kB view details)

Uploaded Source

File details

Details for the file clickhouse-cityhash-1.0.2.1.tar.gz.

File metadata

File hashes

Hashes for clickhouse-cityhash-1.0.2.1.tar.gz
Algorithm Hash digest
SHA256 6e014ae2fc598b11ede1e27c2192a7b612ed9f504dc905b48597abf9b97e3b63
MD5 469be7b899b1354820aef59ffe5ab726
BLAKE2b-256 520366f0d247a67df4e893bab368d86a7323df643e8ccc017d9b26fd10ed0fe6

See more details on using hashes here.

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