Colorize your logs to spot them at a glance.
Project description
Printlog
Colorize your logs to spot them at a glance.
Install
pip installe 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.4.tar.gz
(2.9 kB
view details)
File details
Details for the file printlog-0.0.4.tar.gz.
File metadata
- Download URL: printlog-0.0.4.tar.gz
- Upload date:
- Size: 2.9 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 |
a6c5b76177fbef5770fd108b3c05dc8571eb8d94b2b3988f5b46f8e9080774ce
|
|
| MD5 |
c406e22286672b5f1069dcdc981ad1bd
|
|
| BLAKE2b-256 |
b1b955510eaecb47b95ff879bf283ade9fb44196fa2a54ff5af978f2acec4864
|