Skip to main content

Streamlit component for graph visualization

Project description

Streamlit Component Vue Vite Template

A template for creating Streamlit Components. It uses Vue 3 to code the frontend and Vite to serve the files locally during development, as well as bundle and compile them for production.

This repo contains templates and example code for creating Streamlit Components. For complete information, please see the Streamlit Components documentation!

Quickstart

Ensure you have Python 3.6+, Node.js and npm installed.

  1. Clone this repository:
git clone git@github.com:gabrieltempass/streamlit-component-vue-vite-template.git
  1. Go to the frontend directory and initialize and run the component template frontend:
cd streamlit-component-vue-vite-template/streamlit_layoutr/frontend
npm install
npm run dev
  1. From a separate terminal, go to the repository root directory, create a new Python virtual environment, activate it and install Streamlit and the template as an editable package:
cd streamlit-component-vue-vite-template
python3 -m venv venv
. venv/bin/activate
pip install streamlit
pip install -e .

Still from the same separate terminal, run the example Streamlit app:

streamlit run streamlit_layoutr/example.py

If all goes well, you should see something like this:

Quickstart Success

Modify the frontend code at streamlit_layoutr/frontend/src/MyComponent.vue. Modify the Python code at streamlit_layoutr/__init__.py.

References

This template is based on:

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

streamlit-layoutr-0.0.3.tar.gz (94.4 kB view details)

Uploaded Source

Built Distribution

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

streamlit_layoutr-0.0.3-py3-none-any.whl (254.7 kB view details)

Uploaded Python 3

File details

Details for the file streamlit-layoutr-0.0.3.tar.gz.

File metadata

  • Download URL: streamlit-layoutr-0.0.3.tar.gz
  • Upload date:
  • Size: 94.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for streamlit-layoutr-0.0.3.tar.gz
Algorithm Hash digest
SHA256 22dff80dea2d36688e336ef0a3ab8c87098fb4a7a285006d443736c535247999
MD5 d1fa0b8cbc7d3d500a878f9997634648
BLAKE2b-256 818bcafdde99897563e73e59b23784c057fb6a5913185c6f2ba65f509f26ac22

See more details on using hashes here.

File details

Details for the file streamlit_layoutr-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for streamlit_layoutr-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4f1af2a2917ff61b37b6c1b4e0142d3ad43fe27ef6468dcfe6792cd5925ad66f
MD5 c93d37bdf6f757d0a52220b42ee40798
BLAKE2b-256 0dbf5c599cdc8c80a320f6b187bbd685f9213311b8a01e226ed5c0eb82bfae2d

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