streamlit-lexical


Namestreamlit-lexical JSON
Version 1.2.1 PyPI version JSON
download
home_pagehttps://github.com/musubi-labs/streamlit_lexical
SummaryStreamlit component that allows you to use Meta's Lexical rich text editor
upload_time2025-07-19 01:07:15
maintainerNone
docs_urlNone
authorBen F
requires_python>=3.7
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # streamlit_lexical

Streamlit component that allows you to use Meta's [Lexical](https://lexical.dev/) as a rich text plugin. 

## Installation instructions

```sh
pip install streamlit-lexical
```

## Usage instructions

```python
import streamlit as st

from streamlit_lexical import streamlit_lexical

markdown = streamlit_lexical(value="initial value in **markdown**",
                             placeholder="Enter some rich text", 
                             height=800,
                             debounce=500,
                             key='1234', 
                             on_change=None
                            )


st.markdown(rich_text_dict)
```

## Development instructions

After cloning the github repo...

In __init__.py, set:
```python
RELEASE = False
```
And you can test out the example.py with your changes by doing the following:

```sh
cd streamlit_lexical/frontend
npm install (or yarn install)
npm run start # Start the Webpack dev server
```

Then, in a separate terminal, run:
```python
pip install -e .
streamlit run example.py
```

Further, to build the package (after making changes/adding features), you can install it locally like: 
```sh
cd streamlit_lexical/frontend
npm install (or yarn install)
npm run build
cd ../..
pip install -e ./
```

Make sure the __init__.py file RELEASE is set to True in this case. 

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/musubi-labs/streamlit_lexical",
    "name": "streamlit-lexical",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": null,
    "keywords": null,
    "author": "Ben F",
    "author_email": "ben@musubilabs.ai",
    "download_url": "https://files.pythonhosted.org/packages/fa/89/282e5868fd5c30fafa9738b74783e012d4f566ea25c8159e251888a7db98/streamlit_lexical-1.2.1.tar.gz",
    "platform": null,
    "description": "# streamlit_lexical\n\nStreamlit component that allows you to use Meta's [Lexical](https://lexical.dev/) as a rich text plugin. \n\n## Installation instructions\n\n```sh\npip install streamlit-lexical\n```\n\n## Usage instructions\n\n```python\nimport streamlit as st\n\nfrom streamlit_lexical import streamlit_lexical\n\nmarkdown = streamlit_lexical(value=\"initial value in **markdown**\",\n                             placeholder=\"Enter some rich text\", \n                             height=800,\n                             debounce=500,\n                             key='1234', \n                             on_change=None\n                            )\n\n\nst.markdown(rich_text_dict)\n```\n\n## Development instructions\n\nAfter cloning the github repo...\n\nIn __init__.py, set:\n```python\nRELEASE = False\n```\nAnd you can test out the example.py with your changes by doing the following:\n\n```sh\ncd streamlit_lexical/frontend\nnpm install (or yarn install)\nnpm run start # Start the Webpack dev server\n```\n\nThen, in a separate terminal, run:\n```python\npip install -e .\nstreamlit run example.py\n```\n\nFurther, to build the package (after making changes/adding features), you can install it locally like: \n```sh\ncd streamlit_lexical/frontend\nnpm install (or yarn install)\nnpm run build\ncd ../..\npip install -e ./\n```\n\nMake sure the __init__.py file RELEASE is set to True in this case. \n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Streamlit component that allows you to use Meta's Lexical rich text editor",
    "version": "1.2.1",
    "project_urls": {
        "Homepage": "https://github.com/musubi-labs/streamlit_lexical"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "8ccda999970cd912ede6df576d94d89660d438fa9fa4363e7c5e6cb054438611",
                "md5": "b0b1e0fbd5f9f56ee59791aded78916e",
                "sha256": "70e10f6f781732a7a41671f77584ae15908763c89564e1b1183d8226a4de0877"
            },
            "downloads": -1,
            "filename": "streamlit_lexical-1.2.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "b0b1e0fbd5f9f56ee59791aded78916e",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 694746,
            "upload_time": "2025-07-19T01:07:14",
            "upload_time_iso_8601": "2025-07-19T01:07:14.050523Z",
            "url": "https://files.pythonhosted.org/packages/8c/cd/a999970cd912ede6df576d94d89660d438fa9fa4363e7c5e6cb054438611/streamlit_lexical-1.2.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "fa89282e5868fd5c30fafa9738b74783e012d4f566ea25c8159e251888a7db98",
                "md5": "23791478f40b4660046e2e80d9e1c24a",
                "sha256": "fdff161c0469eec97ef43a0ae1f90a3df9db1b3ddcc1e56345db204a79129de1"
            },
            "downloads": -1,
            "filename": "streamlit_lexical-1.2.1.tar.gz",
            "has_sig": false,
            "md5_digest": "23791478f40b4660046e2e80d9e1c24a",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 686303,
            "upload_time": "2025-07-19T01:07:15",
            "upload_time_iso_8601": "2025-07-19T01:07:15.303318Z",
            "url": "https://files.pythonhosted.org/packages/fa/89/282e5868fd5c30fafa9738b74783e012d4f566ea25c8159e251888a7db98/streamlit_lexical-1.2.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-07-19 01:07:15",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "musubi-labs",
    "github_project": "streamlit_lexical",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "streamlit-lexical"
}
        
Elapsed time: 2.82203s