Skip to main content

A python library for printing pretty status messages

Project description

Staticon

A python library for printing pretty status messages

Installation

pip install --user staticon

Usage

message returns the text to print
sprint calls message and prints the output

Source

from staticon import Level, sprint

sprint(Level.INFO, 'This is the info level')
sprint(Level.SUCCESS, 'This is the success level')
sprint(Level.WARNING, 'This is the warning level')
sprint(Level.ERROR, 'This is the error level')
sprint(Level.CRITICAL, 'This is the critical level')

Output

It displays

[i] This is info
[✓] This is success
[!] This is warning
[x] This is error
[⚠] This is critical

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 staticon, version 0.0.6
Filename, size File type Python version Upload date Hashes
Filename, size staticon-0.0.6-py3-none-any.whl (14.3 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size staticon-0.0.6.tar.gz (1.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page