Librería de utilidades para prints en consola con colores
Project description
prints_utils
Librería de utilidades para imprimir en consola con colores y formatos personalizados.
Instalación
pip install prints-utils
Uso básico
from prints_utils.prints import Prints
p = Prints()
# Imprimir un título en verde
p.printTitle("Título de ejemplo", color="green")
# Imprimir un subtítulo en azul
p.printSubTitle("Subtítulo", color="blue")
# Imprimir un diccionario clave-valor en magenta
p.printDict("Clave", "Valor", color="magenta")
# Imprimir un texto simple en rojo
p.printText("Este es un texto en rojo", color="red")
Métodos disponibles
printTitle(title, color="None"): Imprime un título centrado y resaltado.printSubTitle(subTitle, color="None"): Imprime un subtítulo con formato.printSubTitle2(subTitle, color="None"): Variante de subtítulo.printClass(nameClass, color="None"): Imprime el nombre de una clase.printMethod(method, color="None"): Imprime el nombre de un método.printDict(key, value, color="None"): Imprime una clave y valor.printText(text, color="None"): Imprime un texto simple.printObject(name, object, color="None"): Imprime un objeto (dict o list).printList(title=None, request=None, color="None"): Imprime una lista o diccionario.printError(text, error): Imprime un mensaje de error.printEnd(): Imprime una línea en blanco.testColor(): Muestra ejemplos de todos los colores y formatos.
Colores disponibles
- black, red, darkred, green, darkgreen, yellow, darkyellow, blue, darkblue, magenta, darkmagenta, cyan, darkcyan, white, darkwhite, gray, none
Requisitos
- Python >= 3.8
- SQLAlchemy (se instala automáticamente)
Licencia
MIT
Autor: Edinson Tunjano
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
prints_utils-0.5.0.tar.gz
(4.0 kB
view details)
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 prints_utils-0.5.0.tar.gz.
File metadata
- Download URL: prints_utils-0.5.0.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
78643f2b8011ec1fb3bdb8cd26d030116cdd74b82420734f82b998d81252b3f8
|
|
| MD5 |
0a6ff366a09aff0b6bc633e787bd362b
|
|
| BLAKE2b-256 |
c017cb6ea06e5d27e5ac126cd3bf2fc0c6a697b72fccab0f11399fa2a3a8c3cf
|
File details
Details for the file prints_utils-0.5.0-py3-none-any.whl.
File metadata
- Download URL: prints_utils-0.5.0-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b96e1990096499d68c673b6eeceae0be3b871b1251c9ed9b919537f5a4b5cf8f
|
|
| MD5 |
6cdfd45fe6715e5cbfc39d27b44482d1
|
|
| BLAKE2b-256 |
dafd7108826453f30e27724e48d6dc644138c4e171146c548b3aeb27e0a7ff06
|