Airflow Summit 2025 is coming October 07-09. Register now to secure your spot!

airflow.providers.standard.decorators.bash

Functions

bash_task([python_callable])

Wrap a function into a BashOperator.

Module Contents

airflow.providers.standard.decorators.bash.bash_task(python_callable=None, **kwargs)[source]

Wrap a function into a BashOperator.

Accepts kwargs for operator kwargs. Can be reused in a single DAG. This function is only used only used during type checking or auto-completion.

Parameters:

python_callable (collections.abc.Callable | None) – Function to decorate.

Was this entry helpful?