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
Links
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
Built Distributions
Close
Hashes for jump_consistent_hash-2.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b84ad5a0534148a11bdd53bf7ee1d8600a70b0730f72a232987b87728872dbc |
|
MD5 | 4853e1e08bc5ac4c2e5fe9b10c550ce6 |
|
BLAKE2b-256 | 7e8ec34b7d2d85bb42fcf3f86ef6531274f4e5e13043547eda932d12f55c1e04 |
Close
Hashes for jump_consistent_hash-2.0.0-cp34-cp34m-macosx_10_10_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42c86c5ec6cb166aba5ac5143012226f0fa6b6f794dd885dc99f95a0f4dd4945 |
|
MD5 | fc22c37bbaa263c65081812ce3263589 |
|
BLAKE2b-256 | 0e89f038d20ad090797e293455c63595696a9fd6eeb00f259c386d79d99af346 |
Close
Hashes for jump_consistent_hash-2.0.0-cp27-none-macosx_10_10_intel.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a565d081f43b633d0fed258a705d117a9fc608ee3eccb82ca78475b41e1cce2f |
|
MD5 | f85d46196b7fbd41a53eefe22862911f |
|
BLAKE2b-256 | b2e96a2de00c328d1e0886b1b4b8eab75e8ca46f081ce292238587bfd7e7ad63 |