FICHA · MANJARO

python-pure-eval

Safely evaluate AST nodes without side effects

  • Library
  • Dev
  • SECURITY
  • Dependency only
official+codex · reviewed · May 28, 2026 description in en

Description

Evaluates selected Python AST nodes without executing arbitrary side effects. It helps debuggers, notebooks, and inspection tools show useful expression values while reducing the risk of running user code.

It is safer than general eval, but safety still depends on supported nodes and caller assumptions. Do not use it as the only protection around untrusted code execution.

Permissions

Permissions not analysed for this source yet.