How lsruaro/projeto-dados-cvm works
This is a CVM financial-statements ETL pipeline: it downloads and extracts annual DFP archives, consolidates and standardizes four statement datasets, then upserts them into PostgreSQL staging tables for downstream analysis. The graph separates acquisition, preparation, and staging/consumption. A validation notebook is also documented; its internal implementation was not sampled, so its relationship is based on the README.
Main entry points: download_dfp.py Download and extract · load_stg.py ETL and upsert · analise_processed_csv.ipynb Data validation
Components 12
Data acquisition
- Download and extract
download_dfp.py - ZIP archives
- Annual raw CSVs
Data preparation
- ETL and upsert
load_stg.py - Annual CSV reader
load_stg.py - Statement standardizer
load_stg.py - Processed CSVs
Staging and use
- PostgreSQL staging
- Data validation
notebooks/analise_processed_csv.ipynb
Other components
- Pipeline operator
- CVM portal
- Analysis consumers
Connections 13
- Pipeline operator → Download and extract: runs
README.md - Pipeline operator → ETL and upsert: runs
README.md - Download and extract → CVM portal: downloads archives
download_dfp.py - Download and extract → ZIP archives: saves ZIPs
download_dfp.py - Download and extract → Annual raw CSVs: extracts files
download_dfp.py - ETL and upsert → Annual CSV reader: invokes
load_stg.py - Annual CSV reader → Annual raw CSVs: reads annual files
load_stg.py - ETL and upsert → Statement standardizer: applies
load_stg.py - Statement standardizer → Processed CSVs: writes consolidated CSVs
load_stg.py - ETL and upsert → PostgreSQL staging: upserts statements
load_stg.py - Data validation → Processed CSVs: validates data
README.md - Data validation → PostgreSQL staging: checks staging coverage
README.md - PostgreSQL staging → Analysis consumers: supplies staging data
README.md