Colorize your logs to spot them at a glance.
Project description
Printlog
Colorize your logs to spot them at a glance.
Install
pip install printlog
Usage
Log
The methods in log automatically print.
from printlog import log
log.success("It is a success")
log.success("It is a success with background", bg=True)
log.error("Is is an error")
log.error("Is is an error with background", bg=True)
Result :
Color
from printlog.color import red, green, yellow, magenta, cyan
print(red("This a red text"))
print(red("This a red text with background", bg=True))
print(green("This a green text"))
print(green("This a green text with background", bg=True))
print(yellow("This a yellow text"))
print(yellow("This a yellow text with background", bg=True))
print(blue("This a blue text"))
print(blue("This a blue text with background", bg=True))
print(magenta("This a magenta text"))
print(magenta("This a magenta text with background", bg=True))
print(cyan("This a cyan text"))
print(cyan("This a cyan text with background", bg=True))
Result :
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
printlog-0.0.5.tar.gz
(3.0 kB
view details)
File details
Details for the file printlog-0.0.5.tar.gz.
File metadata
- Download URL: printlog-0.0.5.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4f2ca201bdcf3d517728ea676ae10176f13b4a9fca75bc67eed59a328017420d
|
|
| MD5 |
55f81a6f770a210a44976e8e14765f66
|
|
| BLAKE2b-256 |
d829f212acae738db151ff39931fd6aec70266e75aceef9b9cba5afde8602459
|