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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file py-echo-1.0.2.tar.gz.

File metadata

  • Download URL: py-echo-1.0.2.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.3

File hashes

Hashes for py-echo-1.0.2.tar.gz
Algorithm Hash digest
SHA256 ad6c5260428b9fd843d06a3c9ce48371ac082f14ca613433e0f52df0163c832b
MD5 5f565d50908de563460cd338a24c245e
BLAKE2b-256 7667933faa7d2bfe849154165e9cf70c9b897bc259892c7d17b6d14f5fca30e4

See more details on using hashes here.

File details

Details for the file py_echo-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: py_echo-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 2.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.3

File hashes

Hashes for py_echo-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d7c191ef924b3fca20175c8055fa04bec3c8ff5c82cd7c61b6fe1bc4a8dfc7ce
MD5 6ab709e6130c4f5529e4ab4f456615b6
BLAKE2b-256 d03c59a48bb3cf670562f1d8e7b298b348b4a610bedd030cf3b35b4e8fabc53d

See more details on using hashes here.

Supported by

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