stlite-sandbox


Namestlite-sandbox JSON
Version 0.2.1 PyPI version JSON
download
home_page
SummaryStreamlit component that allows you add an stlite sandbox into your streamlit app. Comes with a built-in editor to allow you to change the code and see what happens.
upload_time2024-01-04 21:50:41
maintainer
docs_urlNone
authorZachary Blackwood
requires_python>=3.7
license
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # stlite-sandbox

Streamlit component that allows you to create an stlite sandbox inside your streamlit app,
and change the code without requiring the whole component to be reloaded. Comes with
an (optional) built-in editor using `streamlit-monaco` so you can quickly play with your
code and see what happens.

## Installation instructions

```sh
pip install stlite-sandbox
```

## Usage instructions

```python
import streamlit as st

from stlite_sandbox import stlite_sandbox

code = """import streamlit as st

st.write("Hello, world!")
"""

stlite_sandbox(code, height=500, editor=True)
```

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "stlite-sandbox",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "",
    "author": "Zachary Blackwood",
    "author_email": "zachary@streamlit.io",
    "download_url": "https://files.pythonhosted.org/packages/0c/03/2d0445a34ef945f6b4e60d35856089bf403fc177c889aad11a7410090391/stlite-sandbox-0.2.1.tar.gz",
    "platform": null,
    "description": "# stlite-sandbox\n\nStreamlit component that allows you to create an stlite sandbox inside your streamlit app,\nand change the code without requiring the whole component to be reloaded. Comes with\nan (optional) built-in editor using `streamlit-monaco` so you can quickly play with your\ncode and see what happens.\n\n## Installation instructions\n\n```sh\npip install stlite-sandbox\n```\n\n## Usage instructions\n\n```python\nimport streamlit as st\n\nfrom stlite_sandbox import stlite_sandbox\n\ncode = \"\"\"import streamlit as st\n\nst.write(\"Hello, world!\")\n\"\"\"\n\nstlite_sandbox(code, height=500, editor=True)\n```\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Streamlit component that allows you add an stlite sandbox into your streamlit app. Comes with a built-in editor to allow you to change the code and see what happens.",
    "version": "0.2.1",
    "project_urls": null,
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1a7ae3d7480e8514757fc55c3d4b8b388337fbcce0e985a3f5c3fffcea74b613",
                "md5": "d2e7cfb341d967a404215dc23795b9de",
                "sha256": "7a7b9c618cf22fe511b1a9a991a12e1a9dc8968528f36afbdbce62b72656b8b8"
            },
            "downloads": -1,
            "filename": "stlite_sandbox-0.2.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "d2e7cfb341d967a404215dc23795b9de",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 6165,
            "upload_time": "2024-01-04T21:50:40",
            "upload_time_iso_8601": "2024-01-04T21:50:40.092300Z",
            "url": "https://files.pythonhosted.org/packages/1a/7a/e3d7480e8514757fc55c3d4b8b388337fbcce0e985a3f5c3fffcea74b613/stlite_sandbox-0.2.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0c032d0445a34ef945f6b4e60d35856089bf403fc177c889aad11a7410090391",
                "md5": "499bb5b05da64251bf1835ade9afbfb1",
                "sha256": "d602cdaeed7cfc39575fc5ea2e3a20dcee2a09bb705d6ccc0c702d9d9f992e40"
            },
            "downloads": -1,
            "filename": "stlite-sandbox-0.2.1.tar.gz",
            "has_sig": false,
            "md5_digest": "499bb5b05da64251bf1835ade9afbfb1",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 5593,
            "upload_time": "2024-01-04T21:50:41",
            "upload_time_iso_8601": "2024-01-04T21:50:41.505971Z",
            "url": "https://files.pythonhosted.org/packages/0c/03/2d0445a34ef945f6b4e60d35856089bf403fc177c889aad11a7410090391/stlite-sandbox-0.2.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-01-04 21:50:41",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "stlite-sandbox"
}
        
Elapsed time: 0.15046s