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 py3

Supported by

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