Comparison
asteval vs py-expression-eval vs simpleeval
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Safe, minimalistic evaluator of python expression using ast module
Maintained. Last release 3 months ago, commits in 11 of the last 26 weeks. Weaker on contributor spread.
$
pip install astevalPython Mathematical Expression Evaluator
Archived. The repository is read-only: no more fixes or releases will come.
$
pip install py-expression-evalA simple, safe single expression evaluator library.
Maintained. Last release 3 months ago, commits in 3 of the last 26 weeks. Weaker on commit activity and contributor spread.
$
pip install simpleevalIn short
- py-expression-eval is archived: avoid it for new projects.
- simpleeval is the most used: 11.8M downloads a month, 1.6× more than asteval.
- asteval is better maintained: Pythie’s Index 70 against 58.
- simpleeval is growing fastest: downloads +11% over the last month.
Side by side
| Metric | asteval | py-expression-eval | simpleeval |
|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 70 | Pythie’s Index: 4 | Pythie’s Index: 58 |
| Verdict | Maintained | Archived | Maintained |
| Downloads / month | 7.6M | 420.5K | 11.8M |
| Downloads, month over month | +6% | +99% | +11% |
| GitHub stars | 225 | 150 | 619 |
| Stars, last 7 days | – | – | – |
| Direct dependents | 100 | 17 | 190 |
| Last release | Aug 21, 2026 | Aug 26, 2021 | Sep 12, 2026 |
| Releases, 12 months | 3 | 0 | 5 |
| Weeks with commits | 11 / 26 | 0 / 26 | 3 / 26 |
| Recent contributors | 6 | 24 | 6 |
| First release | Apr 2012 | May 2014 | May 2014 |
| Python versions | 3.10 – 3.14 | 3.5 – 3.9 | – |
| License | MIT | MIT | MIT |
| Known vulnerabilities | None | None | None |
Bold marks the best value in each row. Pythie’s Index rates maintenance out of 100: how it works.