from airflow.models import Variable # set a variable Variable.set("my_variable", "my_value") # get a variable my_value = Variable.get("my_variable") print(my_value)
import airflow print(airflow.__version__)This will print the current version of the Python Airflow package that is installed.