Skip to main content

Modular Python library designed for building and managing robust ETL processes. Includes database connectors, Google Sheets/Drive integration, AppSheet API support, job scheduling via SQL Server Agent, Excel generation, and logging utilities.

Project description

Roche Data Chapter Team Library

Description

Una biblioteca modular en Python desarrollada para estandarizar y simplificar la creación de procesos ETL y automatizaciones. Pensada para equipos de datos que requieren integraciones con múltiples fuentes, soporte de logs y trazabilidad, y herramientas de administración de jobs SQL.

Características principales

🔌 Conectores de Base de Datos

  • Conexiones automáticas a SQL Server, Oracle, SAP HANA, MySQL, Snowflake y Redshift utilizando variables de entorno para parametrización segura.
  • Soporte de ejecución de consultas personalizadas y procedimientos almacenados.
  • Lectura directa a pandas.DataFrame o listas JSON.

📊 Transformaciones de Datos

  • Conversión robusta de fechas, números, nulos y tipos de datos desde hojas de cálculo o APIs externas.
  • Estándares predefinidos para Google Sheets y Excel.

📤 Google API Services

  • Lectura/escritura en hojas de Google Sheets.
  • Carga y descarga de archivos desde Google Drive.
  • Manejo de credenciales OAuth2 y reintentos automáticos.

📩 Email Automation con AppSheet

  • Gestión automatizada del envío de emails usando AppSheet como backend.
  • Soporte para archivos adjuntos en Google Drive (PDF, Excel, TXT).

📁 Generación de Excel

  • Creación de archivos Excel multiformato con estilo, desde múltiples DataFrame.
  • Ancho de columnas y formatos aplicados automáticamente.

📅 SQL Server Agent Job Manager

  • Creación, actualización y administración de SQL Jobs directamente desde Python.
  • Utilidad especialmente útil para entornos corporativos que ejecutan ETLs como tareas programadas.

📑 Logging persistente

  • Sistema de log en archivos .log y persistencia opcional en base de datos.
  • Integrado con JobExecution y JobExecutionLog.

Usage

Está pensada para ser utilizado como requisito en cualquier proyecto ETL en Python.

Support

Authors and acknowledgment

Lucas Frías (lucas.frias@roche.com) Uciel Bustamante (uciel.bustamante@contractors.roche.com)

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

roche_datachapter_team_lib-0.0.12.tar.gz (63.7 kB view details)

Uploaded Source

Built Distribution

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

roche_datachapter_team_lib-0.0.12-py3-none-any.whl (24.0 kB view details)

Uploaded Python 3

File details

Details for the file roche_datachapter_team_lib-0.0.12.tar.gz.

File metadata

File hashes

Hashes for roche_datachapter_team_lib-0.0.12.tar.gz
Algorithm Hash digest
SHA256 fa85f8fd155619ab51e3bbcee94d3c202ea670b6452b6ddffedcc1ab52bffd16
MD5 ad95a6581ef3c973f2c2de2c8108635d
BLAKE2b-256 509bd6fa1ba0fc913374ba1b07f6f4b4c64afd08bc2d819232988b898e2c0933

See more details on using hashes here.

File details

Details for the file roche_datachapter_team_lib-0.0.12-py3-none-any.whl.

File metadata

File hashes

Hashes for roche_datachapter_team_lib-0.0.12-py3-none-any.whl
Algorithm Hash digest
SHA256 9cf735af0027c74577eeff1fe5e324245b0158b25e1fa7efc1ecf3868354ca77
MD5 76c27f8472c97650cb8d6e17774e7172
BLAKE2b-256 c468e7d84eb437fda545c670cfc85530f8e904b089eed78295caaa240f69c453

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