No project description provided
Project description
CRPrint
A basic module used for colorizing console output.
The CRPrint module provides functions to colorize the console output. It includes functions to get color codes, print colored strings, and print colored lines.
-
clear_color(func): A decorator which clears the console color after execution.
-
colorize(color: tuple): A decorator which changes the color of the decorated function's output.
-
get_color(color:tuple): Returns a code that can be used to change print color.
-
color_print(text, color:tuple, print_value:bool=True, **kwargs): Prints a colored string. If
print_valueisTrue, it also prints the string without color. -
print_line(length:int, color:tuple=None, title:str=''): Prints a line of underscores with a specified length and a title. If
coloris not provided, it uses the default color. -
pretty_print(obj, indent=0, indent_increase=4, use_color=False, root=True, **kwargs): Prints an object neatly. If
use_colorisTrue, it also colors the string.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file Terry-CRPrint-0.2.0.tar.gz.
File metadata
- Download URL: Terry-CRPrint-0.2.0.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7d2c079bc12fb67dcc7523f41db325f82255af65712ff5910eb78f6e216adf72
|
|
| MD5 |
6297edb9531e881013f129e848be4cff
|
|
| BLAKE2b-256 |
4f4a3bb68297686c6f9e33a25c1596afaf7ff0a96df13f4f133b0f7a0212c4e7
|
File details
Details for the file Terry_CRPrint-0.2.0-py3-none-any.whl.
File metadata
- Download URL: Terry_CRPrint-0.2.0-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
843c71668f481e4fb0cd1aef35e0be6a6077ffa45ea5931793b098bc8dc197f4
|
|
| MD5 |
2294e954fdfb101a612b2948df4efc3e
|
|
| BLAKE2b-256 |
ecf5e9bc66dabd455dbdc8b7a7e3f155cf3ae8733d504b12ab6f4b6d5ed7aacd
|