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=None,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.
fg_color
and bg_color
also accept direct integer input from 0 to 7.
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.
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.3a0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0deba38e3f3a4473364b5d4d6a7c23d4c4826f6f1447ce0ed36900d7ca6a6f0f |
|
MD5 | 81f17d369aab5c22e086de50bd6ebc60 |
|
BLAKE2b-256 | 3ce6c68d23282712d0b5d2c3564e0054533fa792f9e07d9011c4f82019d7efb0 |