# Hosted Pyscript stubber

Create type-stubs for MicroPython webassembly (wasm) and PyScript

https://pyscript.net/releases/
Local builds
from <repo>/firmware/*.zip
Requires `serve.py` (not plain `http.server`)
MicroPython from npm
@micropython/micropython-webassembly-pyscript

1. Select one of the options above, then click Generate stubs.
2. The first time you load this page you will be asked to select a temp folder to sync the stubs into.
   on WSL; use \\wsl.localhost\Ubuntu\home\[user]\micropython-stubber\webassembly-stubber\WASM-TEMP
   on unix; use /home/[user]/micropython-stubber/webassembly-stubber/WASM-TEMP
   Do not select the entire micropython-stubs folder (too many files).
3. Wait for the stubs to be generated and synced to the local filesystem.
4. Copy the 'WASM-TEMP/micropython-v1_xx_0-webassembly-pyscript' folder to
   micropython-stubs/stubs/micropython-v1_xx_0-webassembly-pyscript
5. Run `stubber merge` & `stubber build` to generate the final stubs.

> Note: The stubs are generated using the micropython-stubber for the MicroPython stubs project.