uhashring icon indicating copy to clipboard operation
uhashring copied to clipboard

Full featured consistent hashing python library compatible with ketama

Results 9 uhashring issues
Sort by recently updated
recently updated
newest added

[ 37s] =================================== FAILURES =================================== [ 37s] ______________________________ test_distribution _______________________________ [ 37s] [ 37s] def test_distribution(): [ 37s] ring = HashRing() [ 37s] [ 37s] numnodes = 10 [ 37s]...

``` def hashi(self, key, replica=0): """Returns a ketama compatible hash from the given key.""" dh = self._listbytes(md5(str(key).encode("utf-8")).digest()) ... ``` `hashi(b'abc')` returns in `dh=md5(b"b'abc'")` instead of `dh=md5(b'abc')`.

Hi `ultrabug/uhashring`! This is a one-off automatically generated pull request from LGTM.com :robot:. You might have heard that we’ve integrated LGTM’s underlying CodeQL analysis engine natively into GitHub. The result...

closes https://github.com/ultrabug/uhashring/issues/26

Releasing a new tag should push a release to PyPi automatically inspiration : https://github.com/ultrabug/mkdocs-static-i18n/blob/main/.github/workflows/deploy-release.yml

so that it does not pollute the main tree

- to pyproject - to CI tests