Skip to main content

Crea títulos ascii para aplicacions de termial

Project description

ascii-title

Librería Python para generar títulos ASCII art con gradientes de color en la terminal. Ideal para darle estilo visual a aplicaciones de línea de comandos.

Características

  • Renderiza texto como arte ASCII usando fuentes de pyfiglet
  • Aplica gradientes de color 24-bit RGB mediante códigos ANSI
  • 13 paletas de colores predefinidas
  • Usable como librería Python o como comando de terminal

Instalación

pip install ascii-title

Modo desarrollo

git clone https://github.com/jaimefeldman/ascii-title
cd ascii-title
pip install -e .

Uso como librería

import ascii_title

# Imprime directamente en la terminal (paleta y fuente con valores por defecto)
ascii_title.imprimir_titulo("MI APP")

# Con paleta y fuente personalizadas
ascii_title.imprimir_titulo("MI APP", paleta="nebula", fuente="slant")

# Devuelve el string con códigos ANSI (útil para componer output)
titulo = ascii_title.renderizar_titulo("MI APP", paleta="sunset")
print(titulo)

# Obtiene un dict con todas las paletas disponibles {nombre: [hex, ...]}
paletas = ascii_title.get_paletas()

Parámetros

Parámetro Tipo Valor por defecto Descripción
texto str Texto a renderizar
paleta str "sunset" Nombre de la paleta de colores
fuente str "ansi_shadow" Fuente de pyfiglet

Uso como CLI

# Título con texto y paleta personalizados
ascii-title -t "MI TÍTULO" -c sunset

# Especificar también la fuente
ascii-title -t "HOLA" -c nebula -f slant

# Listar todas las paletas disponibles (con vista previa de color)
ascii-title -l

Opciones CLI

Opción Descripción
-t, --text Texto a convertir (default: ASCII TITLE)
-c, --color Paleta de colores (default: sunset)
-f, --font Fuente de pyfiglet (default: ansi_shadow)
-l, --list Muestra las paletas disponibles con vista previa

Paletas de colores disponibles

Nombre Colores
grad-blue Azul claro → azul índigo
sunset Naranja → rojo → ámbar
dawn Celeste → azul
nebula Púrpura → rosa suave
mono Rosa uniforme
ocean Azul lavanda → violeta
fire Rojo → salmón
forest Verde azulado → verde claro
gold Naranja → amarillo dorado
purple Azul grisáceo → azul eléctrico
mint Cyan → azul medio
coral Rosa claro → lila pálido
matrix Verde brillante → verde oscuro

Dependencias

  • pyfiglet >= 1.0.2 — renderizado de fuentes ASCII art

Licencia

Este proyecto está bajo la licencia 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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ascii_title_generator-1.0.0-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file ascii_title_generator-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ascii_title_generator-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a0100e41049a6ec81f112e1986a40a4bfc8ff57b044d1feb3d108cd5399339f1
MD5 3f5178853cf0564235cafc35e54d2d9e
BLAKE2b-256 5eab68aef86025f3b4b7ebb5986a80b4d4ac7f7c8ae660d5d25439874ed4e592

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page