This release is a pre-release and may not be stable for production use.
palettes
palettes is the part of OmniPython that turns a palette index into a color a display, LED or terminal can use: wheels, cubes, Material Design swatches and the sixteen Windows names, with the same code on MicroPython-compatible boards, CircuitPython-compatible boards and CPython. It has no dependencies.
pip install -i https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ omnipython-palettes
import omip
omip.install("palettes")
omip comes with OmniPython firmware. On other MicroPython firmware, run
mip.install("github:PyDevices/omnipython/lib/omip.py") once to put it on the board.
from palettes import get_palette
# A 360-step color wheel, ready to write to an RGB565 display
wheel = get_palette(name="wheel", length=360, color_depth=16)
print("red, green, blue as RGB565: 0x%04X 0x%04X 0x%04X" % (wheel[0], wheel[120], wheel[240]))
# Named colors, by attribute
win16 = get_palette(name="default", color_depth=24)
print("RED is 0x%06X, and its name back again is %r" % (win16.RED, win16.color_name(12)))
# Material Design, 0xRRGGBB
md = get_palette(name="material_design", color_depth=24)
print("Amber 500 is 0x%06X" % md.AMBER_S500)
red, green, blue as RGB565: 0xF800 0x07E0 0x001F
RED is 0xFF0000, and its name back again is 'Red'
Amber 500 is 0xFFC107
The picture at the top of this page is those three palettes drawn as bands: the wheel, the sixteen Windows names and the Amber ramp.
OmniPython is made by PyDevices.
Metadata
Release files for omnipython-palettes 0.0.16.dev3
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 |
|---|---|---|---|---|
| omnipython_palettes-0.0.16.dev3.tar.gz | 18.9 kB | With provenance | Details for omnipython_palettes-0.0.16.dev3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| omnipython_palettes-0.0.16.dev3-py3-none-any.whl | Python 3 | none | any | Details for omnipython_palettes-0.0.16.dev3-py3-none-any.whl |
Total release size: 40.9 kB
Release files / omnipython_palettes-0.0.16.dev3.tar.gz
| Download URL | omnipython_palettes-0.0.16.dev3.tar.gz |
|---|---|
| Size | 18.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
91c2cbb1b5e8de84987c6ce2642f0cd221325b5942d9b511b1dfdecf333f0642
|
|
BLAKE2b-256 checksum How to use checksums |
aaabdc5ed56058cf8541c349e7d0d4385fc1ca928f45d01aca36869d5044b579
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.
Transparency logRelease files / omnipython_palettes-0.0.16.dev3-py3-none-any.whl
| Download URL | omnipython_palettes-0.0.16.dev3-py3-none-any.whl |
|---|---|
| Size | 22.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5624791b3737e0d6aebaddedbcf4bd58962999af90de2159098941a95b0a60da
|
|
BLAKE2b-256 checksum How to use checksums |
b24c062ba3bb9c7f119891e8a957db782ca14f0972aac8892da8c04d599712e8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.
Transparency logSecurity for omnipython-palettes 0.0.16.dev3
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for omnipython_palettes-0.0.16.dev3.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.
Transparency logA 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.