Skip to main content

A little helper to structure your terminal output

Project description

A simple piece of code to help structure your console outputs. BT makes use of colorama to provide a few options to create a consistent console output “theme”.

from bloodyterminal import btext

btext.success("your string")"your string")
btext.warning("your string")
btext.error("your string")
btext.debug("your string")
btext.custom("your prefix", "your string")

Will result in something like this:

alt text

To test this you can also use btext.demo() to get these outputs.

NOTE: There seems to be a problem with the pycharm debugger not displaying the colors. You’d have to use the terminal.

NOTE: I did not create the coloring functionality! Credit for that goes to colorama

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for bloodyterminal, version 4.0
Filename, size File type Python version Upload date Hashes
Filename, size bloodyterminal-4.0.tar.gz (1.9 kB) File type Source Python version None Upload date Hashes View

Supported by

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