Introduction to Apache Airflow in Python
Mike Metzger
Data Engineer
Dag, or Directed Acyclic Graph:


Example Dag (Taskflow API):
from airflow.sdk import dagfrom pendulum import datetime @dag( dag_id='etl_workflow', email='[email protected]', start_date=datetime(2026, 3, 15, tz="UTC") )def etl_workflow(): ...etl_workflow()
airflow command line contains many subcommandsairflow -h - help and subcommand descriptions
Dag subcommands
airflow dags list - show all recognized Dagsairflow dags reserialize - force Airflow to reload Dag filesairflow tasks test - run a specific taskUse the command line tool to:

Use Python to:

Introduction to Apache Airflow in Python