simpleeval icon indicating copy to clipboard operation
simpleeval copied to clipboard

Simple Safe Sandboxed Extensible Expression Evaluator for Python

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

Last activity in the repo was more than 1 year ago. Is there any plans to fix current issues and make new release? For example, there are two merge requests...

Bumps [black](https://github.com/psf/black) from 23.1.0 to 24.3.0. Release notes Sourced from black's releases. 24.3.0 Highlights This release is a milestone: it fixes Black's first CVE security vulnerability. If you run Black...

dependencies

If any of the supplied objects has a coroutine method or generator method, it's possible to run arbitrary code by supplying a specially crafted expression string. Here's an example that...

`simpleeval.simple_eval('(Age_21 == True) and (asdfasdfs == False)', names={'Age_21': 21}` The above ends without raising exception with a `False`. Replacing `and` with `or` does raise an exception

# Description * Adapted code for future removal of `ast.Num`, `ast.Str` and `ast.NameConstant` * Added tests for stable Python 3.12, alpha 3.13, as well as pypy 3.9 and 3.10 *...

I love what this library does but I have a bit of an issue. I have a use-case where I need to "evaluate" the same user-defined expression in a fast...

enhancement
question

# Description _What is this PR doing?_ Fixing README typos: there is ```MAX_POWER``` in the source code not ```POWER_MAX```. # Pre-approval checklist (for submitter) _Please complete these steps_ - [x]...

# Description _What is this PR doing?_ Adding support for DictComprehensions to `EvalWithCompoundTypes`. Addresses #57. # Pre-approval checklist (for submitter) _Please complete these steps_ - [x] Passes tests - [x]...

simpleeval tries to guess a node is an iterable by looking at the presence of `__len__`, but this is not enough to determine if the result will be unsave. it...

i need help if possible on some project i'm working on, i wanna intercept the evaluation of each math operation of the expression gaven and add "if conditions" to run...