> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mirage.strukto.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Monty

> A Python runtime in both Mirage SDKs, supporting a subset of Python.

What to install and a runnable TypeScript example. The settings, how the workspace connects and the notes are on [Monty](https://docs.mirage.strukto.ai/home/setup/runtime/monty.md), shared by both SDKs.

## Install

```bash theme={null}
pnpm add @pydantic/monty
```

## Usage

Declare an [`in_process`](https://docs.mirage.strukto.ai/home/setup/machine/in_process) machine with
`runtime: monty` to run `python3` on Monty:

```typescript theme={null}
import { MountMode, RAMVFS, Workspace } from '@struktoai/mirage-node'

const ws = new Workspace(
  { '/data': new RAMVFS() },
  { mode: MountMode.EXEC, machines: { py: { provider: 'in_process', runtime: 'monty' } } },
)
await ws.shell("python3 -c 'print(1 + 1)'")
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.