Skip to main content

Log/print your status and messages on python shell or terminal

Project description



A python package to log/print your status and messages on shell or terminal in a standardized yet customizable format.

--<App> $ message > value

Installation

pip install pyshell-msg

Usage

Import module

from pyshell_msg.shell import Shell

Initialize class Shell with name of your application.

my_shell = Shell("My application")

Use msg method to print your message and value

my_shell.msg(message="Hello There",value=001)
my_shell.msg(message="This is second message",value=002)
my_shell.msg(message="No Value")

Output

--<My application> $ Hello There               > 001 
--<My application> $ This is second message    > 002 
--<My application> $ No Value                   

Spacing remain constant to have uniform-looking logs for your application.

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

pyshell-msg-0.1.1.tar.gz (2.1 kB view hashes)

Uploaded Source

Built Distribution

pyshell_msg-0.1.1-py3-none-any.whl (2.4 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