{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/11"}],"enrichment":{"capability":"uhashring implements consistent hashing in pure Python, mapping keys to nodes in a distributed system while minimizing reshuffling when nodes are added or removed.","skillfed_tags":["distributed-systems","caching","hashing"],"use_cases":["Distributing cache keys across multiple memcached or Redis instances while maintaining stable mappings during server additions or failures.","Load-balancing requests or data across a cluster of backend nodes with minimal key remapping during scaling events.","Implementing sharding logic in a distributed database where keys must consistently map to the same shard.","Migrating from libketama-based systems while maintaining hash ring compatibility and key distribution.","Building a custom distributed system where you need fine control over node weights and virtual node counts."],"what_it_does":"uhashring is a pure-Python library that implements consistent hashing, a technique for distributing keys across a set of nodes in a way that minimizes remapping when nodes join or leave the system. It's commonly used in distributed caches, databases, and load-balancing scenarios where you need stable key-to-node assignments. The library offers both a simple API for basic use and advanced configuration options including custom hash functions, per-node weights, and ketama compatibility for interoperability with other systems.\n\nThe package supports multiple hash strategies: by default it uses MD5 with 160 virtual nodes per node, but can also operate in ketama-compatible mode for systems that need it. You can customize the hash function, weight calculation, and virtual node count per node. It has no external runtime dependencies and runs on CPython and PyPy, making it suitable for a range of deployment scenarios.","worth_installing":"Yes. uhashring is a mature, actively maintained library with no security vulnerabilities, zero runtime dependencies, and broad Python version support. It solves a well-defined problem (consistent hashing) with a clean API and optional advanced features. Install it if you need stable key-to-node mapping in a distributed system or cache layer."},"id":"uhashring","links":{"html":"https://skillfed.io/packages/uhashring","md":"https://skillfed.io/packages/uhashring.md","pypi":"https://pypi.org/project/uhashring/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-08-03","license_spdx":"BSD-3-Clause","license_treatment":"permissive","name":"uhashring","python_support":"supports_current","summary":"Full featured consistent hashing python library compatible with ketama."},"popularity":{"monthly_downloads":593119,"position":5849,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"2.5"}
