Consistency hash algorithm implementation in Python.
Project description
cohash.py
==================
.. image:: https://badge.fury.io/py/cohash.svg
:target: https://badge.fury.io/py/cohash
.. image:: https://travis-ci.org/theharveyz/cohash.py.svg?branch=master
:target: https://travis-ci.org/theharveyz/cohash.py
Consistency hash algorithm implementation in Python
Install
------------
.. code-block:: python
pip install cohash
Usage
------------
.. code-block:: python
import cohash
ch = cohash.Hash(nodes = [
'192.168.01',
'192.168.02',
'192.168.03',
'192.168.04',
], vnum = 1000)
key = 'random-key'
print ch.gen(key)
LICENSE
------------
MIT
==================
.. image:: https://badge.fury.io/py/cohash.svg
:target: https://badge.fury.io/py/cohash
.. image:: https://travis-ci.org/theharveyz/cohash.py.svg?branch=master
:target: https://travis-ci.org/theharveyz/cohash.py
Consistency hash algorithm implementation in Python
Install
------------
.. code-block:: python
pip install cohash
Usage
------------
.. code-block:: python
import cohash
ch = cohash.Hash(nodes = [
'192.168.01',
'192.168.02',
'192.168.03',
'192.168.04',
], vnum = 1000)
key = 'random-key'
print ch.gen(key)
LICENSE
------------
MIT
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for cohash-0.1.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88872eb8ed4595bfe0231ca43344dba87579c198a3c913f321bd9b398c3df692 |
|
MD5 | 497554ce3f017998d9b763f4e12bf5b7 |
|
BLAKE2b-256 | 8a97154727e491a5eefa4e45c9bbaeebe9d06f5f959bd61a6479b302f5d761b0 |