I'm going to be on the @talkpython podcast to talk about #dataStar.
Is there anything. you'd like us to talk about?
I'm going to be on the @talkpython podcast to talk about #dataStar.
Is there anything. you'd like us to talk about?
@kwiersma @talkpytho Oh yeah, I've done a lot of experimentation with server-sent events, and Datastar's Python's SDK makes it really easy (https://github.com/starfederation/datastar-python). This made my life so much easier than any other framework.
And since SSE is just a text-based HTTP protocol, any Python web app supports SSE. But you'd need an async framework for a long-lived SSE connection.
@kwiersma What would you like to know? I’ve used Django, FastAPI, and starlette in production, and I’ve tinkered with several other async frameworks.
I have been running them with uvloop behind nginx, caddy, and granian.
For most of my apps, I open a long-lived SSE connection on pages that can benefit from live updates, and I stream the updates as they happen.
I’ve triggered those updates via database triggers or NATS.