pydantic-monty
A minimal, secure Python interpreter written in Rust for use by AI
A minimal, secure Python interpreter written in Rust for use by AI
To install this package, run one of the following:
A minimal, secure Python interpreter written in Rust for use by AI. Monty avoids the cost, latency, complexity and general faff of using full container based sandbox for running LLM generated code. Instead, it let's you run safely run Python code written by an LLM embedded in your agent, with startup times measured in single digit microseconds not hundreds of milliseconds.
Summary
A minimal, secure Python interpreter written in Rust for use by AI
Last Updated
Apr 23, 2026 at 02:23
License
MIT
Supported Platforms
GitHub Repository
https://github.com/pydantic/monty