Once you instantiatedParserclass, you can createExpressionobject usingparsemethod: ```python >parser.parse('2 * 3') Out:<py_expression_eval.Expressioninstanceat0x7f40cc4e5ef0> ``` Parser.Expression evaluate()takes a dictionary with variables as a parameter and returns the value of the express...
pip install py_expression_eval Tests python setup.py test Documentation All the classes and methods ofpy-expression-evalwere written as similar as possible to their analogues fromjs-expression-evalto make it easier to use for validation on back-end side. ...
Once you instantiatedParserclass, you can createExpressionobject usingparsemethod: >parser.parse('2 * 3')Out:<py_expression_eval.Expressioninstanceat0x7f40cc4e5ef0> Parser.Expression evaluate()takes a dictionary with variables as a parameter and returns the value of the expression: ...