Skip to main content

streamlit_lexical

Streamlit component that allows you to use Meta's Lexical as a rich text plugin.

Installation instructions

pip install streamlit-lexical

Usage instructions

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:

RELEASE = False

And you can test out the example.py with your changes by doing the following:

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

Then, in a separate terminal, run:

pip install -e .
streamlit run example.py

Further, to build the package (after making changes/adding features), you can install it locally like:

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.

Metadata

Release files for streamlit-lexical 1.3.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for streamlit-lexical 1.3.3
File Size Uploaded Provenance
streamlit_lexical-1.3.3.tar.gz 686.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for streamlit-lexical 1.3.3
File Interpreter ABI Platform
streamlit_lexical-1.3.3-py3-none-any.whl Python 3 none any Details

Total release size: 1.4 MB

Release files / streamlit_lexical-1.3.3.tar.gz

Download URL streamlit_lexical-1.3.3.tar.gz
Size 686.4 kB
Tags Source
SHA-256 checksum
How to use checksums
17a6adf94030cdd42d4c2c1d8425b94acf4b6b103d1aaa42b51e95c71d20722e
BLAKE2b-256 checksum
How to use checksums
4404ad38d1e5c3343bf7b727e8ee6ac6cdbae7e8513ce28b1f4e7459976346e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.4

Release files / streamlit_lexical-1.3.3-py3-none-any.whl

Download URL streamlit_lexical-1.3.3-py3-none-any.whl
Size 695.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3cb4e6be0cca0ecabb94f5f48190393a7f74350dad55df821713a09a8da82b9b
BLAKE2b-256 checksum
How to use checksums
ca7768d11bd1d74127b5aba5b868d289ac9073179a67880d979bb4a62a3eb156
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.4

Security for streamlit-lexical 1.3.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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page