Airflow utilities for configuration of many DAGs and DAG environments
Actively maintained. Last release 2 weeks ago, commits in 20 of the last 26 weeks. A safe choice.
$
pip install airflow-configREADME as published on PyPI with version 1.13.0.
airflow-config
Declarative Apache Airflow DAGs from Hydra YAML and airflow-pydantic models.
# config/pipeline.yaml
# @package _global_
_target_: airflow_config.Configuration
dags:
daily-report:
schedule: "0 6 * * *"
start_date: "2025-01-01"
catchup: false
tasks:
report:
_target_: airflow_config.BashTask
bash_command: python /opt/jobs/report.py
from airflow_config import load_config
config = load_config("config", "pipeline")
config.generate_in_mem()
Configuration can provide shared defaults, environment overrides, templates, extensions, generated Python DAG files, or in-memory DAG registration.
Documentation
- Tutorial: generate a DAG from YAML
- How-to guides
- Why configuration and DAG models are separate
- API reference
Published documentation is available at airflow-laminar.github.io/airflow-config.