ColorpaletteConverter
Export colorpalettes in Python to the MacOS color helper.
Install
pip install colorpaletteconverter
Note: MacOS only
Usage
import colorpaletteconverter as cv
# Create the palette, named "MyPythonPalette"
mypalette = cv.Palette("MyPythonPalette")
# Add a color using a key e.g. "White" and color described by (r, g, b, a)
mypalette.add_color((1,1,1,1), "White")
mypalette.add_color((1,0,0,1), "Red")
mypalette.add_color((0,1,0,1), "Green")
mypalette.add_color((0,0,1,1), "Blue")
mypalette.add_color((0,0,1,0.5), "Translucent blue")
# Save it to the default location. This will make it visible in the MacOS color palette.
mypalette.save()
# To save it to an alternative location
mypalette.save("mypalette.clr")
More examples in the tutorial notebook.
Use cases
This package helps to convert color palettes from for example Matplotlib or Seaborn, or your custom generated color palettes to the MacOS Color helper.
- Matplotlib color palettes: https://matplotlib.org/stable/tutorials/colors/colormaps.html
- Seaborn color palettes: https://seaborn.pydata.org/tutorial/color_palettes.html
The colors can be used in application like Apple Pages, Apple Keynote, Apple Numbers, Apple Final Cut Pro X, Microsoft Word, Microsoft Powerpoint and more.
Used packages
Metadata
Release files for colorpaletteconverter 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| colorpaletteconverter-0.3.1.tar.gz | 3.7 kB | Without provenance | Details for colorpaletteconverter-0.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| colorpaletteconverter-0.3.1-py3-none-any.whl | Python 3 | none | any | Details for colorpaletteconverter-0.3.1-py3-none-any.whl |
Total release size: 7.4 kB
Release files / colorpaletteconverter-0.3.1.tar.gz
| Download URL | colorpaletteconverter-0.3.1.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b7c34bca2617bd0a4af7bf3c123a64036eb5d7d010d2aee4b5acf49e9ebfecf2
|
|
BLAKE2b-256 checksum How to use checksums |
a0dd8ce4b92297549c3a7f6a75fb263565014acfc07b6ae2a147b3c43e482b08
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.11.5
|
Release files / colorpaletteconverter-0.3.1-py3-none-any.whl
| Download URL | colorpaletteconverter-0.3.1-py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d81ad73803c7246e422d5f86a8202fbdf5d3d1eeca640caa108a4860fb11015d
|
|
BLAKE2b-256 checksum How to use checksums |
69865cdeb24d178a7e592ca9b42f13ebf6bf19a5179ce265a1f27087b76cf5f7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.11.5
|
Security for colorpaletteconverter 0.3.1
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.