A better way of printing logs in Python.
Project description
PyPrintPlus
A better way of printing logs in Python.
Want to support the development financially? Donations are always welcomed!
Installation
pip install pyprintplus
Functions
print()
Print a message together with the current file and time (or runtime).
Example:
from pyprintplus import Log
Log().print(text='Email sent',filename='send_email.py')
Input options:
text = str filename = str (default: None) script_started_time = int (UNIXtime, default: None)
show_message()
Show a message in a speech bubble, making it more engaging for real humans.
Example:
from pyprintplus import Log
Log().show_message(text='Hello! Lets setup your new website!')
Input options:
text = str
show_messages()
Show one or multiple messages automatically in a speech bubble, one after the other, after a few seconds delay.
Example:
from pyprintplus import Log
Log().show_messages(list_messages=['Email was sent.','What do you want to do next?'])
Input options:
list_messages = list
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
pyprintplus-1.0.1.tar.gz
(2.9 kB
view hashes)
Built Distribution
Close
Hashes for pyprintplus-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d4bb6bf1f26df19b8be791084d340520e23d1b0c2c155117ccb4acb9206b5f3 |
|
MD5 | 4929d6e667e12d5367bce12eacb50b94 |
|
BLAKE2b-256 | 1399f0ac78c44ef86dac3a0cc59c2f998b863da7394b07663887b3bd6cc0f5f4 |