Skip to main content

Utilidades para entrada y salida en consola

Project description

eii_utils

Módulo utilitario de Python para entrada/salida en consola.

Instalación

pip install eii_utils

Uso básico

from eii_utils import (
    leer_entero,
    leer_flotante,
    leer_texto,
    leer_booleano,
    leer_rango_enteros,
    leer_rango_flotante,
    limpiar_consola,
    imprimir_titulo_decorado,
    imprimir_mensaje,
)

edad = leer_entero("Edad")
nota = leer_rango_flotante("Nota", 0.0, 100.0)
nombre = leer_texto("Nombre")
es_activo = leer_booleano("¿Activo?")

limpiar_consola()
imprimir_titulo_decorado("resultado", largo=30)
imprimir_mensaje(f"Usuario: {nombre}")
imprimir_mensaje("No se pudo guardar", es_error=True)

Publicar en PyPI

  1. Actualiza la versión en pyproject.toml.
  2. Genera los artefactos:
    python -m pip install --upgrade build twine
    python -m build
    
  3. Verifica los artefactos:
    twine check dist/*
    
  4. Sube a PyPI:
    twine upload dist/*
    

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

eii_utilitario-0.1.1.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

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

eii_utilitario-0.1.1-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file eii_utilitario-0.1.1.tar.gz.

File metadata

  • Download URL: eii_utilitario-0.1.1.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for eii_utilitario-0.1.1.tar.gz
Algorithm Hash digest
SHA256 7fa190f70019ab3c1929ae535aa4315069e002c6ad3c60e752f351a01017c232
MD5 44a0d8b0585d25e5946bcbe9461d7819
BLAKE2b-256 a6d1c8daf893e213fac59715b40942ae1b260881c767ab47b4ee61967934ea3e

See more details on using hashes here.

File details

Details for the file eii_utilitario-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: eii_utilitario-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for eii_utilitario-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 223230ef0be138af6b737d220b8aafcc4ac66d20a13dd08a7632e5eb050a362e
MD5 5d9c39a15d06565403e56718d85b1eae
BLAKE2b-256 ad7389905c26cf65f53c33091808d93d3c234d1a37a0d9e6efc5737af689511b

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