#safeeval — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #safeeval, aggregated by home.social.
-
I just pushed v0.8.1 of plusminus, a pure Python eval-safe and DoS-resistant parser/evaluator of arithmetic expressions. Parses a superset of Python expressions, including |x| for absolute value, √ for square root, ! for factorial, superscripts for exponents and roots, postfix ° for degree-radian conversion, Unicode operators × ÷ ≠ ≤ ∧ ∨ ∩ ∪ ∆ ∈ ∉. Extensible to custom domain-specific arithmetic. Live demo and links at https://ptmcg.pythonanywhere.com/plusminus #python #safeeval #plusminus