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.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
st_tldraw-0.0.2.tar.gz
(4.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file st_tldraw-0.0.2.tar.gz.
File metadata
- Download URL: st_tldraw-0.0.2.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
92931b4caf9832609f73cf51acb719c10629f4b456e838ce70c103b42e3d4b14
|
|
| MD5 |
772c51e6af2dbc9365ca69c594386456
|
|
| BLAKE2b-256 |
f73a6ce39c7e067255dcff84fa4179133291eb1cb6370ecfb37a2a3d18c1f3d8
|
File details
Details for the file st_tldraw-0.0.2-py3-none-any.whl.
File metadata
- Download URL: st_tldraw-0.0.2-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c262a9c8ff1a685ff63114114f39d77b88742abfbd4b4bb9923d477adcbd89b3
|
|
| MD5 |
10906a8e979fff70ae3cebc8041a5eba
|
|
| BLAKE2b-256 |
89cecb19551f72f3247dbc768ddad2cd1b24d08dce87ac29770a4816f6159ab9
|