nice_colorsys
This is a very small library that may offer a nicer way of working with and converting between color systems than the default Python colorsys library.
In this library, a color in each supported color system is represented as a
namedtuple with to_ methods for converting to different color systems.
Supported color systems
Main/built-in
- RGB (0.0–1.0)
- HLS
- HSV
- YIQ
- RGB (0–255) (with
nice_colorsys.rgb255)
With hsluv via nice_colorsys.hsluv
- HSLuv
- CIELUV
- CIELCH
- CIEXYZ
Example
from nice_colorsys import *
print(hsv(0.5, 1, 1).to_hls())
# Output:
#
# hls(hue=0.5, lightness=0.5, saturation=1.0)
Metadata
Release files for nice-colorsys 0.2.0
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 |
|---|---|---|---|---|
| nice_colorsys-0.2.0.tar.gz | 4.0 kB | With provenance | Details for nice_colorsys-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nice_colorsys-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for nice_colorsys-0.2.0-py3-none-any.whl |
Total release size: 9.4 kB
Release files / nice_colorsys-0.2.0.tar.gz
| Download URL | nice_colorsys-0.2.0.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2af6fe750555c5da8fba6c52351dd0beda0819aad69cfa8aa65a1e565b3c88e0
|
|
BLAKE2b-256 checksum How to use checksums |
307724f1b1b80cdb1a105fc0a99c37487b248639b68d2ba2206d2eb8b6e9124c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
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 Apr 12, 2025.
Transparency logRelease files / nice_colorsys-0.2.0-py3-none-any.whl
| Download URL | nice_colorsys-0.2.0-py3-none-any.whl |
|---|---|
| Size | 5.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5797321230c4e95223f43afdb35f383ad0cc6254b6819a90f53d7ef0ceab28dc
|
|
BLAKE2b-256 checksum How to use checksums |
758ae20583e200c8bd1dfec73f43f592968ec6416227e210974d71a273166cd0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
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 Apr 12, 2025.
Transparency logSecurity for nice-colorsys 0.2.0
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
All 2 files in this release have been uploaded with provenance metadata.
Attestation for nice_colorsys-0.2.0.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 Apr 12, 2025.
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.