Skip to main content

Streamlit component that allows you to reflect messages

Project description

MessageReflector

概述

MessageReflector 是一个用于处理消息反射组件。它允许应用程序将服务端的消息发送给客户端,再有客户端原样返回,以避免服务端直接处理消息时卡主UI。

功能

  • 消息处理: 将服务端的消息发送给客户端,再有客户端原样返回

发布

  1. 进入frontent执行npm run build
  2. 进入setup.py目录执行 python setup.py sdist bdist_wheel
  3. 执行运行 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


Download files

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

Source Distribution

message_reflector-0.0.6.tar.gz (247.7 kB view details)

Uploaded Source

Built Distribution

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

message_reflector-0.0.6-py3-none-any.whl (491.4 kB view details)

Uploaded Python 3

File details

Details for the file message_reflector-0.0.6.tar.gz.

File metadata

  • Download URL: message_reflector-0.0.6.tar.gz
  • Upload date:
  • Size: 247.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.0

File hashes

Hashes for message_reflector-0.0.6.tar.gz
Algorithm Hash digest
SHA256 68e8b2832dd9bde4b297b7f387af5afc5fdde76de29c1de4a0ba2588d775a08a
MD5 884409cb086cfc49814b8c358a8f190e
BLAKE2b-256 55831d2aa954f77e07726c70bfc222e7bdb1dd6e59c3ea4645137a7d19c63ea6

See more details on using hashes here.

File details

Details for the file message_reflector-0.0.6-py3-none-any.whl.

File metadata

File hashes

Hashes for message_reflector-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 872be7f3c30dc01846834e6beb1b5e1e6e9a0fe5317b12f1eb58f55b81ead49c
MD5 f0663c17e654ba7ce4c6509df2848597
BLAKE2b-256 cc2491d9ee1c51a09f845aae40d25d7a68ec51a813d81b2db07f6d92237d8dd3

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