streamlit-custom-component
Streamlit component that allows you to create button to paste image from clipboard.
confirmed that it works with chrome,safari,edge. it doesn't work with firefox
Installation instructions
pip install st_txt_copybutton
or
pip install st_txt_copybutton --upgrade
Usage instructions
import streamlit as st
from st_txt_copybutton import txt_copy
st.header("Example of Text Clipboard")
st.write("Enter text in the text area below and click the button to copy it to the clipboard.")
# Text area for text input
text_to_copy = st.text_area("Text to copy", "Enter text here", height=100)
# Copy button
copy_result = txt_copy(label="Copy to clipboard", text_to_copy=text_to_copy, key="text_clipboard")
if copy_result:
st.success(f"{copy_result}")
else:
st.info("Click the button to copy the text.")
run
streamlt run examle.py
Metadata
Release files for st-txt-copybutton 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| st_txt_copybutton-0.0.3.tar.gz | 423.5 kB | Without provenance | Details for st_txt_copybutton-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| st_txt_copybutton-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for st_txt_copybutton-0.0.3-py3-none-any.whl |
Total release size: 1.2 MB
Security for st-txt-copybutton 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.