$npx skillfedfor your agent

colourmap

Python package colourmap generates an N unique colors from the specified input colormap.

With conditionsPyPI GraphicsReleased Nov 2025131.1K downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — colourmap-1.2.1-py3-none-any.whl
v1.2.1 · released 2025-11-07 · Python >=3 · 3 runtime deps: matplotlib, numpy, scipy

Yes, if you need straightforward color generation and label-to-color mapping for visualizations. The package is lightweight, has no security vulnerabilities, and its three dependencies are standard. However, the aging maintenance status (280 days since last release) means you should verify it works with your current matplotlib/scipy versions before relying on it for production work.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Low friction install with three well-established dependencies (matplotlib, numpy, scipy).
  • Package is aging—last release 280 days ago—but repo remains active and unarchived.

License · maintenance · safety

MIT (permissive) — MIT license permits commercial and private use with minimal restrictions; safe for most projects.

last release 2025-11-07 (280 days) · last repo commit 2025-11-07 · 5 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 131,116 downloads/mo, #11,603 on PyPI

Verify before relying

pip install colourmap

from colourmap import colourmap

# Generate 10 unique colors
c = colourmap.generate(10)

# Create colors from labels
c_rgb, c_dict = colourmap.fromlist([1, 1, 2, 2, 3])

# Convert to HEX
c_hex = colourmap.rgb2hex(c_rgb)
  • Whether the package handles edge cases (empty lists, very large label sets) gracefully
  • Performance characteristics when working with thousands of unique labels
  • Compatibility with recent matplotlib/scipy versions beyond 'supports_current'
Same gist for agents: .md · .json

What it is and what it does

Colourmap is a utility for generating and managing color palettes programmatically. It wraps matplotlib, numpy, and scipy to create unique RGB and HEX color assignments from input lists or labels, making it useful for visualization tasks where you need consistent color mapping across categories or data points.

The package provides functions to generate N colors from a colormap, assign colors to input labels, convert between RGB and HEX formats, and create linear gradients between colors. It's designed for scientific and educational use, targeting developers building visualizations in Python who need deterministic, repeatable color assignment without manually managing palettes.

Use it for

  • Assign consistent colors to categorical data in plots based on unique labels or group IDs
  • Generate a palette of N distinct colors for multi-series visualization or dashboard design
  • Convert between RGB and HEX color formats for web and graphics applications
  • Create smooth color gradients between two colors for heatmaps or sequential visualizations

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you need straightforward color generation and label-to-color mapping for visualizations.

The package is lightweight, has no security vulnerabilities, and its three dependencies are standard. However, the aging maintenance status (280 days since last release) means you should verify it works with your current matplotlib/scipy versions before relying on it for production work.

Install

colourmap on PyPI

Before you install

Low friction install with three well-established dependencies (matplotlib, numpy, scipy). Package is aging—last release 280 days ago—but repo remains active and unarchived.

License in practice

MIT license permits commercial and private use with minimal restrictions; safe for most projects.

Quickstart

pip install colourmap

from colourmap import colourmap

# Generate 10 unique colors
c = colourmap.generate(10)

# Create colors from labels
c_rgb, c_dict = colourmap.fromlist([1, 1, 2, 2, 3])

# Convert to HEX
c_hex = colourmap.rgb2hex(c_rgb)

Verify before relying

  • Whether the package handles edge cases (empty lists, very large label sets) gracefully
  • Performance characteristics when working with thousands of unique labels
  • Compatibility with recent matplotlib/scipy versions beyond 'supports_current'

Package facts

LicenseMIT permissive
Python supportSupports the current Python release >=3
Install frictionLow. Pure-Python wheel
Runtime dependencies
3 packages
matplotlibnumpyscipy
MaintenanceAging 280 days since the last release
Last repo commit
First released
Downloads131,116 / month, #11,603 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Intended Audience :: EducationIntended Audience :: Science/ResearchOperating System :: MacOSOperating System :: Microsoft :: WindowsOperating System :: OS IndependentOperating System :: UnixProgramming Language :: Python :: 3

Evidence: colourmap-1.2.1-py3-none-any.whl

Tags

Capabilities
generate unique colors from labelsrgb hex color conversioncolor mapping for visualizationmatplotlib colormap wrapperassign colors to categories
Topics
color-generationvisualization-utility
PyPI keywords
Python

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “generate unique colors from labels”

  • colourmapGenerates unique RGB and HEX colors from input lists or colormaps,…
  • fastremapRemap, renumber, and relabel NumPy arrays at C++ speed, plus perform…
  • colorhashGenerates deterministic colors from any object by hashing its value,…

Give your agent the search over MCP, or paste the wish link into any chat.

More Graphics packages

pillow Worth it
PyPI · Graphics · released Jul 2026

Pillow adds image processing capabilities to Python, providing file format support, efficient pixel data handling, and image manipulation operations.

Install it if you need to work with images in Python—it is the de facto standard for this task.

MIT-CMUcompiled wheel · 3.10+
547.1Mdownloads / mo
fonttools Worth it
PyPI · Text Processing · released May 2026

fonttools manipulates font files in multiple formats (TrueType, OpenType, AFM, Type 1, Mac-specific) and includes TTX, a tool to convert fonts to and from XML text format.

Install it if you need to read, write, or manipulate fonts programmatically or via the TTX command-line tool.

permissive licensepure Python · 3.10+
235.9Mdownloads / mo
matplotlib-inline Worth it
PyPI · Graphics · released May 2026

Enables matplotlib figures to display inline directly within Jupyter notebooks and IPython environments instead of in separate windows.

BSD-3-Clausepure Python · 3.9+
130.5Mdownloads / mo
pymupdf Worth it
PyPI · Libraries · released Aug 2026

PyMuPDF extracts, renders, converts, and manipulates PDF and other document formats (XPS, EPUB, images, Office files via Pro) with high performance, providing text, tables, images, and metadata with precise layout information.

The AGPL license requires careful review if you are building proprietary software—commercial licensing is available from Artifex.

AGPLcompiled wheel · 3.10+
114.9Mdownloads / mo
pypdfium2 Worth it
PyPI · Libraries · released Aug 2026

pypdfium2 is a Python binding to PDFium that enables PDF rendering, inspection, manipulation, and creation through a ctypes interface to Google's PDFium library.

Install it if you need PDF rendering, inspection, or manipulation in Python; the medium install friction is offset by comprehensive platform support.

permissive licensecompiled wheel · 3.6+
76.9Mdownloads / mo
altair Worth it
PyPI · Graphics · released Jun 2026

Altair is a declarative Python library for creating interactive statistical visualizations by writing simple, readable code that compiles to Vega-Lite specifications.

BSD-3-Clausepure Python · 3.10+
54.5Mdownloads / mo

See also colour · distinctipy · imgviz · cmap · brewer2mpl · colorhash · cmcrameri · colorcet · materialyoucolor · cmocean