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 py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page