Run small ESP32 Bit Pirate Python workflows directly in the browser. Pyodide runs Python locally, while JavaScript bridges Python calls to Web Serial for the Bit Pirate CLI or BPIO2 adapter mode.
For readability, common Bit Pirate calls such as bp.connect(), bp.cmd("help") and BPIO2 transfers can be written without await. Python Scripting Lab adds the required awaits before execution.
The Scripts menu is loaded automatically from the ESP32-Bit-Pirate-Scripts GitHub repository. Selecting a script fetches that file from GitHub, converts common bit-pirate package calls to the browser API, then inserts the converted script into the editor.
Those repository scripts are not limited to this web tool: they can also be used with a normal local Python setup when you want to run automation outside the browser.
Scripts that write files create them inside Pyodide's temporary in-browser filesystem, usually under /home/pyodide. After a run, new or modified files appear in Output with a Download button.