Running Python code in a sandbox with MicroPython and WASM
Scored daily by a customisable AI persona to surface the most relevant engineering leadership news.
Sandboxing Python with MicroPython and WASM, technically deep and actionable for secure code execution, relevant to platform engineering.
Simon Willison released `micropython-wasm`, an alpha package that runs MicroPython compiled to WebAssembly via the `wasmtime` runtime, enabling safe, sandboxed Python code execution inside Python applications. The approach avoids the complexity and security risks of embedding JavaScript engines like V8, and overcomes Pyodide's limitation of being browser-only. Willison plans to use this for plugin systems in Datasette, LLM, and sqlite-utils, allowing untrusted plugin code to run without file or network access.
Simon Willison