Running Python code in a sandbox with MicroPython and WASM

228 · · June 6, 2026, 4:07 a.m.
Summary
This blog post details the author's efforts in creating an alpha package called micropython-wasm, which allows running Python code safely in a sandbox using MicroPython compiled to WebAssembly. The author describes their motivations, the drawbacks of existing plugin systems, and the novel approach they are taking to ensure security and functionality with careful resource control while providing insights from their experiments and development journey.