color50
A lightweight Python package for colorful output at the command line.
Created as a final project submission for Harvard University's CS50P course, color50 is a package I designed to add a little extra flavor to standard output print statements. This is my first ever attempt at making a Python package from scratch, and I'm excited to share it with fellow Python developers and CS50 students.
Included modules
- color
- Color class
- core_functions
rgbfunctionhexcodefunctioncssfunctioncolorizefunction (decorator)
- colorstr
- ColorStr class
- constants
Installation
To install color50, execute the following command using the pip installer:
pip install color50
Sample usage
With color50 installed, the following code would print "Hello, World!" to standard output as purple-colored text.
from color50 import rgb, constants
my_color = rgb(128, 0, 128)
print(my_color + "Hello, World!" + constants.RESET)
For more detailed information on using color50 in your Python projects, please refer to the documentation at color50.readthedocs.io.
Metadata
Release files for color50 1.0.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 |
|---|---|---|---|---|
| color50-1.0.1.tar.gz | 12.0 kB | Without provenance | Details for color50-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| color50-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for color50-1.0.1-py3-none-any.whl |
Total release size: 26.2 kB
Release files / color50-1.0.1.tar.gz
| Download URL | color50-1.0.1.tar.gz |
|---|---|
| Size | 12.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5b2cdfa6845d79b2648384f2b06dd9dbee2b81defdae13dfcdeee9fb26f61c6c
|
|
BLAKE2b-256 checksum How to use checksums |
e66582184959326689c11676ce48c4c31f8d323f173eb48dc5d72cff69b0b543
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.12.0
|
Release files / color50-1.0.1-py3-none-any.whl
| Download URL | color50-1.0.1-py3-none-any.whl |
|---|---|
| Size | 14.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5b260bc74bd6ef100d0a8cf5f674877911c066210efff90108e5d40e94865bb8
|
|
BLAKE2b-256 checksum How to use checksums |
5a54f0c174869ba314701c4cc9ac2434d248f901c1bf3eb9fa68bee47af36254
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.12.0
|
Security for color50 1.0.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.