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.2a1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c84eadee8970e72e689b747175f9b6cab4752c36fae3a83a4a8f986024f01c28 |
|
MD5 | dde2ba0804e19ead0b7b457dd263c6d0 |
|
BLAKE2b-256 | 7a259d69499c9b633520e77c291644db7c4c49ea5255bdfcfd9d4f7095710d69 |