Module for using colors for the terminal, based on reflection
Project description
Coloreflection
A tool with which you can use colors in your Python code to decorate terminal output.
Install
pip install coloreflection
or,
poetry add coloreflection
Capabilities
Dark PyCharm theme
Light PyCharm theme
Usage
from coloreflection import Color
C = Color()
print(C.border(" Using style for text "))
print(C.FG.red("Changing text color"))
print(C.BG.green("Changing text background"))
print(C.border(C.bold(C.FG.pink("You can"))), "combine",
C.BG.blue(C.FG.yellow(f"different colors{C.reverse(' and styles.')}")))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
coloreflection-0.1.0.tar.gz
(14.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file coloreflection-0.1.0.tar.gz.
File metadata
- Download URL: coloreflection-0.1.0.tar.gz
- Upload date:
- Size: 14.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.10.10 Linux/5.19.0-45-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eef1ef13c7d45798f3acd6c2e4907c33c21594f94df9a7851f16767c0a673e74
|
|
| MD5 |
430aa404589eaf08ee180cb92707c008
|
|
| BLAKE2b-256 |
cf01686633b61f67de75913d965e49e91905a5cddff95fbc6b96efa3c28b35c5
|
File details
Details for the file coloreflection-0.1.0-py3-none-any.whl.
File metadata
- Download URL: coloreflection-0.1.0-py3-none-any.whl
- Upload date:
- Size: 14.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.10.10 Linux/5.19.0-45-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6c78a7e0204618069ccd12825bf7c4d9343cfc8e51a4b4e9509b6759d9a2db1a
|
|
| MD5 |
254b26c5740dccd8668ee22ae2e2818a
|
|
| BLAKE2b-256 |
9eec96538918d4774ca0e58e7f93b2fd3326c243ed138ee8fa28677e0b4f364b
|