Replies: 1 comment 1 reply
-
Hi, thanks for the kind words, I'm really glad to hear you like Streamsync and see its potential. The challenge that I see with exposing functions as FastAPI routes is linked to e.g. consider: def handle_click(state):
state["counter"] += 1 If I make a POST request to Please let me know more about the use case you have in mind, I'm quite curious, sounds like it'd be interesting functionality. PS: If you're interested in running FastAPI routes and Streamsync on the same ASGI server, check out the Custom Server docs. However, here the other routes stay completely independent from Streamsync, probably not what you're after? |
Beta Was this translation helpful? Give feedback.
-
Hi, first of all I would like to add my personal feedback - this is an awesome project and definitely think this will change the game.
I am a data analyst dabbling in development and have been building a lot in Streamlit applications for data enablement in my job. This project definitely solves all of my gripes of Streamlit.
I was wondering, given that this is built off of FastAPI, is there currently any way to add routes to particular event/internal functions to expose as endpoints of the API? And by extension, could I hypothetically provide pydantic data validation in the response model?
Mainly, I'd like to expose some of the crud actions which would be useful for external actions via http request
Otherwise - keen to see how this project progresses.
Thanks!
Johnny
Beta Was this translation helpful? Give feedback.
All reactions