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.3

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.3
File Size Uploaded Provenance Actions
colourmap-1.2.3.tar.gz 12.1 kB Without provenance Details for colourmap-1.2.3.tar.gz

Built distribution (wheel)

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

Total release size: 22.9 kB

Release files / colourmap-1.2.3.tar.gz

Download URL colourmap-1.2.3.tar.gz
Size 12.1 kB
Tags Source
SHA-256 checksum
How to use checksums
3732dedfe86902b7a1b25eb56c63f74b4f683e1c6341f5f6888bc7342ba50b99
BLAKE2b-256 checksum
How to use checksums
fdcd264f7a66a52e136df0bc52be821ab18cb2949dcb75e964967d28e2d43d59
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.3-py3-none-any.whl

Download URL colourmap-1.2.3-py3-none-any.whl
Size 10.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
342d83be30175440f0d6f7b585aed3b2b9d035ed4f887db1b984d9dbc3bc5ea3
BLAKE2b-256 checksum
How to use checksums
bb58099eb9b1d87ef533e86f417de9d33759a38193ba7429dd8994046c410a2f
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.3

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