Safe, minimalistic evaluator of python expression using ast module
asteval provides a numpy-aware, safe(ish) 'eval' function Emphasis is on mathematical expressions, and so numpy ufuncs are used if available. Symbols are held in the Interpreter symbol table 'symtable': a simple dictionary supporting a simple, flat namespace. Expressions can be compiled into ast node for later evaluation, using the values in the symbol table current at evaluation time.
$
pkg install py311-astevalOrigin
devel/py-asteval
Size
243KiB
License
MIT
Maintainer
yuri@FreeBSD.org
Dependencies
2 packages
Required by
1 packages