streamlit-endpoint-patch
Since streamlit 1.18.0, original endpoint names were migrated to new ones under _stcore (e.g. _stcore/stream) and this breaks some systems, espeically those behind reverse proxies or arrangements with forwarding rules that you cannot change in a heartbeat.
This repo contains a very dirty monkey patch that forces streamlit to use the old endpoints of /stream (and friends like /health).
⚠️This is an unofficial patch and not approved by Streamlit developers. In the long run you should work to get the new endpoints working, and use this temporary solution at your own risk!⚠️
Last tested with streamlit 1.19.0.
Install
pip install streamlit-endpoint-patch
Usage
2 methods.
Method 1 (through pypi):
- Install package once
pip install streamlit-endpoint-patch
- Execute the following in your virtualenv/pyenv/whatever
streamlit-endpoint-patch
Method 2 (copy-paste):
- Copy
streamlit_endpoint_patch/endpoint_coersion.pyto where you see fit - Activate virtualenv if you have one
- Execute the following in your virtualenv/pyenv/whatever
python streamlit_endpoint_patch/endpoint_coersion.py # or wherever you put the .py
Reverting to original streamlit
pip install streamlit=<your version>
Metadata
Release files for streamlit-endpoint-patch 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| streamlit-endpoint-patch-0.1.0.tar.gz | 8.2 kB | Without provenance | Details for streamlit-endpoint-patch-0.1.0.tar.gz |
Release files / streamlit-endpoint-patch-0.1.0.tar.gz
| Download URL | streamlit-endpoint-patch-0.1.0.tar.gz |
|---|---|
| Size | 8.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2de883edc82ade133ad8211e30fcb33bf2ede823e45ebacefb6ef2456812dc2e
|
|
BLAKE2b-256 checksum How to use checksums |
457d061ad907556554e215d73909002294272437ee07a1bc957f48eb2221f15a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.13
|
Security for streamlit-endpoint-patch 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.