Documentation
Sandboxed Python interpreter for Dart and Flutter. Run Python from native, web, and mobile — one package, every platform.
Looking for a quick taste? Try the live REPL or the agent demo. For the API at a glance, see User Guide → API Reference.
User Guide
Practical, task-oriented docs for adding dart_monty to a project.
- Installation — Add to your
pubspec.yaml - Deployment — Native and web deployment notes
- REPL — Stateful interactive execution
- Extensions — Template, MessageBus, Sandbox
- API Reference — Method-by-method summary
Tutorials
Walkthroughs that build something real, step by step.
- Host Functions Intro
- Host Functions Beginner
- Host Functions Intermediate
- Host Functions Advanced
- Bridge Middleware
- LLM Prompt Rules
Deep Dives
How the package works under the hood.
- Architecture Overview
- Sandbox Architecture
- OsCall / VFS Layer
- Error Hierarchy
- Extension System
- Bridge Concurrency
Technical Reference
Source-of-truth references for the internal contract surface.
- Native Crate (Rust)
- Monty Rust API
- FFI Handle Lifecycle
- Bridge Integration
- Internals
- API Coverage Plan
Contributing
For LLMs
A machine-readable index of this site is available at
/llms.txt — see llmstxt.org for the
spec.
Source
Source lives at github.com/runyaga/dart_monty.
The companion package
dart_monty_core
ships the low-level FFI/WASM bindings.