Install
Usage
Declare anin_process machine with
runtime: monty to run python3 on Monty:
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
A Python runtime in both Mirage SDKs, supporting a subset of Python.
pnpm add @pydantic/monty
in_process machine with
runtime: monty to run python3 on Monty:
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)'")