Usage
In the Python SDK
Install the extra:WasiRuntime(...) raises ImportError.
- A read-only mount, or a session narrowed to read, refuses a write at
open()withOSError: errno 30 on the host and Monty, or preview1 errno 69 under WASI. - The CPython build is read-only in the run. A mount at
/coexists with it: each mount wins under its prefix. - A run starts in the shell’s working directory; a missing one fails before
any code runs. A direct
execute()runs in its context’scwd. - A script runs as in CPython:
__file__is absolute, tracebacks quote its lines, andsys.path[0]is its directory (-Pand-Ileave it off). - The first run compiles
python.wasmand cachespython.cwasmbeside it; later runs start in milliseconds. A timeout stops the run.