ast_math_eval

PlasmaCalcs.tools.math.ast_math_eval(expr)

evaluate a string math expression using ast. (only accepts numbers & math operations.)

This is safe because it uses ast; it does not ever use the unsafe eval() command.