A simple library to print with color and style on Python 3
Project description
colorprint3
A simple library to print with color and style on Python 3
Installation
Use the package manager pip to install colorprint3.
pip install colorprint3
Usage
Same as build-in print()
function but have a few extra arguments : fg_color
, bg_color
and style
.
colorprint3.print(*word,sep=None,end=None,file=None,flush=True,fg_color=None,bg_color=None,style=[])
fg_color
values : black
, red
, green
, yellow
, blue
, magenta
, cyan
, white
, s_black
, s_red
, s_green
, s_yellow
, s_blue
, s_magenta
, s_cyan
, s_white
& Custom colors.
bg_color
values : black
, red
, green
, yellow
, blue
, magenta
, cyan
, white
, s_black
, s_red
, s_green
, s_yellow
, s_blue
, s_magenta
, s_cyan
, s_white
& Custom colors.
style
values : bold
, underline
, italic
, faint
. Accepting multiple style by putting them inside a list.
Custom color format : [r,g,b]
Contributing
Please open an issue to report a bug or give suggestion. Feel free to fork this project.
License
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
Built Distribution
Hashes for colorprint3-1.2a0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cae71c006930b2d06d83c4892038f6dd4f3c491a5520e1675f52ac36345b7684 |
|
MD5 | 5845d90f38704ea9b8991518c433c723 |
|
BLAKE2b-256 | 7c516628eef7263040dc5384dc1d5f337a9e72ff0d333b397000f8561156ec69 |