Show HN: Hstream – quick Python web apps – Streamlit alternative using htmx
11–19 of 19 posts
Re: Show HN: Hstream – quick Python web apps – Streamlit alternative using htmx
#12Earlier quoted context omitted.
could you talk about it a bit more ? especially for a react person. How would you term the developer experience of htmx?
Hi. Sure. The experience is extremely similar to the traditional/original Server Side Rendering model; that is, sending back HTML to the user agent. Where that traditional model was much too limited, by only allowing full page refreshes and only two elements that could do server interaction ( and ), HTMX is completely robust. HTMX allows you as the developer to fire a server side request from ANY HTML element for all…
Re: Show HN: Hstream – quick Python web apps – Streamlit alternative using htmx
#13Earlier quoted context omitted.
Hi. Sure. The experience is extremely similar to the traditional/original Server Side Rendering model; that is, sending back HTML to the user agent. Where that traditional model was much too limited, by only allowing full page refreshes and only two elements that could do server interaction ( and ), HTMX is completely robust. HTMX allows you as the developer to fire a server side request from ANY HTML element for all…
I've heard of htmx but only from a headline or two, here and there....but hearing your description really interests me a ton to learn about htmx. Thanks for sharing!
Re: Show HN: Hstream – quick Python web apps – Streamlit alternative using htmx
#14Earlier quoted context omitted.
Hi. Sure. The experience is extremely similar to the traditional/original Server Side Rendering model; that is, sending back HTML to the user agent. Where that traditional model was much too limited, by only allowing full page refreshes and only two elements that could do server interaction ( and ), HTMX is completely robust. HTMX allows you as the developer to fire a server side request from ANY HTML element for all…
I've heard of htmx but only from a headline or two, here and there....but hearing your description really interests me a ton to learn about htmx. Thanks for sharing!
Re: Show HN: Hstream – quick Python web apps – Streamlit alternative using htmx
#15Re: Show HN: Hstream – quick Python web apps – Streamlit alternative using htmx
#16So, I've had a lot of the same issues with Streamlit in terms of going beyond the very raw PoC phase, which is why we often end up using Plotly's Dash[1] framework (React + Flask) at work for this kind of task. Taking a step back, what would the benefits be compared to Dash? [1]: https://dash.plotly.com/
When writing a python script you tend to think from top to bottom - as your script runs through. Dash adopts the html approach of defining a document and callbacks. After doing the refactor to this model I found the trade-offs of Dash wasn't worth the time saved of going straight to a more traditional stack, and again you're pretty locked-in to this choice now.
One example was writing a Dash SSO component turned into quite an ordeal (more so than most SSO integrations) - my aim here is to make an extension like this easier because you've got access directly to the FastAPI app with `hs.app`.
Re: Show HN: Hstream – quick Python web apps – Streamlit alternative using htmx
#17Writing an API that scales from quick PoC to MVP to serious production is in my opinion a problem space that is mostly not explored. We've tackled this with iommi ( https://docs.iommi.rocks ) with deep customization while at the same time having super fast PoC. We are not satisfied with the performance yet though, but at this point it's good enough for most uses.
Re: Show HN: Hstream – quick Python web apps – Streamlit alternative using htmx
#18This looks fantastic and the streamlit API is lovely to with with so it seems like a nice approach. Like others on this thread I’m a big django developer too; it’d be nice if the backend was swappable so you could run on flask or django as well…
Re: Show HN: Hstream – quick Python web apps – Streamlit alternative using htmx
#19I think it's also worth giving a shoutout to wave in this space; they have quite a few components you can use out-of-the-box https://github.com/h2oai/wave