Ross ROSS = Recommend OSS · open-source software intelligence for agents

pydantic/monty

A minimal, secure Python interpreter written in Rust for use by AI observed · 2026-08-28

github.com/pydantic/monty · Rust · MIT (permissive) 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

Full methodology

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

Member repositories

RepositoryRoleHealth v2
pydantic/montymain95

For agents

markdown · JSON · MCP: product_card(name="pydantic/monty")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem