How ali-ahmed-farag/depi-data-engineering-graduation-project works
This platform collects Metro prices, currency/gold rates, and economic indicators, then preserves raw responses, rebuilds cleaned staging data, checks quality, loads a historical warehouse, and serves analytics through an API and Grafana. Airflow schedules the source pipelines and records run and quality outcomes. The graph retains the four source-specific schedules and the distinct connector, raw, staging, quality, warehouse, and serving responsibilities. Some SQL load details and dashboard/API query implementations were not sampled; those relationships are shown only where the README documents them.
Main entry points: pipeline.py Pipeline runner · static_site.py Metro scraper · base.py Connector contract · official_file.py CBE file connector
Components 27
Scheduled ingestion
- FX gold schedule
dags/fx_gold_daily.py - Metro schedule
dags/metro_daily.py - CBE schedule
dags/official_file_monthly.py - World Bank schedule
dags/world_bank_weekly.py - Pipeline runner
src/common/pipeline.py
Connectors and raw
- Connector contract
src/connectors/base.py - FX gold connector
src/connectors/fx_gold.py - Metro scraper
src/connectors/static_site.py - CBE file connector
src/connectors/official_file.py - World Bank connector
src/connectors/world_bank.py - Raw persistence
src/common/raw_store.py
Staging and quality
- Shared cleaning
src/common/cleaning.py - API staging
src/transform/api_staging.py - Metro staging
src/transform/static_site_staging.py - CBE staging
src/transform/official_staging.py - Quality checks
src/quality/checks.py
Warehouse and operations
- Raw schema
sql/20_raw.sql - Staging schema
sql/30_staging.sql - Star warehouse
sql/40_dwh.sql - Serving views
sql/60_serving.sql - Run and quality logs
src/common/ops_log.py
Analytics access
- REST API
api/main.py - Grafana dashboards
grafana/dashboards
Other components
- Currency API
- Metro shop
- CBE workbook
- World Bank API
Connections 38
- FX gold schedule → Pipeline runner: builds schedule
dags/fx_gold_daily.py - Metro schedule → Pipeline runner: builds schedule
dags/metro_daily.py - CBE schedule → Pipeline runner: builds schedule
dags/official_file_monthly.py - World Bank schedule → Pipeline runner: builds schedule
dags/world_bank_weekly.py - Pipeline runner → Run and quality logs: logs runs
src/common/pipeline.py - Pipeline runner → Quality checks: runs checks
src/common/pipeline.py - FX gold schedule → FX gold connector: dispatches
dags/fx_gold_daily.py - Metro schedule → Metro scraper: dispatches
dags/metro_daily.py - CBE schedule → CBE file connector: dispatches
dags/official_file_monthly.py - World Bank schedule → World Bank connector: dispatches
dags/world_bank_weekly.py - FX gold connector → Currency API: fetches from
src/connectors/fx_gold.py - World Bank connector → World Bank API: fetches from
src/connectors/world_bank.py - Metro scraper → Metro shop: scrapes
README.md - CBE file connector → CBE workbook: reads workbook
README.md - FX gold connector → Connector contract: implements
src/connectors/fx_gold.py - Metro scraper → Connector contract: implements
src/connectors/static_site.py - CBE file connector → Connector contract: implements
src/connectors/official_file.py - World Bank connector → Connector contract: implements
src/connectors/world_bank.py - Connector contract → Raw persistence: stores responses
src/connectors/base.py - Metro scraper → Raw persistence: stores pages
src/connectors/static_site.py - CBE file connector → Raw persistence: registers file
src/connectors/official_file.py - Metro scraper → Shared cleaning: normalizes text
src/connectors/static_site.py - API staging → Raw schema: reads payloads
src/transform/api_staging.py - Metro staging → Raw schema: reads pages
src/transform/static_site_staging.py - CBE staging → Raw schema: reads files
src/transform/official_staging.py - API staging → Staging schema: rebuilds rows
src/transform/api_staging.py - Metro staging → Staging schema: rebuilds rows
src/transform/static_site_staging.py - CBE staging → Staging schema: loads indicators
src/transform/official_staging.py - Pipeline runner → API staging: calls staging
src/common/pipeline.py - Pipeline runner → Metro staging: calls staging
src/common/pipeline.py - Pipeline runner → CBE staging: calls staging
src/common/pipeline.py - Quality checks → Staging schema: checks rows
src/quality/checks.py - Quality checks → Run and quality logs: records results
src/quality/checks.py - Pipeline runner → Star warehouse: loads warehouse
README.md - Star warehouse → Serving views: feeds views
README.md - REST API → Serving views: reads views
README.md - Grafana dashboards → Serving views: reads analytics
README.md - Grafana dashboards → Run and quality logs: shows monitoring
README.md