docs icon indicating copy to clipboard operation
docs copied to clipboard

Streamlit App API calls

Open stergioa opened this issue 1 year ago • 2 comments

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?

stergioa avatar Feb 19 '24 10:02 stergioa

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.

Asaurus1 avatar Feb 22 '24 23:02 Asaurus1

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

jokester avatar Jul 31 '24 09:07 jokester