How mubashirmian/etl-pipeline-airflow works
This repository contains two independent Airflow example workflows: a scheduled weather ETL that stores current conditions in PostgreSQL, and an astronaut example that fetches people in space and dynamically prints one result per person. The excerpts show each workflow’s task calls and external interactions. They do not show Airflow’s runtime internals, so the graph focuses on the declared task flow and its inputs and outputs.
Main entry points: exampledag.py Fetch astronauts · etlweather.py Extract weather
Components 10
Weather ETL
- Extract weather
dags/etlweather.py - Transform weather
dags/etlweather.py - Load weather
dags/etlweather.py
Astronaut example
- Fetch astronauts
dags/exampledag.py - Mapped print task
dags/exampledag.py - Current astronauts dataset
dags/exampledag.py
Other components
- Open-Meteo API
- PostgreSQL
- Open Notify API
- Task output
Connections 8
- Extract weather → Open-Meteo API: requests weather
dags/etlweather.py - Extract weather → Transform weather: passes data
dags/etlweather.py - Transform weather → Load weather: passes data
dags/etlweather.py - Load weather → PostgreSQL: writes rows
dags/etlweather.py - Fetch astronauts → Open Notify API: requests people
dags/exampledag.py - Fetch astronauts → Mapped print task: maps results
dags/exampledag.py - Mapped print task → Task output: prints details
dags/exampledag.py - Fetch astronauts → Current astronauts dataset: publishes dataset
dags/exampledag.py