Skip to main content

Implementation of the Jump Consistent Hash algorithm

Project description

Python implementation of the jump consistent hash algorithm by John Lamping and Eric Veach[1]. Requires Python 2.6-2.7 or 3.2+.

Usage

>>> import jump
>>> jump.hash(256, 1024)
520

Or if you want to use the C++ extension:

>>> jump.fasthash(256, 1024)
520

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

jump_consistent_hash-2.0.1.tar.gz (2.6 kB view hashes)

Uploaded Source

Built Distributions

jump_consistent_hash-2.0.1-cp34-cp34m-macosx_10_10_x86_64.whl (5.6 kB view hashes)

Uploaded CPython 3.4m macOS 10.10+ x86-64

jump_consistent_hash-2.0.1-cp27-none-macosx_10_10_intel.whl (6.5 kB view hashes)

Uploaded CPython 2.7 macOS 10.10+ intel

jump_consistent_hash-2.0.1-cp26-none-macosx_10_10_intel.whl (6.5 kB view hashes)

Uploaded CPython 2.6 macOS 10.10+ intel

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