mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-16 02:23:16 -04:00
dev-python/uhashring: initial import
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
30
dev-python/uhashring/metadata.xml
Normal file
30
dev-python/uhashring/metadata.xml
Normal file
@@ -0,0 +1,30 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<description>comaintainers welcome</description>
|
||||
<email>lssndrbarbieri@gmail.com</email>
|
||||
<name>Alessandro Barbieri</name>
|
||||
</maintainer>
|
||||
<longdescription lang="en">
|
||||
uhashring implements consistent hashing in pure Python.
|
||||
|
||||
Consistent hashing is mostly used on distributed systems/caches/databases as this avoid the total reshuffling of your key-node mappings when adding or removing a node in your ring (called continuum on libketama). More information and details about this can be found in the literature section.
|
||||
|
||||
This full featured implementation offers:
|
||||
|
||||
a lot of convenient methods to use your consistent hash ring in real world applications.
|
||||
simple integration with other libs such as memcache through monkey patching.
|
||||
a full ketama compatibility if you need to use it (see important mention below).
|
||||
all the missing functions in the libketama C python binding (which is not even available on pypi) for ketama users.
|
||||
possibility to use your own weight and hash functions if you don't care about the ketama compatibility.
|
||||
instance-oriented usage so you can use your consistent hash ring object directly in your code (see advanced usage).
|
||||
native pypy support, since this is a pure python library.
|
||||
tests of implementation, key distribution and ketama compatibility.
|
||||
Per node weight is also supported and will affect the nodes distribution on the ring.
|
||||
</longdescription>
|
||||
<upstream>
|
||||
<remote-id type="github">ultrabug/uhashring</remote-id>
|
||||
<remote-id type="pypi">uhashring</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
Reference in New Issue
Block a user