Terminal color style handler.
Project description
colorpie
Terminal color style handler.
Installation:
python -m pip install [--upgrade] colorpie
Available tools:
Style4Bit
from colorpie import Style4Bit
style = Style4Bit(
color='red',
highlight='black',
attributes=['bold', 'slow_blink']
)
if __name__ == '__main__':
print(style.format('Hello, World!'))
Style8Bit
from colorpie import Style8Bit
style = Style8Bit(
color=0,
highlight=16,
attributes=['bold']
)
if __name__ == '__main__':
print(style.format('Hello, World!'))
Some colors can be referred to by their name:
black, maroon, green, olive, navy, purple, teal, silver, grey, red, lime, yellow, blue, magenta, cyan, white and gold
Also, by their hex or rgb values.
(see __256_color__
dict in mapping.py).
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
colorpie-0.0.1.tar.gz
(13.6 kB
view hashes)
Built Distribution
colorpie-0.0.1-py3-none-any.whl
(13.6 kB
view hashes)