Metadata-Version: 2.4
Name: guavahash
Version: 1.0.2
Summary: Google's Guava consistent hashing implementation
Author-email: igorcoding <igorcoding@gmail.com>
License-Expression: MIT
Project-URL: Homepage, https://github.com/igorcoding/guavahash
Project-URL: Repository, https://github.com/igorcoding/guavahash
Project-URL: Download, https://github.com/igorcoding/guavahash/tarball/v0.4
Keywords: guava,consistent,hashing,hash,digest
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Libraries
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE.txt
Provides-Extra: test
Requires-Dist: pytest>=3.0; extra == "test"
Dynamic: license-file

# guavahash

[![Build](https://github.com/igorcoding/guavahash/actions/workflows/ci.yaml/badge.svg?branch=refresh)](https://github.com/igorcoding/guavahash/actions)
[![PyPI](https://img.shields.io/pypi/v/guavahash.svg)](https://pypi.python.org/pypi/guavahash
)

Google's Guava consistent hashing implementation


Assign to `input` a "bucket" in the range `[0, buckets)`, in a uniform manner
that minimizes the need for remapping as `buckets` grows.
That is, `consistentHash(h, n)` equals:

* `n - 1`, with approximate probability `1/n`;
* `consistentHash(h, n - 1)`, otherwise (probability `1 - 1/n`).

See the [wikipedia article on consistent hashing](http://en.wikipedia.org/wiki/Consistent_hashing)
for more information.
