/python-cityhash

Python bindings for CityHash

Primary LanguageC++OtherNOASSERTION

CityHash

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.