GenPark In-Process Python REPL

•
8
•

Executes Python code in an isolated, in-process REPL environment with robust output capture and built-in safety restrictions.

This tool provides an in-process Python REPL executor designed for AI agents, offering a secure and controlled environment for code execution. It features isolated namespaces to prevent memory contamination, stateful continuity for multi-turn interactions, and comprehensive capture of stdout/stderr. With a built-in restrictor for safe builtins and runtime variable introspection, it ensures predictable and secure execution of agent-generated Python code without external dependencies.

주요 기능

01Safe Builtins Restrictor: Limits available builtins for enhanced security.
028 GitHub stars
03In-Process Isolation: Clean globals separation preventing contamination of agent memory.
04Stdout/Stderr Capture: Redirects and captures all execution output.
05Stateful Continuity: Carry forward variables and data across multi-turn REPL steps.
06Zero Dependencies: Pure Python standard library.

사용 사례

01Providing secure, in-process code evaluation for AI applications requiring Python scripting.
02Maintaining and inspecting runtime state for multi-turn agent interactions.
03Safely executing AI agent-generated Python code within a controlled sandbox.