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 hashes)
Built Distribution
Close
Hashes for coloreflection-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c78a7e0204618069ccd12825bf7c4d9343cfc8e51a4b4e9509b6759d9a2db1a |
|
MD5 | 254b26c5740dccd8668ee22ae2e2818a |
|
BLAKE2b-256 | 9eec96538918d4774ca0e58e7f93b2fd3326c243ed138ee8fa28677e0b4f364b |