st-tldraw
Streamlit component that allows you to do X
Installation instructions
pip install st-tldraw
Usage instructions
import streamlit as st
from tldraw import tldraw
value = tldraw()
st.write(value)
Local development
-
Start Streamlit from the project root:
streamlit run tldraw/example.py
-
In another terminal, run the Vite dev server from
tldraw/frontend:npm install npm run start
Important dev server notes
- The browser connects to the Vite dev server directly. Streamlit does not proxy this port, so the Vite port must be reachable from the client just like the Streamlit port.
- Vite listens on the value of
VITE_PORT(default3001). This variable lives intldraw/frontend/.env. Update that file whenever you need to change the port, and remember that Windows/WSL/Hyper-V or dev containers may silently remap addresses like3001. - If a port is unavailable or blocked by a firewall/mobile connection, set
VITE_PORT=5173(Vite's default) or any other open port inside the.envfile before runningnpm run start, and ensure that port is reachable from your browser.
Metadata
Release files for st-tldraw 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| st_tldraw-0.0.2.tar.gz | 4.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| st_tldraw-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.8 kB
Release files / st_tldraw-0.0.2.tar.gz
| Download URL | st_tldraw-0.0.2.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
92931b4caf9832609f73cf51acb719c10629f4b456e838ce70c103b42e3d4b14
|
|
BLAKE2b-256 checksum How to use checksums |
f73a6ce39c7e067255dcff84fa4179133291eb1cb6370ecfb37a2a3d18c1f3d8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Release files / st_tldraw-0.0.2-py3-none-any.whl
| Download URL | st_tldraw-0.0.2-py3-none-any.whl |
|---|---|
| Size | 4.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c262a9c8ff1a685ff63114114f39d77b88742abfbd4b4bb9923d477adcbd89b3
|
|
BLAKE2b-256 checksum How to use checksums |
89cecb19551f72f3247dbc768ddad2cd1b24d08dce87ac29770a4816f6159ab9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|