pydantic

pydantic / monty

#2
2,69868+456 todayRust

一个用Rust编写的极简安全Python解释器,专为人工智能应用设计

📖 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...

📊 项目信息

语言
Rust
Stars
2,698
Forks
68
今日新增
+456
排名
#2
收录
总榜
趋势日期
2026年2月8日
最后推送
2026/2/8