No project description provided
Project description
streamlit-custom-component
Streamlit component that allows you to subscribe WebSocket.
Installation instructions
pip install streamlit-ws-client
Usage instructions
import streamlit as st
from ws_client import ws_client
def get_ws_url():
return ""
if "ws_url" not in st.session_state:
st.session_state.ws_url = get_ws_url()
st.subheader("Component with WebSockets")
message = ws_client(st.session_state.ws_url, key="ws_client_1")
if message is not None:
st.write(message)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file streamlit_websocket_client-0.0.1.tar.gz.
File metadata
- Download URL: streamlit_websocket_client-0.0.1.tar.gz
- Upload date:
- Size: 372.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a7460273bbfbd525095c6a16d001ae5100d5a67d531eb473eec9898a8c99d772
|
|
| MD5 |
99abc9e056e1534c0dfef8a04f5910bb
|
|
| BLAKE2b-256 |
7df8ffd5e9b2c1d1e3a91d9a411148a1ed3663514d554cf2d16d1fd036436f22
|
File details
Details for the file streamlit_websocket_client-0.0.1-py3-none-any.whl.
File metadata
- Download URL: streamlit_websocket_client-0.0.1-py3-none-any.whl
- Upload date:
- Size: 376.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
953e3061f2b01184292ab1690994d83dc820fca16a450ab7a4f3356c1054457c
|
|
| MD5 |
6cba53cf36d7d876d2374a5c12b12a89
|
|
| BLAKE2b-256 |
58db3ec178e223d409da68dee0f502b050bda199448ddf9883ac6d299a40c5b2
|