Easy to use console prints with colors. clrc.info(), clrc.success() etc
Project description
CLRC - easy print with colors (clrc.info, clrc.warn, etc)
Description
I made this package for easy printing colored messages to output. Under the hood - print function with usage of colorama (https://github.com/tartley/colorama) package colors.
Why? I wanted the simpliest way possible to import package - start right after with colored messages. All functions inside this package satisfy my and possible yours basic needs for colored output
Installation
pipenv install clrc
or
pip install clrc
Usage
You can pass additional *args like in plain print()
import clrc
# Available functions
clrc.info()
clrc.warn()
clrc.success()
clrc.error()
clrc.danger()
# Example:
clrc.error("This is error", True, 2, False, 43.2)
Update Log
0.0.3 - 16.03.2019
- Reformatted code, now using AbstractPrinter and printers instead of raw using of print function
- Now there is way to attach Loguru via LoguruPrinter
Licence
See licence file inside repository. But basically it's good old MIT
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
Built Distribution
File details
Details for the file clrc-0.0.6.tar.gz
.
File metadata
- Download URL: clrc-0.0.6.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 761593f45579f800a4825eac7df64e07c92c7d50ca77854540204f2964de0cc0 |
|
MD5 | 68754ff02ed7baea089690c0b9083760 |
|
BLAKE2b-256 | dea5cf6935480940ed0d2dc9fb5141ce0580b59eec3d3d691d7a75622d181051 |
File details
Details for the file clrc-0.0.6-py3-none-any.whl
.
File metadata
- Download URL: clrc-0.0.6-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed29722344de3b6fe08bcd5a6dfd2a90f6fc0feaef60c516391d2a51d8665a30 |
|
MD5 | 98f0fb7dfeca283604f6bcaa129428dc |
|
BLAKE2b-256 | 63f5f01b3594a75d221c5aca0e11ed5f1b38d1f2274bf3de02f2edcbeeb21ded |