Skip to main content

Applying styles to CLI output

Project description

Output Styles

Aplicarle estilos a la salida por CLI.

Install

  pip install outputstyles

Usage

from outputstyles.msg_print import error, warning, info, success, bold

# Imprimir los diferentes tipos de mensajes
print(error("Error!"))
print(error("Error!", "btn"))
print(error("Error!", "ico"))
print(error("Error!", "btn_ico"))
print("")

print(warning("Warning!"))
print(warning("Warning!", "ico"))
print(warning("Warning!", "btn"))
print(warning("Warning!", "btn_ico"))
print("")

print(success("Success!"))
print(success("Success!", "btn"))
print(success("Success!", "ico"))
print(success("Success!", "btn_ico"))
print("")

print(info("Info!"))
print(info("Info!", "btn"))
print(info("Info!", "ico"))
print(info("Info!", "btn_ico"))
print("")

print(bold("Bold!"))

License

MIT

Authors

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

outputstyles-0.1.2.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

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

outputstyles-0.1.2-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file outputstyles-0.1.2.tar.gz.

File metadata

  • Download URL: outputstyles-0.1.2.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for outputstyles-0.1.2.tar.gz
Algorithm Hash digest
SHA256 320aecb20c5b72ac29f207f374caca9d3d99ef936284badc6508a89ee5b4a1a9
MD5 24582728f3dc92991ef09fc1c51a5326
BLAKE2b-256 a6a1f229ccc97fcf012f2de984a499012cc53d66f70c6101988d8f4bd3340cb6

See more details on using hashes here.

File details

Details for the file outputstyles-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: outputstyles-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for outputstyles-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d23abda0773d79476886768cd5ee2565eeba27b81df9d0d6b438bd2090a89e02
MD5 de2d411b6c1422c843ae30b9276557c7
BLAKE2b-256 fddcd3800302f0bb07e616c726ded20850a4a5912e52f02a2bcb97da50a34d35

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