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 details)

Uploaded Source

Built Distribution

pyshell_msg-0.1.1-py3-none-any.whl (2.4 kB view details)

Uploaded Python 3

File details

Details for the file pyshell-msg-0.1.1.tar.gz.

File metadata

  • Download URL: pyshell-msg-0.1.1.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for pyshell-msg-0.1.1.tar.gz
Algorithm Hash digest
SHA256 2ca75ba206df64bb859dcd3c63f05b53f4f4827242680462cf892beb607979ea
MD5 5ec3ce53a331095b4a3b77c8125f966f
BLAKE2b-256 3ab26bba6eef6bd67c0892c75ce4b64e6aecd66e8d1bb660e6eb83cb3e9da55a

See more details on using hashes here.

File details

Details for the file pyshell_msg-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: pyshell_msg-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 2.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for pyshell_msg-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4e5fd203d60e95d0ac9f6e9c01377f9adf6faa71d6e773d9b44d735b53d657bf
MD5 0a8bde6f9220e49b08cb54baff447206
BLAKE2b-256 8d61daab6392e605b9987bdf3edc867d21225b4a6d313f6c350d81cdbedbcd87

See more details on using hashes here.

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