{"id":1905,"library":"apache-airflow-providers-standard","title":"Apache Airflow Standard Providers","description":"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.","status":"active","version":"1.12.2","language":"en","source_language":"en","source_url":"https://github.com/apache/airflow/tree/main/airflow/providers/standard","tags":["airflow","provider","standard","operator","hook","sensor"],"install":[{"cmd":"pip install apache-airflow-providers-standard","lang":"bash","label":"Install latest version"}],"dependencies":[{"reason":"Minimum required Airflow version for this provider.","package":"apache-airflow","optional":false},{"reason":"Required for `common.compat` extra, which provides compatibility shims.","package":"apache-airflow-providers-common-compat","optional":true},{"reason":"Required for `openlineage` extra functionality.","package":"apache-airflow-providers-openlineage","optional":true}],"imports":[{"note":"Common operators previously in Airflow core moved to `airflow.providers.standard` in Airflow 2+.","wrong":"from airflow.operators.python import PythonOperator","symbol":"PythonOperator","correct":"from airflow.providers.standard.operators.python import PythonOperator"},{"note":"Common operators previously in Airflow core moved to `airflow.providers.standard` in Airflow 2+.","wrong":"from airflow.operators.datetime import BranchDateTimeOperator","symbol":"BranchDateTimeOperator","correct":"from airflow.providers.standard.operators.datetime import BranchDateTimeOperator"},{"note":"This operator was moved to the standard provider as part of modularization.","wrong":"from airflow.operators.latest_only import LatestOnlyOperator","symbol":"LatestOnlyOperator","correct":"from airflow.providers.standard.operators.latest_only import LatestOnlyOperator"},{"note":"This sensor was moved to the standard provider as part of modularization.","wrong":"from airflow.sensors.external_task import ExternalTaskSensor","symbol":"ExternalTaskSensor","correct":"from airflow.providers.standard.sensors.external_task import ExternalTaskSensor"}],"quickstart":{"code":"from __future__ import annotations\n\nimport pendulum\n\nfrom airflow.models.dag import DAG\nfrom airflow.providers.standard.operators.python import PythonOperator\n\ndef _print_hello():\n    print(\"Hello from Apache Airflow Standard Providers!\")\n\nwith DAG(\n    dag_id=\"standard_provider_quickstart\",\n    start_date=pendulum.datetime(2023, 1, 1, tz=\"UTC\"),\n    schedule=None,\n    catchup=False,\n    tags=[\"example\", \"standard\", \"provider\"],\n) as dag:\n    greet_task = PythonOperator(\n        task_id=\"greet_with_standard_python_operator\",\n        python_callable=_print_hello,\n    )\n","lang":"python","description":"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."},"warnings":[{"fix":"Update import statements to use the `airflow.providers.standard` path, e.g., `from airflow.providers.standard.operators.python import PythonOperator`.","message":"When upgrading to Airflow 3.x, many core operators and hooks (e.g., `PythonOperator`, `BaseHook`) were moved from `airflow.operators` or `airflow.sensors` directly into specific provider packages, including `apache-airflow-providers-standard`. This requires updating import paths in existing DAGs.","severity":"breaking","affected_versions":"Airflow 3.x and above (for DAGs migrating from Airflow 2.x)"},{"fix":"Upgrade Python environment to 3.10, 3.11, 3.12, 3.13, or 3.14.","message":"Support for Python 3.9 was dropped in `apache-airflow-providers-standard` version 1.4.0. Users on Python 3.9 must upgrade their Python environment to `3.10` or newer to use current provider versions.","severity":"breaking","affected_versions":"1.4.0 and above"},{"fix":"Use the Airflow Python Client for programmatic interaction with Airflow resources or utilize `DbApiHook` (e.g., `PostgresHook`, `MySqlHook`) if direct database interaction is essential for external systems.","message":"In Airflow 3.x, custom operators cannot access the Airflow metadata database directly using database sessions. This change improves security and maintainability.","severity":"deprecated","affected_versions":"Airflow 3.x and above"},{"fix":"Ensure your Apache Airflow core installation is version 2.11.0 or newer before installing this provider package.","message":"The minimum Apache Airflow version supported by this provider is 2.11.0. Installing this provider on older Airflow versions may lead to compatibility issues or automatic, potentially breaking, upgrades of the `apache-airflow` package.","severity":"gotcha","affected_versions":"<1.12.2 (for provider), <2.11.0 (for Airflow core)"}],"env_vars":null,"last_verified":"2026-04-09T00:00:00.000Z","next_check":"2026-07-08T00:00:00.000Z"}