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.

Source Distribution

staticon-0.0.6.tar.gz (1.9 kB view hashes)

Uploaded Source

Built Distribution

staticon-0.0.6-py3-none-any.whl (14.3 kB view hashes)

Uploaded Python 3

Supported by

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