stylize prints with colors, backgrounds, and styles
Project description
py-echo
echo your code with colors, backgrounds, and styles
Installation
pip install py-echo
Usage
from echo import echo
#Fully stylized
echo(
"Hello World!", # text
"red", # color
"green", # background
"bold", # style
"this is my first ", # unstylized string before
" printed with py-echo!!" # unstylized string after)
)
#only color
echo(
"Hello World!", # text
"red", # color
"", # background
"", # style
"", # unstylized string before
"" # unstylized string after)
)
#Manual use
from echo import backgrounds, colors, styles, close
print(
backgrounds['blue'] +
colors['black'] +
styles['underline'] +
"Hello World!" +
close)
Avaliable Parameters
Colors
black
red
green
orange
blue
purple
cyan
lightgrey
darkgrey
lightred
lightgreen
yellow
lightblue
pink
lightcyan
Backgrounds
black
red
green
orange
blue
purple
cyan
lightgrey
Styles
bold
disable
underline
reverse
invisible
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
py-echo-1.0.2.tar.gz
(1.9 kB
view hashes)