simonw/micropython-wasm
sandboxingwebassemblypythonai-agents
Abstraction: Run untrusted MicroPython snippets in a Wasmtime WebAssembly sandbox
Key points:
- Python package that runs MicroPython compiled to WASI inside Wasmtime, one fresh instance per call.
- No network, no host filesystem unless a read-only directory is preopened; memory, fuel and wall-clock limits are configurable.
- run() returns stdout, stderr and remaining fuel; MicroPythonSession keeps state across calls on a background thread.
- Fits the pattern of letting an LLM execute code it wrote without trusting it.
Connections: Sandboxing · Webassembly · Simon Willison