Modulos comunes para proyectos de datos
Project description
Lucas's Ultimate Clear And Simplified Data Package
Conjunto de scripts para el desarrollo de soluciones de datos.
Este paquete proporciona scripts comunes que se pueden reutilizar en varios proyectos. Incluye funcionalidades para configuración de registros (logging) y conexión a base de datos.
Estructura del Proyecto
lucasdp/
├── init.py
Uso
Configuración de Registros (logging)
from prefect import flow, task
from lucasdp.log_tools import PrefectLogger
logger_global = PrefectLogger(__file__)
@task
def mi_tarea(mensaje_tarea: str = ""):
logger = logger_global.obtener_logger_prefect()
logger.info("Iniciando tarea...")
logger.info("Hola %s desde la tarea", mensaje_tarea)
# Cambio el archivo de salida
logger = logger_global.cambiar_rotfile_handler_params(r"C:\src\logeo\logs\hola.log")
logger.info("Tarea finalizada...")
@flow
def mi_flujo(mensaje_flujo: str = ""):
logger = logger_global.obtener_logger_prefect()
logger.info("Hola %s desde el flujo", mensaje_flujo)
mi_tarea(mensaje_flujo)
if __name__ == '__main__':
mi_flujo()
¿Como colaborar en el proyecto?
1. Clonar el repositorio
git clone https://github.com/lucasdepetris/lucasdp.git
cd lucasdp
2. Crear una rama nueva
git checkout -b nombre_de_tu_rama
3. Realizar mejoras y hacer un commit
git add .
git commit -m "Descripción clara de las mejoras realizadas"
4. Subir los cambios
git push origin nombre_de_tu_rama
5. Instalar
Ejecutar:
pip install git+https://github.com/lucasdepetris/lucasdp.git
TODO
-
Actualizar documentacion de nuevos modulos en este README
-
Probar y mejorar manejador de scripts SQL.
- Agregar ejemplo funcional
-
Agregar modulo de configuración de emails.
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 lucasdp-0.6.12.tar.gz.
File metadata
- Download URL: lucasdp-0.6.12.tar.gz
- Upload date:
- Size: 12.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8dbfa7492a0f45e5f81cc5d318bfe346570fd7c49eb92d9a6556309bb2f7e535
|
|
| MD5 |
45ac2f6305dae8ce512dcec79e934250
|
|
| BLAKE2b-256 |
539fa27278a3b71dc1276f3e5a47c1f1ceb74efbf395f5873059dd5d0388033b
|
File details
Details for the file lucasdp-0.6.12-py3-none-any.whl.
File metadata
- Download URL: lucasdp-0.6.12-py3-none-any.whl
- Upload date:
- Size: 13.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c2902795b7902c393f3472987b4264832370e31ff9d8fb036f11a3f1b7ce1d3d
|
|
| MD5 |
c1df526b14eeb7db12c08871814efd3e
|
|
| BLAKE2b-256 |
1080d28622bb05fa835d8823421c03f347cbe2f41290f9d0257601f54292113c
|