{"categories":[{"label":"Graphics","url":"https://skillfed.io/packages/category/multimedia-graphics"}],"enrichment":{"capability":"Generates deterministic colors from any object by hashing its value, returning results in HSL, RGB, and hex formats with customizable hue, saturation, and lightness ranges.","skillfed_tags":["color-generation","deterministic-hashing","ui-utilities"],"use_cases":["Assign consistent avatar colors to users based on their identifier across a web application.","Generate category or tag colors that remain stable even after data reloads or cache refreshes.","Create color-coded visual indicators for status or priority levels in dashboards.","Build theme-aware color schemes by constraining hue ranges to match brand guidelines.","Implement deterministic syntax highlighting or data visualization where the same entity always gets the same color."],"what_it_does":"ColorHash is a lightweight Python library that maps any input object to a deterministic color by computing a hash and converting it to HSL, RGB, or hex format. The same input always produces the same color output, making it useful for UI elements like user avatars or category labels where visual consistency matters. The library supports Python 3.8 through 3.15 and has zero runtime dependencies, keeping it simple to integrate.\n\nYou control the output by adjusting hue range (min_h to max_h), saturation levels, and lightness levels. The library picks deterministically from the ranges you provide, so you can create narrow color palettes or wide variety depending on your needs. The core API is straightforward: instantiate ColorHash with an object and optional parameters, then access the .hsl, .rgb, or .hex properties.","worth_installing":"Yes. Zero dependencies, active maintenance, no known vulnerabilities, and a permissive MIT license make this a low-risk addition. Install it if you need deterministic color mapping for UI consistency; the API is minimal and the library does one thing well."},"id":"colorhash","links":{"html":"https://skillfed.io/packages/colorhash","md":"https://skillfed.io/packages/colorhash.md","pypi":"https://pypi.org/project/colorhash/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-03-12","license_spdx":null,"license_treatment":"permissive","name":"colorhash","python_support":"supports_current","summary":"Generate color based on any object"},"popularity":{"monthly_downloads":384160,"position":7069,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"2.3.0"}
