Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

streamlit_websocket_client-0.0.1.tar.gz (372.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

streamlit_websocket_client-0.0.1-py3-none-any.whl (376.7 kB view details)

Uploaded Python 3

File details

Details for the file streamlit_websocket_client-0.0.1.tar.gz.

File metadata

File hashes

Hashes for streamlit_websocket_client-0.0.1.tar.gz
Algorithm Hash digest
SHA256 a7460273bbfbd525095c6a16d001ae5100d5a67d531eb473eec9898a8c99d772
MD5 99abc9e056e1534c0dfef8a04f5910bb
BLAKE2b-256 7df8ffd5e9b2c1d1e3a91d9a411148a1ed3663514d554cf2d16d1fd036436f22

See more details on using hashes here.

File details

Details for the file streamlit_websocket_client-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for streamlit_websocket_client-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 953e3061f2b01184292ab1690994d83dc820fca16a450ab7a4f3356c1054457c
MD5 6cba53cf36d7d876d2374a5c12b12a89
BLAKE2b-256 58db3ec178e223d409da68dee0f502b050bda199448ddf9883ac6d299a40c5b2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page