Skip to main content

Module python_safety

Module python_safety 

Source
Expand description

Heuristic safety analysis for inline Python source code.

Scans for dangerous imports, builtins, and attribute accesses. Returns true if no dangerous patterns are found.

Functions§

is_python_source_safe
Check whether inline Python source appears safe to execute.