Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

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


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


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.


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

Release History

Release History

This version
History Node

History Node


Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
clickhouse-cityhash- (35.3 kB) Copy SHA256 Checksum SHA256 Source Oct 8, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting