Lucas
09/03/2024, 5:58 PMChris White
from prefect.variables import Variable
var = Variable.set(name="test", value=dict(x=42))
var_value = Variable.get("test") # returns the dictionary
^^^ this code is valid in 3.0+, for 2.x the value is required to be a string (so maybe the output of json.dumps
)Lucas
09/03/2024, 6:05 PM