The `colourmap` Python package, currently at version 1.2.1, generates N unique colors from a specified input colormap or list of colors. It also provides utilities for converting between RGB and HEX color formats and can create linear gradients. The package appears to have a moderate release cadence, with recent updates in late 2025.
pip install colourmapVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to generate unique colors using the `colourmap` function from a default colormap or a provided list of colors. It also shows the utility functions for converting between RGB and HEX color formats. The core functionality is `generate_unique_colors` which can take an `n_colors` parameter or an `input_colors` list.
Verify your `pip install` command and `from ... import ...` statements. The correct installation is `pip install colourmap` and the main import is `from colourmap import colourmap`.
Always pass either `n_colors` OR `input_colors`, but not both, to `generate_unique_colors` for clarity and predictable results. Consult the official documentation for specific argument priority if both are present.
Change your import statement to `from colourmap import colourmap`.
If you want to use a specific colormap (e.g., from matplotlib or seaborn), first generate a list of colors from that colormap using its respective library, and then pass that list to `colourmap.generate_unique_colors` via the `input_colors` parameter.
No dependency data recorded yet.