Skip to main content
python-colorspace

A Python toolbox for manipulating and assessing colors and palettes

Documentation Examples Testing Coverage status

The package provides a Python 3 version of the R colorspace package comprising:

  • Color spaces: Conversions and manipulations of RGB, HSV, CIEXYZ, CIELAB, CIELUV, HCL etc.
  • HCL-based palettes: Qualitative, sequential, and diverging color maps constructed using the HCL (hue-chroma-luminance) color model. These can closely approximate palettes from ColorBrewer.org, CARTO, viridis, or Crameri's scientific color maps.
  • matplotlib color maps: Integration with matplotlib for use in standard plotting functions.
  • Palette visualization: Plotting palettes in color swatches, spectrums of HCL and/or RGB trajectories, and illustrations of typical data visualizations.
  • Interactive palette chooser: App for exploring, modifying, and picking color palettes interactively.
  • Color vision deficiency: Emulation of different kinds of color blindness.
  • Utilities: Various color manipulations including tools to desaturate, lighten, darken, adjust the transparency, or compute the contrast ratio.

Links

Contributors

We would like to thank the following individuals for their contributions to the review process for this software, as part of the submission to The Journal of Open Source Software (JOSS): Julia Romanowska @jromanowska, Editor, Daniel S. Katz @danielskatz, Editor, Andrew Ting @hollowscene, Reviewer, and David Reagan @dmreagan, Reviewer.

Furthermore, the Python package implements the functionality from the R package that is co-written with Ross Ihaka, Paul Murrell, Kurt Hornik, Jason C. Fisher, Claus O. Wilke, Claire D. McWhite.

Development notes

Community guidelines

If you encountery any bugs or issues, or are interested in contributing to Python colorspace, please have a look at our Community guidelines.

Test and development

More detailed information on how to run automated tests, create coverage reports, test examples and render the documentation can be found on our Installation page.

GitHub Action integration (CI)

Additional notes about development and deployment are documented in GITHUBACTIONS.md.

Release files for colorspace 1.0.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 colorspace 1.0.0
File Size Uploaded
colorspace-1.0.0.tar.gz 519.2 kB Details

Release files / colorspace-1.0.0.tar.gz

Download URL colorspace-1.0.0.tar.gz
Size 519.2 kB
Tags Source
SHA-256 checksum
How to use checksums
02e9cedffc8d2f3e30381d2a1b0a841fc90668837e22bf09cd4eb2072d1f5cb0
BLAKE2b-256 checksum
How to use checksums
8bd8eeecfd2370f71964ee594603c83fe40861e604eeefcf30e8563e6cc597d8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

1.0.0 This release

1 release file

0.5.2

1 release file

0.5.1

1 release file

0.5.0

1 release file

0.4.4

1 release file

0.4.3

1 release file

0.4.2

1 release file

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