How soumadriano/trabalho-final-t5 works
This is a Python/PostgreSQL ETL pipeline for federal business-travel data. Its main workflow downloads and preserves four CSV datasets in Raw, converts and loads them into relational Silver tables, then uses a notebook to create Gold aggregates and answer business questions with charts. The graph includes the documented schema and analysis capabilities; notebook and SQL internals were not sampled, so those relationships are based on the README.
Main entry points: 2_transformar.py Clean and type · 1_extrair.py Download and load · 0_criar_banco.sql Silver tables · banco.py PostgreSQL connection
Components 12
Extraction and Raw
- Download and load
1_extrair.py - Raw tables
0_criar_banco.sql
Silver Transformation
- Clean and type
2_transformar.py - Silver tables
0_criar_banco.sql
Gold Analysis
- Gold tables and views
3_analise.ipynb - Business questions
3_analise.ipynb - Charts and results
3_analise.ipynb
Shared Infrastructure
- Database schema
0_criar_banco.sql - PostgreSQL connection
banco.py - Runtime configuration
config.py
Other components
- Travel data source
- Google Drive
Connections 15
- Travel data source → Google Drive: publishes data
README.md - Google Drive → Download and load: provides ZIP
1_extrair.py - Download and load → Raw tables: loads CSVs
1_extrair.py - Database schema → Raw tables: defines tables
README.md - Database schema → Silver tables: defines tables
README.md - Download and load → PostgreSQL connection: connects via
1_extrair.py - Clean and type → Raw tables: reads blocks
2_transformar.py - Clean and type → Silver tables: converts and loads
2_transformar.py - Clean and type → PostgreSQL connection: connects via
2_transformar.py - Silver tables → Gold tables and views: aggregates from
README.md - Gold tables and views → Business questions: answers
README.md - Business questions → Charts and results: visualizes results
README.md - PostgreSQL connection → Runtime configuration: reads credentials
banco.py - Download and load → Runtime configuration: reads settings
1_extrair.py - Clean and type → Runtime configuration: reads batch size
2_transformar.py