streamlit / docs

Source code for the Streamlit Python library documentation
https://docs.streamlit.io
Apache License 2.0
119 stars 477 forks source link

Streamlit App API calls #969

Open stergioa opened 8 months ago

stergioa commented 8 months ago

Hello, I would like to see All internal API POST &GET calls that streamlit is performing, I think that this kind of documentation is not provided but would be much appreciated.

I have currently detected through network packets monitoring, calls to :

./static/js/ .static/css/ .static/media/ ./_stcore/host_config ./_stcore/stream ./_stcore/health

Is there a detailed API documentation?

Asaurus1 commented 8 months ago

At least on the forward side, I believe Streamlit's python backend communicates with the frontend using a Websocket interface (that's the /stream endpoint you're seeing) which carries protobuffer-encoded messages. So there isn't a REST API per-se.

jokester commented 3 months ago

streamlit runs on a tornado HTTP/WS server. I think the routes init code is here