Print colored status messages.
Project description
print_msg module
This module helps to print status messages in color depending on their content.
Installation:
Github:
$ git clone https://github.com/shvetsovdmitry/print-msg/
$ cd print-msg/
$ python3 setup.py sdist
$ cd dist/
$ sudo pip install print_msg-0.9.3.tar.gz
pip:
$ sudo pip install print-msg
Using:
import print_msg
print_msg(status='%status_code%', msg='%message%', end='%optional%')
Status codes:
'ok'
->[--OK--] %Message%
;'error'
->[-ERROR-] %Message%
;'status'
->[STATUS] %Message%
;'time'
->[-TIME-] Execution time -> %time%
;
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
print_msg-0.9.4.2.tar.gz
(2.2 kB
view hashes)
Built Distribution
Close
Hashes for print_msg-0.9.4.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 98cb3e9787e691e4a7ea2391b0b5c5cdcc0f156a0ec9505591d75ca9c23253d0 |
|
MD5 | d1a8f3ad0576929b57a5d749007048cb |
|
BLAKE2b-256 | 69f86c32f8de6c5882ec7f0cdf214341c6bf8178a2ee8c1f0f01ccfedef93434 |