Streamlit component that allows you to reflect messages
Project description
MessageReflector
概述
MessageReflector 是一个用于处理消息反射组件。它允许应用程序将服务端的消息发送给客户端,再有客户端原样返回,以避免服务端直接处理消息时卡主UI。
功能
- 消息处理: 将服务端的消息发送给客户端,再有客户端原样返回
发布
- 进入frontent执行npm run build
- 进入setup.py目录执行 python setup.py sdist bdist_wheel
- 执行运行 Upload PiPy Task
安装
使用 npm 或 yarn 安装组件:
npm install message_reflector
# 或者
yarn add message_reflector
使用示例
if message:= message_reflector(st.session_state["message"], delay_ms=10000): st.write(f"Received message: {message}") else: st.write("No message")
贡献
欢迎任何形式的贡献!请查看 贡献指南 以获取更多信息。
许可证
该项目遵循 MIT 许可证。有关详细信息,请参阅 LICENSE 文件。
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 message_reflector-0.0.5.tar.gz.
File metadata
- Download URL: message_reflector-0.0.5.tar.gz
- Upload date:
- Size: 245.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3edeaf3b9e1e26f0c6800bc3996403857286e14a8b1e1fb9ef3f4c3328a9401c
|
|
| MD5 |
3032e204ef1f568558b6e35ab4242dee
|
|
| BLAKE2b-256 |
5a5159f5fca0799c0e8104810883bc78277358836fe951bd8f47ea6f9d74c8bd
|
File details
Details for the file message_reflector-0.0.5-py3-none-any.whl.
File metadata
- Download URL: message_reflector-0.0.5-py3-none-any.whl
- Upload date:
- Size: 246.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
db8227dc0f643eb1042f9b32b977085bbd33e9ca18d8398457f7ad2f30d0fdd8
|
|
| MD5 |
808e0f64b046b6fbf4998ef8653af88c
|
|
| BLAKE2b-256 |
1890569036df806eadedda0c231f05239bb92527832a1006ced78bf373369e98
|