airflow.providers.standard.example_dags.example_python_operator¶
### Python operators
Example DAG demonstrating classic Python operators.
This DAG shows several ways to execute Python callables in Airflow: PythonOperator for regular Python functions, PythonVirtualenvOperator for functions that need an isolated virtual environment, and ExternalPythonOperator for running a callable with a specific Python binary.
It also demonstrates passing keyword arguments, rendering templated files, and using asynchronous Python callables.
See also: https://airflow.apache.org/docs/apache-airflow-providers-standard/stable/operators/python.html
Attributes¶
Functions¶
|
Print the Airflow context and ds variable from the context. |