Closed tumb1er closed 2 years ago
Just use
list(map(int, m.digest()))
@tumb1er Use where?
@thedrow see #13
@tumb1er Did you ever get this merged into some other fork of this project? I also have a feature that I'd like to merge upstream but it seems like this project hasn't had any action in a very long time
@andreweduffy, I've created sdist package for internal use just from PR branch. Also, I've seen @asvetlov's fork with same fix. He is an author of aiohttp
package, so may be it'll be better to ask him to maintain another hash_ring version at PyPi.
@tumb1er As far as I can tell, the aiohttp package doesn't seem to depend on hash_ring so I'm not sure why asvetlov would be interested in maintaining a fork, but if he is then I'll have a PR for him :) I was just curious because I assumed that there must be some well-maintained consistent hashing library for Python, but if that's not currently the case (and I'm not looking to maintain one right now) then I'll just make my requirements.txt point to the git url for my fork.
Guys, sorry. I'm not interesting in hash_ring
library maintaining.
At least not now.
thanks @asvetlov
python2.7 hash_ring from pip
python3.3 this fork hash_ring
Even more, first two bytes of _hash_digest are always 98 and 34, because you map
ord
to representation of bytes object:and if you do
bisect
you will have a strongly non-uniform distribution for one of nodes.