Skip to main content

Streamlit component that allows you to do X

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.1.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.1-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file st_tldraw-0.0.1.tar.gz.

File metadata

  • Download URL: st_tldraw-0.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 045cd962d64d1efaad04c8ce8d4e7b280cf11b4be47efb2c8a748032a1c59e7a
MD5 a7b13a3f93d8c8a5cc2e75d9498f6cd3
BLAKE2b-256 62c1f38ae65c30d00bdcad40eb8890cf8449ed773c7fe43357695d3ccfed1c3a

See more details on using hashes here.

File details

Details for the file st_tldraw-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: st_tldraw-0.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f3ab5aefc106a28b8e0b026cb1cc22834be1fc0456363a888a93f47f89210fdc
MD5 f4a1c3553672d65967608e2960143ae8
BLAKE2b-256 d317aec45f2bdebe1617188177bb68cda3db9c9f64aaae7fd1ca551dc002e2b5

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