Show HN: PuePy – Reactive, component-based Python frontend framework

by bouncingon 6/3/2024, 10:10 PMwith 0 comments

Obviously it's not the first Python-based web framework posted here. What's different:

- It's based on PyScript, which puts Python in your browser via WebAssembly. There's no transpiling, no JavaScript layer, no build step.

- You choose from MicroPython or full CPython/Pyodide. MicroPython is tiny, while Pyodide will get you a full Python environment. One of the examples actually shows BeautifulSoup running in your browser.

- PuePy is heavily influenced by my mostly positive developer experience using VueJS (hence the name, Pue). You get reactivity, components, props, and events.

- Web Components are really easy to integrate. Some examples show laying out user interfaces with Shoelace.

- There's an optional router, that can work with hash urls or HTML5 history mode.

Overall, I was trying to create something similar to Vue or React, but in pure Python. Since it's "real" Python, there's also no build step, no translation layer, etc.

I've been tinkering with this on and off for about six months, but decided to post it and solicit any feedback.

0