cprint
Do you find it annoying when you have to search for a certain debug, or error, line in your console? Have you ever dreamed of a simple and quick way to make your debug print truly visible? Well here is your solution!
cprint is a minimalist python library which gives you the possibility to print in color.
Install
pip install cprint
Usage
from cprint import *
cprint(arg) # WHITE
cprint.ok(arg) # BLUE
cprint.info(arg) # GREEN
cprint.warn(arg) # YELLOW
cprint.err(arg, interrupt=False) # BROWN
cprint.fatal(arg, interrupt=False) # RED
In case you have issues under Windows, try installing colorama with pip install colorama.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cprint-1.2.2.tar.gz
(2.3 kB
view details)
File details
Details for the file cprint-1.2.2.tar.gz.
File metadata
- Download URL: cprint-1.2.2.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/3.3.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/53.0.0 requests-toolbelt/0.8.0 tqdm/4.56.0 CPython/3.8.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
83469274db24939b27a9b3a03d5298fec6f07408c3175dc0fc21d5ba206f51c8
|
|
| MD5 |
d048c4aa753556233c9074af4d04a05a
|
|
| BLAKE2b-256 |
54de2961e14022de7149375301c14aae3ce64e869eb25f81a2149893c3e6fb4f
|