Skip to main content

cohash.py

https://badge.fury.io/py/cohash.svg?2 https://travis-ci.org/theharveyz/cohash.py.svg?branch=master

Consistency hash algorithm implementation in Python

Install

pip install cohash

Usage

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

Metadata

Release files for cohash 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cohash 0.1.4
File Size Uploaded
cohash-0.1.4.tar.gz 2.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cohash 0.1.4
File Interpreter ABI Platform
cohash-0.1.4-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 5.5 kB

Release files / cohash-0.1.4.tar.gz

Download URL cohash-0.1.4.tar.gz
Size 2.4 kB
Tags Source
SHA-256 checksum
How to use checksums
04cb5cb5fb40c1fc35d2792831d9c5f67ab636c8b3ff175b3bb6bde136b4a0fc
BLAKE2b-256 checksum
How to use checksums
04e41dd07097032c453c7d8d5ecdf4ebe419ba5986b421222ef3d80ce2a27316
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / cohash-0.1.4-py2.py3-none-any.whl

Download URL cohash-0.1.4-py2.py3-none-any.whl
Size 3.1 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
264f0a1edf4722839b7a15ad2cd74d86ab8edd349e89d07d493b9c32bc3bc3e1
BLAKE2b-256 checksum
How to use checksums
f9a42dd94260c16821a7dd7b0ed45d660f6366d2473b17f775b27e3016019d8e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.4 This release

2 release files

0.1.3

1 release file

0.1.2

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page