Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Streamlit App API calls #969

Open
stergioa opened this issue Feb 19, 2024 · 2 comments
Open

Streamlit App API calls #969

stergioa opened this issue Feb 19, 2024 · 2 comments
Labels
docs documentation Improvements or additions to documentation needs triage

Comments

@stergioa
Copy link

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?

@sfc-gh-skekre sfc-gh-skekre added the documentation Improvements or additions to documentation label Feb 20, 2024
@Asaurus1
Copy link
Contributor

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs documentation Improvements or additions to documentation needs triage
Projects
None yet
Development

No branches or pull requests

4 participants