Skip to main content

colourmap

Python PyPI Version License Github Forks GitHub Open Issues Project Status Downloads Downloads Sphinx

* Colourmap generates an unique lit of RGB and HEX colors for the specified input list.

⭐️ Star this repo if you like it ⭐️

Documentation pages

On the documentation pages you can find more information about colourmap with examples.

Install colourmap from PyPI
pip install colourmap     # normal install
pip install -U colourmap  # update if needed

Import colourmap package

from colourmap import colourmap

Quick example

Use the documentation pages for more detailed usage. Some of the most used functionalities are linked below.

from colourmap import colourmap

# Create N colors
c = colourmap.generate(10)

# From list
c_rgb, c_dict = colourmap.fromlist([1,1,2,2,3,1,2,3])

# to HEX
c_hex = colourmap.rgb2hex(c_rgb)

Example: Generate N unique colors from a specific colormap

Example: Generate unique colors based on input labels

Example: Create unique colors based on seaborn or matplotlib

Example: Conversion RGB to HEX

Example: Conversion HEX to RGB

Example: Create a linear gradient between colors


Maintainer

  • Erdogan Taskesen, github: erdogant
  • Contributions are welcome.
  • For citations, please use the citation at the right side panel.
  • If you wish to buy me a Coffee for this work, it is very appreciated :)

Metadata

Release files for colourmap 1.2.2

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

Source distribution (sdist)

Source distribution for colourmap 1.2.2
File Size Uploaded Provenance Actions
colourmap-1.2.2.tar.gz 11.9 kB Without provenance Details for colourmap-1.2.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for colourmap 1.2.2
File Interpreter ABI Platform Actions
colourmap-1.2.2-py3-none-any.whl Python 3 none any Details for colourmap-1.2.2-py3-none-any.whl

Total release size: 22.6 kB

Release files / colourmap-1.2.2.tar.gz

Download URL colourmap-1.2.2.tar.gz
Size 11.9 kB
Tags Source
SHA-256 checksum
How to use checksums
8afed1f80f2d7abb8a7ad4a1fd146548a3ea5326d4d141dc97940fd47e3eed7a
BLAKE2b-256 checksum
How to use checksums
3b8465fede9188133b53062521cf502dae3bd7deef1805de3d3dc77116242724
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Release files / colourmap-1.2.2-py3-none-any.whl

Download URL colourmap-1.2.2-py3-none-any.whl
Size 10.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
126f01f7036b8e62f5f8eb295d8e834fdfdcdf1c59412b9189c3bff8ba174c39
BLAKE2b-256 checksum
How to use checksums
41aba435bf4624596b4017dafaf51d74a7cd147de028b8d1b4a139e59cb92bb8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Security for colourmap 1.2.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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