Writing Serverless Python Web Apps with PyScript
summary
Claims: Python web apps run entirely in the browser (no server) by fetching runtimes and wheels over URLs. Tools actually used: PyScript with pyodide vs micropython runtimes, WASM, JS FFI (import JS interop), the browser virtual filesystem, and pisgrip.com for live coding. Concrete demos: a Pirate-translation UI built in ~10 minutes, an OpenCV Harris‑corner detector fetched as local modules that works in the page, video→canvas snapshots, geolocation and WebUSB control of a Lego robot. Caveats: C‑extension packages need special builds, CORS and load time issues appear, micropython support is experimental but progressing.
AI-written summary · about
chapters (14)
- 0:00Introduction to PyScript
- 1:05Building PyScript apps
- 10:37Pirate translator app
- 27:18Web APIs for audio
- 32:40Break and troubleshooting
- 34:03Configuring pi-script.toml
- 1:09:10Python-JS interoperability
- 1:34:03PyScript plugins
- 1:50:57PyScript web APIs
- 2:15:05File I/O in PyScript
- 2:23:34AI-powered coding
- 2:35:16Lego robot demo
- 2:42:06PyScript future
- 2:55:19Closing remarks
related talks
39mPyScript - Python in the Browser
01h 39mPyScript - Writing a Python application in the browser
30mNext Level Python Applications with PyScript
32mPyScript - what you need to know
33mPython in the browser
45mThe marvelous world of Python in Browser: a nice surprise
23mRunning (snippets of) Python in the browser
42mPyScript & Data Science- PyData stack on the Browser
