Skip to main content

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


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)

Uploaded Source

Built Distribution

py_echo-1.0.2-py3-none-any.whl (2.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page