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.
pip install 'mirage-ai[monty]'
in_process machine with
runtime: monty to run python3 on Monty:
from mirage import RAMVFS, MountMode, Workspace
ws = Workspace(
{"/data": RAMVFS()},
mode=MountMode.EXEC,
machines={"py": {"provider": "in_process", "runtime": "monty"}},
)
await ws.shell("python3 -c 'print(1 + 1)'")