Apache Airflow Standard Providers

1.12.2 · active · verified Thu Apr 09

This package provides "standard" operators, hooks, and sensors for Apache Airflow. It extends the core Airflow functionality with common components that were historically part of the main `apache-airflow` package before the modularization introduced in Airflow 2.0. The current version is 1.12.2, and providers are released and versioned independently from Airflow core following a Semver scheme, often with more frequent releases than Airflow itself.

Warnings

Install

Imports

Quickstart

This example demonstrates a basic Airflow DAG using the `PythonOperator` provided by the `apache-airflow-providers-standard` package. Ensure you have Apache Airflow installed (`apache-airflow>=2.11.0`) and then install this provider package. The `PythonOperator` allows you to execute an arbitrary Python callable as an Airflow task.

from __future__ import annotations

import pendulum

from airflow.models.dag import DAG
from airflow.providers.standard.operators.python import PythonOperator

def _print_hello():
    print("Hello from Apache Airflow Standard Providers!")

with DAG(
    dag_id="standard_provider_quickstart",
    start_date=pendulum.datetime(2023, 1, 1, tz="UTC"),
    schedule=None,
    catchup=False,
    tags=["example", "standard", "provider"],
) as dag:
    greet_task = PythonOperator(
        task_id="greet_with_standard_python_operator",
        python_callable=_print_hello,
    )

view raw JSON →