simpleeval icon indicating copy to clipboard operation
simpleeval copied to clipboard

Simple Safe Sandboxed Extensible Expression Evaluator for Python

Results 34 simpleeval issues
Sort by recently updated
recently updated
newest added

pypa/build is one possible build tool, but not the only build tool. Forcing build to be present as a build dependency is meaningless: either the user is using build so...

I need an expression evaluator that will generate the proper evaluation sequence in RPN for further processing into server side function calls. Is this possible with simpleeval or could it...

Can simpleeval return a function object to be evaluated later, perhaps repeatedly, based on current values of component functions and arguments? If not, is this a relatively easy enhancement? Thanks.

Such code is not support by `EvalWithCompoundTypes` ``` {i:i for i in range(3)} ``` Basically, it is should be easy to support such functionality with something like that https://github.com/Reskov/simpleeval/commit/695bb684fff24af7eab47505f8438261911f109b I...

If you want to disallow function calls entirely, using an empty dict now works. Same for operators and names. NB: Python3 doesn't let you remove True/False/None because these are now...

# Description - Split 'parse' stage to separate method - allow previously_parsed in 'eval' - Warn if multiple expressions. This allows AST caching as in #85, #60 etc - but...

enhancement

# Description - Better handling of empty strings passed as input. - Fix the shift safe number issue from 0.9.12 - More minor pylint / etc fixes / cleanups (general...

next release

When giving simpleeval an empty string it raises this error: Traceback (most recent call last): ``` Traceback (most recent call last): File "simpleeval.py", line 613, in simple_eval return s.eval(expr) File...

Here is the simplest example: ``` from simpleeval import SimpleEval def variables_resolver(node): raise KeyError expr_evaluator = SimpleEval() expr_evaluator.names = variables_resolver expr_evaluator.eval("test") ``` Output: ``` simpleeval.NameNotDefined: 'test' is not defined for...

probably fixed
next release

This lib claims: > Simple **Safe** Sandboxed Extensible Expression Evaluator So it must be secure by default. But it is not possible to make it secure in presence of such...

question