# Monty ## Docs - [Error Classes](https://mintlify.wiki/pydantic/monty/api/js/errors.md): Exception handling with MontySyntaxError, MontyRuntimeError, and MontyTypingError - [Monty Class](https://mintlify.wiki/pydantic/monty/api/js/monty.md): Core Monty interpreter class for parsing and executing Python code - [Resource Limits](https://mintlify.wiki/pydantic/monty/api/js/resource-limits.md): Configure resource limits to sandbox Python code execution - [Snapshots](https://mintlify.wiki/pydantic/monty/api/js/snapshots.md): Iterative execution control with MontySnapshot and MontyComplete - [Errors](https://mintlify.wiki/pydantic/monty/api/python/errors.md): Exception types raised by Monty during parsing and execution - [Monty](https://mintlify.wiki/pydantic/monty/api/python/monty.md): Core Monty class for parsing and executing sandboxed Python code - [ResourceLimits](https://mintlify.wiki/pydantic/monty/api/python/resource-limits.md): Configuration for resource limits during code execution - [Snapshots](https://mintlify.wiki/pydantic/monty/api/python/snapshots.md): Classes for iterative execution and resuming paused code - [Heap & Resource Management](https://mintlify.wiki/pydantic/monty/api/rust/heap.md): Key heap-related types and traits for memory management - [MontyRun](https://mintlify.wiki/pydantic/monty/api/rust/monty-run.md): Primary interface for running Monty code - [Value & MontyObject](https://mintlify.wiki/pydantic/monty/api/rust/value.md): Primary value types representing Python objects at runtime - [Execution Modes](https://mintlify.wiki/pydantic/monty/concepts/execution-modes.md): Learn about Monty's two execution modes - simple run() and iterative start()/resume() - [Resource Limits](https://mintlify.wiki/pydantic/monty/concepts/resource-limits.md): Configure memory, time, allocation, and recursion limits to prevent DoS attacks - [Security Model](https://mintlify.wiki/pydantic/monty/concepts/security.md): Understand Monty's sandbox isolation, security guarantees, and threat model - [Serialization](https://mintlify.wiki/pydantic/monty/concepts/serialization.md): Serialize and restore Monty instances and execution snapshots - [Agent Code Mode](https://mintlify.wiki/pydantic/monty/examples/agent-code-mode.md): Why LLMs writing code is better than traditional tool calling - [Data Analysis](https://mintlify.wiki/pydantic/monty/examples/data-analysis.md): Analyze team expenses with async tool calls and loop-based data processing - [PydanticAI Integration](https://mintlify.wiki/pydantic/monty/examples/pydantic-ai.md): Use Monty to power code-mode in PydanticAI agents for faster, more reliable tool execution - [Building a Simple Agent](https://mintlify.wiki/pydantic/monty/examples/simple-agent.md): Learn how to build a basic agent with Monty that makes iterative LLM calls - [SQL Playground](https://mintlify.wiki/pydantic/monty/examples/sql-playground.md): Query CSV files with SQL and analyze sentiment from JSON data - [Web Scraper](https://mintlify.wiki/pydantic/monty/examples/web-scraper.md): Use Monty to extract structured pricing data from websites with Playwright and BeautifulSoup - [Async Execution](https://mintlify.wiki/pydantic/monty/guides/async-execution.md): Run async code in Monty and use async external functions for better performance - [Error Handling](https://mintlify.wiki/pydantic/monty/guides/error-handling.md): Understand and handle exceptions, tracebacks, and errors in Monty code - [External Functions](https://mintlify.wiki/pydantic/monty/guides/external-functions.md): Learn how to define and use external functions in Monty to connect your Python code with host environment capabilities - [Iterative Execution](https://mintlify.wiki/pydantic/monty/guides/iterative-execution.md): Use start() and resume() to handle external function calls step-by-step for fine-grained control - [Type Checking](https://mintlify.wiki/pydantic/monty/guides/type-checking.md): Enable static type checking for your Monty code to catch errors before execution - [Installation](https://mintlify.wiki/pydantic/monty/installation.md): Install Monty for Python, JavaScript, or Rust - [Introduction](https://mintlify.wiki/pydantic/monty/introduction.md): A minimal, secure Python interpreter written in Rust for use by AI - [Limitations](https://mintlify.wiki/pydantic/monty/language/limitations.md): Python features NOT supported by Monty - [Python Subset](https://mintlify.wiki/pydantic/monty/language/python-subset.md): Python language features supported by Monty - [Standard Library](https://mintlify.wiki/pydantic/monty/language/stdlib-modules.md): Supported Python standard library modules in Monty - [Quickstart](https://mintlify.wiki/pydantic/monty/quickstart.md): Get started with Monty in minutes