Skip to main content

color_mapper

A package for normalizing values and mapping them to a color gradient.

Installation

pip install color_mapper

Usage

from color_mapper import value_to_color

values = [10, 20, 30, 40, 50, 60, 70, 80, 90, 100]
color_bases = ['blue', 'yellow', 'red']
color_mapped_values = value_to_color(values, color_bases)
for item in color_mapped_values:
    print(f"Value: {item['value']}, Color: {item['color']}")

Release files for color-mapper 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for color-mapper 0.1.0
File Size Uploaded
color_mapper-0.1.0.tar.gz 2.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for color-mapper 0.1.0
File Interpreter ABI Platform
color_mapper-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 6.4 kB

Release files / color_mapper-0.1.0.tar.gz

Download URL color_mapper-0.1.0.tar.gz
Size 2.5 kB
Tags Source
SHA-256 checksum
How to use checksums
6ff1116ed0f6cd520395f117c169116ee9632730606601e4da4f6a23fc3b05e4
BLAKE2b-256 checksum
How to use checksums
5d42273116ed7b1434a6b4de67712928c84c977b575e4062b44f39915351b679
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.12.0

Release files / color_mapper-0.1.0-py3-none-any.whl

Download URL color_mapper-0.1.0-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5bcf6b8c3bb5e2715ac8fc98b40821aa9bf0440b5ea5ee5cb3d0a48aeb57e9a1
BLAKE2b-256 checksum
How to use checksums
512ed0719e960da23912f12e6c8d77734e0a1a072d7674220dbf34ee8ea7721c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.12.0

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page