Skip to main content

tldraw wrapper for streamlit

Project description

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

  1. Start Streamlit from the project root:

    streamlit run tldraw/example.py
    
  2. 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 (default 3001). This variable lives in tldraw/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 like 3001.
  • 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 .env file before running npm run start, and ensure that port is reachable from your browser.

Project details


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

st_tldraw-0.0.2-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

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

Hashes for st_tldraw-0.0.2.tar.gz
Algorithm Hash digest
SHA256 92931b4caf9832609f73cf51acb719c10629f4b456e838ce70c103b42e3d4b14
MD5 772c51e6af2dbc9365ca69c594386456
BLAKE2b-256 f73a6ce39c7e067255dcff84fa4179133291eb1cb6370ecfb37a2a3d18c1f3d8

See more details on using hashes here.

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

Hashes for st_tldraw-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c262a9c8ff1a685ff63114114f39d77b88742abfbd4b4bb9923d477adcbd89b3
MD5 10906a8e979fff70ae3cebc8041a5eba
BLAKE2b-256 89cecb19551f72f3247dbc768ddad2cd1b24d08dce87ac29770a4816f6159ab9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page