PyScript entered maintenance mode in 2025 (API frozen, only Pyodide updates continue). This is a short guide for migrating the simple-use-case path to Pytml — a ~15KB wrapper around the same Pyodide engine.
When this guide applies: static pages, demos, tutorials, classrooms — anything that just needs "write Python in HTML, it runs."
When it doesn't: if you use MicroPython, filesystem APIs, plugin systems, or PyScript's <py-config> packages/files injection, fork PyScript instead — Pytml deliberately doesn't cover those.