st-copy-button


Namest-copy-button JSON
Version 0.0.13 PyPI version JSON
download
home_pagehttps://gitlab.com/james.young2/st-copy-button
SummaryA simple Streamlit component for copying text to the user's clipboard with one click.
upload_time2025-03-18 19:36:28
maintainerNone
docs_urlNone
authorJames Young
requires_python<4.0,>=3.9.8
licenseMIT
keywords streamlit component clipboard
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # st-copy-button

A simple Streamlit component for copying text to the user's clipboard with one click.

Contains portions derived from mmz-001's st-copy-to-clipboard component.

## Installation instructions

```sh
pip install st-copy-button
```

## Usage instructions

> Note: The clipboard API is only available in secure contexts (HTTPS)

```python
import streamlit as st
from st_copy_button import st_copy_button

# Basic usage
st_copy_button("Copy this to clipboard")

# With custom labels
st_copy_button(
    text="Custom text",
    before_copy_label="📋 Push to copy",
    after_copy_label="✅ Text copied!",
    show_text=True
)
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://gitlab.com/james.young2/st-copy-button",
    "name": "st-copy-button",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0,>=3.9.8",
    "maintainer_email": null,
    "keywords": "streamlit, component, clipboard",
    "author": "James Young",
    "author_email": "james.young@ramseysolutions.com",
    "download_url": "https://files.pythonhosted.org/packages/90/b7/0f72c13057861dfc2e2098fd5aec24c422e9b7b763c950a8b45305b8fae9/st_copy_button-0.0.13.tar.gz",
    "platform": null,
    "description": "# st-copy-button\n\nA simple Streamlit component for copying text to the user's clipboard with one click.\n\nContains portions derived from mmz-001's st-copy-to-clipboard component.\n\n## Installation instructions\n\n```sh\npip install st-copy-button\n```\n\n## Usage instructions\n\n> Note: The clipboard API is only available in secure contexts (HTTPS)\n\n```python\nimport streamlit as st\nfrom st_copy_button import st_copy_button\n\n# Basic usage\nst_copy_button(\"Copy this to clipboard\")\n\n# With custom labels\nst_copy_button(\n    text=\"Custom text\",\n    before_copy_label=\"\ud83d\udccb Push to copy\",\n    after_copy_label=\"\u2705 Text copied!\",\n    show_text=True\n)\n```\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A simple Streamlit component for copying text to the user's clipboard with one click.",
    "version": "0.0.13",
    "project_urls": {
        "Homepage": "https://gitlab.com/james.young2/st-copy-button",
        "Repository": "https://gitlab.com/james.young2/st-copy-button"
    },
    "split_keywords": [
        "streamlit",
        " component",
        " clipboard"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d0d2970634fe5c614fada1495af475eca12e9792e9370e071618628766b29c67",
                "md5": "d2eaf989383dc2fea572ae8dfdf75306",
                "sha256": "0138184d9226bf2c0e3860a8b54ac26f7e3c4198bec0d9475293b304e41ef016"
            },
            "downloads": -1,
            "filename": "st_copy_button-0.0.13-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "d2eaf989383dc2fea572ae8dfdf75306",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.9.8",
            "size": 238724,
            "upload_time": "2025-03-18T19:36:27",
            "upload_time_iso_8601": "2025-03-18T19:36:27.314339Z",
            "url": "https://files.pythonhosted.org/packages/d0/d2/970634fe5c614fada1495af475eca12e9792e9370e071618628766b29c67/st_copy_button-0.0.13-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "90b70f72c13057861dfc2e2098fd5aec24c422e9b7b763c950a8b45305b8fae9",
                "md5": "536d564697c7f4ff3fde896eb3eeae03",
                "sha256": "71eddeb9db361bca5d06b5cb5a127f9114ae7c0a44123e42b3ad3af6b3084771"
            },
            "downloads": -1,
            "filename": "st_copy_button-0.0.13.tar.gz",
            "has_sig": false,
            "md5_digest": "536d564697c7f4ff3fde896eb3eeae03",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.9.8",
            "size": 232529,
            "upload_time": "2025-03-18T19:36:28",
            "upload_time_iso_8601": "2025-03-18T19:36:28.956681Z",
            "url": "https://files.pythonhosted.org/packages/90/b7/0f72c13057861dfc2e2098fd5aec24c422e9b7b763c950a8b45305b8fae9/st_copy_button-0.0.13.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-03-18 19:36:28",
    "github": false,
    "gitlab": true,
    "bitbucket": false,
    "codeberg": false,
    "gitlab_user": "james.young2",
    "gitlab_project": "st-copy-button",
    "lcname": "st-copy-button"
}
        
Elapsed time: 1.40138s