@mainfile
PyColor-palette
This library is designed to display text using colors and formatting, as well as logging and debugging. Debugging is done using logger.
Used projects: icecream source code and loguru module
Install
pip3 install pycolor_palette-loguru
Example
#!venv/bin/python3
"""pycolor_palette Example File.
Copyright Alexeev Bronislav (C) 2024
"""
from loguru import logger
from pycolor_palette_loguru.logger import PyDBG_Obj, benchmark, set_default_theme, debug_func, setup_logger
from pycolor_palette_loguru.paint import info_message, warn_message, error_message, other_message, FG, Style, debug_message, run_exception
from pycolor_palette_loguru.pygments_colorschemes import CatppuccinMocha
set_default_theme(CatppuccinMocha)
pydbg_obj = PyDBG_Obj()
setup_logger('DEBUG')
@benchmark
@debug_func
def debug_print() -> list:
num = 12
float_int = 12.12
string = 'Hello'
boolean = True
list_array = [1, 2, 3, 'Hi', True, 12.2]
dictionary = {1: "HELLO", 2: "WORLD"}
pydbg_obj(num, float_int, string, boolean, list_array, dictionary)
debug_print()
logger.debug("This is debug!")
logger.info("This is info!")
logger.warning("This is warning!")
logger.error("This is error!")
# Simple messages
info_message('INFORMATION')
warn_message('WARNING')
error_message('EXCEPTION')
debug_message('DEBUG')
other_message('SOME TEXT', 'OTHER')
# Highlight bg
info_message('Highlight INFORMATION', True)
warn_message('Highlight WARNING', True)
error_message('Highlight EXCEPTION', True)
debug_message('Highlight DEBUG', True)
other_message('Highlight SOME TEXT', 'OTHER', True)
print(f'{FG.red}{Style.bold}BOLD RED{Style.reset}{Style.dim} example{Style.reset}')
run_exception('EXCEPTION')
Metadata
Release files for pycolor_palette-loguru 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| pycolor_palette_loguru-0.2.1.tar.gz | 10.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pycolor_palette_loguru-0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 21.2 kB
Release files / pycolor_palette_loguru-0.2.1.tar.gz
| Download URL | pycolor_palette_loguru-0.2.1.tar.gz |
|---|---|
| Size | 10.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8f5baef013c81e7b4525e04c3376762383cd71bef8a550f8f5b63cf37cded2e1
|
|
BLAKE2b-256 checksum How to use checksums |
cafe94144f471f84ab84972b3e8612e579570d8926900d70e0b23c95f31c657e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.12.7 Linux/6.12.0-1-cachyos
|
Release files / pycolor_palette_loguru-0.2.1-py3-none-any.whl
| Download URL | pycolor_palette_loguru-0.2.1-py3-none-any.whl |
|---|---|
| Size | 10.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5593f54b13882a148c44ced6efebb2a222d8949c0a2032aca29c4647d73bbff4
|
|
BLAKE2b-256 checksum How to use checksums |
465fe9345b5c3b7cb8a85a1de7ad1f184c528d9b8abfe68438dbfccd8fc8a54e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.12.7 Linux/6.12.0-1-cachyos
|
Security for pycolor_palette-loguru 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.