safe_eval

typhon.utils.safe_eval(expr)[source]

Safely evaluate string that may contain basic arithmetic