How abdulrahman2005-prog/egypt-weather-data-pipeline works
This is an end-to-end Cairo weather analytics pipeline: a scheduled Airflow DAG extracts historical observations, loads them into Snowflake, and runs dbt; a Streamlit dashboard presents daily and monthly insights from the analytical mart. The repository also contains a separate extraction script and an unrelated Airflow astronaut example. The DAG, extractor, loader, and dashboard excerpts establish their runtime behavior; dbt model relationships and the dashboard’s mart query are documented in the README, while dbt SQL was not sampled.
Main entry points: weather_pipeline.py Scheduled weather DAG · load_to_snowflake.py Snowflake loader · extract_weather.py Weather extraction · stg_cairo_weather.sql Staging model
Components 12
Orchestration
- Scheduled weather DAG
airflow/dags/weather_pipeline.py
Weather ingestion
- Weather extraction
airflow/include/extraction/extract_weather.py - Raw weather CSV
- Snowflake loader
airflow/include/load_to_snowflake.py - Staging table
- Raw weather table
- Standalone extractor
src/extraction/extract_weather.py
Analytics modeling
- Staging model
airflow/include/weather_analytics/models/staging/stg_cairo_weather.sql - Daily weather mart
airflow/include/weather_analytics/models/marts/mart_cairo_weather_daily.sql
Dashboard
- Weather dashboard
airflow/dags/dashboard/app.py
Other components
- Pipeline operator
- Open-Meteo API
Connections 13
- Pipeline operator → Scheduled weather DAG: triggers
README.md - Scheduled weather DAG → Weather extraction: runs
airflow/dags/weather_pipeline.py - Scheduled weather DAG → Snowflake loader: runs
airflow/dags/weather_pipeline.py - Scheduled weather DAG → Staging model: builds models
airflow/dags/weather_pipeline.py - Weather extraction → Open-Meteo API: requests weather
airflow/include/extraction/extract_weather.py - Weather extraction → Raw weather CSV: writes
airflow/include/extraction/extract_weather.py - Snowflake loader → Raw weather CSV: reads
airflow/include/load_to_snowflake.py - Snowflake loader → Staging table: loads rows
airflow/include/load_to_snowflake.py - Snowflake loader → Raw weather table: merges rows
airflow/include/load_to_snowflake.py - Staging model → Raw weather table: transforms from
README.md - Daily weather mart → Staging model: builds on
README.md - Weather dashboard → Daily weather mart: queries
README.md - Pipeline operator → Weather dashboard: views insights
README.md