pydantic/monty
A minimal, secure Python interpreter written in Rust for use by AI observed · 2026-08-28
Health v2 · maintenance only
95/100
- Activity 99
- Release rhythm 96
- Longevity 85
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 3.0
- age_days: 1193
- days_rel: 24
- days_push: 7
- n_releases_24m: 21
Adoption not part of the score
8113 stars · 410 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Monty is a minimal, secure Python interpreter written in Rust designed for safely executing LLM-generated code without container-based sandboxes. It blocks host access by default, supports snapshotting interpreter state, and can be called from Rust, Python, or JavaScript with sub-microsecond startup.
Use cases
- safely run python code generated by an llm
- sandbox untrusted python code without docker containers
- embed a python interpreter in a rust application
- pause and resume python execution from a snapshot
- typecheck llm-written python code
- give ai agents controlled access to host functions
When to choose
- you need to execute LLM-generated Python with minimal latency and no container overhead
- you want strict control over filesystem, network, and environment access from executed code
- you need to snapshot and resume interpreter state across requests or processes
When to avoid
- you need full CPython compatibility or arbitrary third-party Python packages
- you need a production-grade, stable interpreter for general-purpose Python workloads
- your code depends on C extensions or native modules
Facets
library · maturity experimental
interpreter security llm-inference agent-framework sdk programming-languages artificial-intelligence security developer-tools rust python cross-platform sandboxed-python llm-code-execution microsecond-startup snapshotable embedded-interpreter no-container-sandbox sandbox interpreters ai-agents nodejs
2 sources
- readme: https://github.com/pydantic/monty · fetched 2026-08-28 · 4fed534526ac
- registry_crates: https://crates.io/api/v1/crates/monty · fetched 2026-08-29 · 9e28c45c2287
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| pydantic/monty | main | 95 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem