{"categories":[{"label":"Mathematics","url":"https://skillfed.io/packages/category/scientific-engineering-mathematics/3"}],"enrichment":{"capability":"Parses and evaluates mathematical expressions from strings, supporting arithmetic, trigonometric, logarithmic functions, and variables with substitution and simplification.","skillfed_tags":["math-parser","expression-evaluator","formula-engine"],"use_cases":["Accept mathematical formulas from users in web forms or configuration files and compute results safely","Build spreadsheet-like applications where cells contain formulas referencing other cells","Implement rule engines or business logic systems that rely on user-defined mathematical conditions","Validate and simplify mathematical expressions in educational or scientific tools","Generate dynamic calculations in data processing pipelines where formulas are stored as strings"],"what_it_does":"py-expression-eval is a mathematical expression parser and evaluator ported from a JavaScript library. It takes mathematical expressions as strings and converts them into evaluable objects that can be computed with variable substitution. The library supports standard arithmetic operators, trigonometric and logarithmic functions, boolean logic, and constants like PI and E.\n\nYou create a Parser instance, call parse() on an expression string to get an Expression object, then evaluate() it with a dictionary of variable values. The library also offers simplification (reducing expressions algebraically), substitution (replacing variables with other expressions), and variable extraction. It's useful for applications that need to accept user-supplied or configuration-based mathematical formulas without executing arbitrary code.","worth_installing":"Yes, if you need a lightweight, dependency-free expression evaluator for a stable use case. The package is mature and has no known vulnerabilities. However, do not use it for new projects requiring active maintenance or support\u2014the repository is archived and the last commit was 2022-06-11. For actively maintained alternatives or complex symbolic math, consider other options."},"id":"py-expression-eval","links":{"html":"https://skillfed.io/packages/py-expression-eval","md":"https://skillfed.io/packages/py-expression-eval.md","pypi":"https://pypi.org/project/py-expression-eval/"},"maintenance":{"status":"abandoned"},"meta":{"latest_release":"2021-08-26","license_spdx":null,"license_treatment":"permissive","name":"py-expression-eval","python_support":"unspecified","summary":"Python Mathematical Expression Evaluator"},"popularity":{"monthly_downloads":150894,"position":10951,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.3.14"}
