Skip to main content

A better way of printing logs in Python.

Project description

PyPrintPlus

A better way of printing logs in Python.

Want to support the development and stay updated?

Become a Patreon Donate using Liberapay

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.4.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

pyprintplus-1.0.4-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file pyprintplus-1.0.4.tar.gz.

File metadata

  • Download URL: pyprintplus-1.0.4.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

File hashes

Hashes for pyprintplus-1.0.4.tar.gz
Algorithm Hash digest
SHA256 5dbacc9a0c987a1ee5c7274794a4529d39326c62a0501f1ad5fa539bde0e7fd1
MD5 5b761c4d203a687c03ffe6615ad86eb6
BLAKE2b-256 fba851120e3b817d809ff14611739ef6cbfd22e61cd72e16bfa7927abddce7a0

See more details on using hashes here.

File details

Details for the file pyprintplus-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: pyprintplus-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

File hashes

Hashes for pyprintplus-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 ece1f29794ed6bedd4ce52621d61533dcccdd2bced50c55a18dc0e139d8dd9f5
MD5 3799426f97ed325ca5d1a92ed7b799c8
BLAKE2b-256 d4e83d3daef524d28e9b26153eac3d044c22f4ed249ca783a94fc0d9571f1ff3

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