dj_angles.evaluator¶
Module Contents¶
- dj_angles.evaluator.logger¶
- dj_angles.evaluator.eval_value(value)¶
Uses ast.literal_eval to parse strings into an appropriate Python primitive.
Also returns an appropriate object for strings that look like they represent datetime, date, time, duration, or UUID.
- dj_angles.evaluator.eval_function(function_string: str) EvaluatedFunction ¶
Parses the method name from a string into a set of parameters to pass to a method.
- Parameters:
function_string (param) – String representation of a method name with parameters, e.g. “set_name(‘Bob’)”
- Returns:
Tuple of method_name, a list of arguments and a dict of keyword arguments.