ZeroIntensity / view.py

The Batteries-Detachable Web Framework
https://view.zintensity.dev
MIT License
206 stars 15 forks source link

FastUI Support #185

Open ZeroIntensity opened 2 weeks ago

ZeroIntensity commented 2 weeks ago

Proposal:

For batteries-detachable purposes, view.py should support responses from FastUI. This will likely be similar to how ReactPy is implemented when #118 is done.

Basically:

from view import new_app
from fastui import components as c

app = new_app()

@app.get("/")
def index():
    return c.Page(...)

app.run()
ZeroIntensity commented 2 weeks ago

I'm not sure when FastUI will be ready for production - they have very little on their docs. I could try and reverse engineer it right now, but their API isn't stable - I might just be creating more work for myself, since however they serve layouts will probably change.