Comparison
asteval vs leval 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 astevalLimited evaluator
Maintained. Last release 4 months ago, commits in 1 of the last 26 weeks. Weaker on commit activity and release cadence.
$
pip install levalA 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
- 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 | leval | simpleeval |
|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 70 | 43 |