Prototype a testing-oriented, worker-based, message-style framework for Pyodide "components" based on custom elements.
What if you could do "joyful" Pyodide development? Staying in a smart tool, in the flow, with super-fast results?
What if you could write custom elements in Python?
- Rewrote all but the last 8 sections from previous effort
- Still need a couple of rewrites
- Then, I can do the videos.
- Fast development based on Vitest, NodeJS, and smart tooling like IDEs.
- Write Pyodide Components which then register as custom elements, no hand-written JS needed.
- Rendering, state, props, events...all mapped to the Python side.
- If delivered from a server, pre-render the component and skip the empty-box from Pyodide.
Clone the repo, then:
- Make a virtual environment
.venv/bin/pip install -e .
.venv/bin/python -m pyodide_components.downloader
to download Pyodide locally.
Note: There is no concept of developer dependencies, as this is intended as a tutorial.
pyodide-components
is distributed under the terms of the MIT license.