dicfg.addons.math.safe_eval#

safe_eval(expr)[source]#

Safely evaluate a math expression from a string. Only allows basic arithmetic operations.