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úmerob: Segundo númerooperacion: 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
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
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d961d0722d66494960790b6ca9ea45f18171271c6ee326c4fbe3996716dbe915
|
|
| MD5 |
c5abbacc44ed71477ce6ddb81b256f66
|
|
| BLAKE2b-256 |
47748496d29038b05c319fec9ef024e79409d40450d2a09d73f6f507742afd39
|
File details
Details for the file mi_libreria_tobuja48-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mi_libreria_tobuja48-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
532a531d708a95aade88c632ad388a2a826a175bee0289e3cbe94ba7a34c9004
|
|
| MD5 |
bb1f17d921e979d5d8bba787982841a3
|
|
| BLAKE2b-256 |
cceaad4a04d0cfb0f152b36851c9d6cdb2a7ed8d0bb94be3c953f254e5c30976
|