Create data loading pipeline script #65
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Create an orchestration script that fetches data from Toronto Open Data and Toronto Police APIs, loads it into PostgreSQL, and runs dbt to populate the mart tables.
Files to Create
scripts/data/load_toronto_data.pyscripts/data/__init__.pyScript Workflow
Fetch from APIs:
Load to Database:
Run dbt:
dbt runto transform staging → intermediate → martsdbt testAcceptance Criteria
python scripts/data/load_toronto_data.py--skip-fetchflag to only run dbt--skip-dbtflag to only load datamake load-dataTechnical Notes
portfolio_app/toronto/Labels: type:feature, component:backend, priority:high, tech:python, tech:dbt