pydantic

pydantic / monty

#2
2,69868+456 todayRust

A minimal, secure Python interpreter written in Rust for use by AI

📖 README

MontyA minimal, secure Python interpreter written in Rust for use by AI.---Experimental - This project is still in development, and not ready for the prime time.A minimal, secure Python interpreter written in Rust for use by AI.Monty avoids the cost, latency, complexity and general faff of using a full container based sandbox for running LLM generated code.Instead, it lets you safely run Python code written by an LLM embedded in your agent, with startup times measured in single digit microseconds not hundreds of milliseconds.What Monty can do: Run a reasonable subset of Python code - enough for your agent to express what it wants to do Completely block access to the host environment: filesystem, env variables and network access are all implemented via external function calls the developer can control Call functions on the host - only functions you give it access to Run typechecking - monty supports full modern python type hints and comes with ty included in a single binary to run typec...

📊 Project Info

Language
Rust
Stars
2,698
Forks
68
Today
+456
Ranking
#2
Collection
Overall
Trending Date
February 8, 2026
Last Push
2/8/2026