Skip to main content

Una librería de ejemplo para PyPI

Project description

Mi Librería

Una librería de ejemplo para demostrar cómo crear y publicar un paquete en PyPI.

Instalación

pip install mi-libreria

Uso

from mi_libreria import saludar, calcular

# Saludar
print(saludar("Ana"))  # ¡Hola, Ana!

# Operaciones matemáticas
print(calcular(2, 3))  # 5 (suma por defecto)
print(calcular(10, 4, "resta"))  # 6
print(calcular(3, 7, "multiplicacion"))  # 21
print(calcular(15, 3, "division"))  # 5.0

Funciones disponibles

saludar(nombre: str) -> str

Saluda a una persona por su nombre.

calcular(a: float, b: float, operacion: str = "suma") -> float

Realiza operaciones matemáticas básicas.

Parámetros:

  • a: Primer número
  • b: Segundo número
  • operacion: Tipo de operación ("suma", "resta", "multiplicacion", "division")

Desarrollo

Para instalar en modo desarrollo:

git clone https://github.com/tu-usuario/mi-libreria
cd mi-libreria
pip install -e .[dev]

Para ejecutar tests:

pytest tests/

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 Distribution

mi_libreria_tobuja48-0.1.0.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.

mi_libreria_tobuja48-0.1.0-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file mi_libreria_tobuja48-0.1.0.tar.gz.

File metadata

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

File hashes

Hashes for mi_libreria_tobuja48-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d961d0722d66494960790b6ca9ea45f18171271c6ee326c4fbe3996716dbe915
MD5 c5abbacc44ed71477ce6ddb81b256f66
BLAKE2b-256 47748496d29038b05c319fec9ef024e79409d40450d2a09d73f6f507742afd39

See more details on using hashes here.

File details

Details for the file mi_libreria_tobuja48-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mi_libreria_tobuja48-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 532a531d708a95aade88c632ad388a2a826a175bee0289e3cbe94ba7a34c9004
MD5 bb1f17d921e979d5d8bba787982841a3
BLAKE2b-256 cceaad4a04d0cfb0f152b36851c9d6cdb2a7ed8d0bb94be3c953f254e5c30976

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