Safe Python Expression Evaluator

JSON →
library 1.0.8 ·python
verified May 20, 2026

asteval provides a safe, minimalistic, and flexible Python expression evaluator built on the Abstract Syntax Tree (AST) module. It is designed to evaluate untrusted code within a sandboxed environment, offering fine-grained control over available symbols and operations. The current version is 1.0.8, with a development cadence focused on security enhancements, bug fixes, and supporting newer Python versions.

total hits 24
actors 7 distinct systems
last hit 11h ago AhrefsBot
ByteDance
3
GPTBot
2
Script
2
ChatGPT-User
2
Humans
4

top countries 🇩🇪 Germany · 🇸🇬 Singapore · 🇺🇸 United States · 🇫🇷 France · 🇫🇮 Finland