JVParser is a python module created to be able to calculate mathematical expressions in form of a string like those of an eval function without importing any additional module.
Extract the archive and point to the location of setup.py and then execute the code below.
juan@juan-desktop:~/jvparser-1.3$ python3 setup.py install
>>> from jvparser.jvparser import solveIt
>>> math_exp = '4+5*2-3'
>>> data = solveIt(math_exp)
>>> print(data)
11.0
Please find the license.txt file.
- E-mail 2: jestoy.olazo@gmail.com