Skip to content
Agents tracked: 506 Releases (7d): 634 Agent status: 3 with issuesSince last limit reset: Claude 15d · Codex 0d For AI agents: Markdown Updated Nov 26, 2026

asteval

Safe evaluator of Python expressions using AST, useful for controlled code execution.

Prompts, structured output and evalsPYPI

GitHubWebsite

1. License

License from PyPI license expression.

github.com/lmfit/asteval

From the package registry and GitHub, checked daily. Tap a verdict to see its source.How we checkedReport an error

What asteval does

Safe evaluator of Python expressions using AST, useful for controlled code execution.

asteval popularity

34 / 100
Gid Score, #3727 overall
1.9M
downloads a week, pypi
225
GitHub stars
1
agent projects use it
asteval: downloads per weekPyPI, asteval 1,875,117
asteval: GitHub starslmfit/asteval 225

Gid Score measures public popularity and activity, not quality. How the Gid Score is calculated

How asteval is used

  • asteval joined the catalog on its public numbers (1,919,259 downloads a week on PyPI and 225 GitHub stars), not on our project count: it is a dependency in 5 public GitHub projects of our scan, 1 of them set up for AI coding agents.
  • Projects that use it most often also use aiohttp (100.0%), attrs (100.0%), Beautiful Soup (100.0%).

Often used with

In 100.0% of its projects
In 100.0% of its projects
In 100.0% of its projects
In 100.0% of its projects
In 100.0% of its projects
In 100.0% of its projects
In 100.0% of its projects

More about asteval

More in Prompts, structured output and evals

Alternatives

asteval This page

MITGid 341.9M/wk

Compare asteval with another tool

Get started

Install it.

pip install asteval

No step-by-step start for asteval yet: we have not written its hand-checked card.