variable#
- swordfish.variable(vars)#
Set variables with the provided values.
- Parameters:
vars (dict) – A dictionary where keys are variable names and values are the corresponding values to be set for those variables.
- Returns:
True if the variables were successfully set, False otherwise.
- Return type:
bool
Examples
>>> import swordfish as sf >>> vars_to_set = { ... "username": "john_doe", ... "age": 30, ... "is_admin": True, ... } >>> sf.variable(vars_to_set) True