Streamlit component that support copy and paste clipboard
Project description
streamlit-clipboard
Streamlit component that support copy and paste clipboard
Installation instructions
pip install streamlit-clipboard
Usage instructions
import streamlit as st
from clipboard_component import copy_component, paste_component
st.subheader("文本内容复制到剪贴板示例")
user_input = st.text_area(
"输入要复制的内容:",
value="在这里输入文本,然后点击下方按钮复制到剪贴板",
height=200
)
copy_component("复制按钮", content=user_input)
st.subheader("剪贴板读取组件")
clipboard_content = paste_component("读取剪贴板")
if clipboard_content:
st.markdown("### 当前剪贴板内容:")
st.code(clipboard_content)
else:
st.markdown("点击按钮读取剪贴板内容")
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
streamlit_clipboard-0.0.6.tar.gz
(377.3 kB
view details)
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_clipboard-0.0.6.tar.gz.
File metadata
- Download URL: streamlit_clipboard-0.0.6.tar.gz
- Upload date:
- Size: 377.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d9cebdb3fcb64694568a136545b39946de2d210317ee9dad9be2258fbccd3c14
|
|
| MD5 |
654c16f143e912e74c051d28e98993c9
|
|
| BLAKE2b-256 |
80d63ff7a87c50cbbd1abc4bc800f1252bbc3d6bb0298ea3f3e8663070913315
|
File details
Details for the file streamlit_clipboard-0.0.6-py3-none-any.whl.
File metadata
- Download URL: streamlit_clipboard-0.0.6-py3-none-any.whl
- Upload date:
- Size: 380.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4ffea9fa101e4dce6e77e37c6a35e52c4f3b6209f7b59a0386e5a10a3eb9f8e9
|
|
| MD5 |
f93d7ece6627b340975740dfd385ade3
|
|
| BLAKE2b-256 |
77ef53feb06b90c1a75a12c522e288d948059195db0cce68349d7264bbe9c4b7
|