Skip to main content

Modern frontend web components based on Buefy for Streamlit.

Project description

Streamfy — Buefy for Streamlit

Modern frontend web components based on Bulma and Buefy for Streamlit.

Live demo at streamfy.streamlit.app

Getting Started

Install streamfy:

pip install streamfy

Create a simple application app.py:

import streamlit as st
import streamfy as sy

sy.carousel(items=[
  "https://picsum.photos/id/1051/1230/500",
  "https://picsum.photos/id/1052/1230/500",
  "https://picsum.photos/id/1053/1230/500",
])

Run this application:

streamlit run app.py

A file with all components is available in examples/all.py:

Take a look at Buefy's documentation for a list of all properties and examples available.

Contributing

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

Clone this repo and create a new Python virtual environment:

$ python3 -m venv venv  # create venv
$ . venv/bin/activate   # activate venv
$ pip install streamlit # install streamlit

Initialize and run the component frontend:

$ cd streamfy/frontend
$ npm install    # Install npm dependencies
$ npm run serve  # Start the Webpack dev server

From a separate terminal, run the Streamlit app:

$ . venv/bin/activate  # activate the venv you created earlier
$ streamlit run streamfy/__init__.py  # run the example

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

Modify the frontend code at streamfy/frontend/src/Streamfy.vue and the Python code at streamfy/__init__.py.

Resources

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

streamfy-0.3.4.tar.gz (813.1 kB view details)

Uploaded Source

Built Distribution

streamfy-0.3.4-py3-none-any.whl (820.9 kB view details)

Uploaded Python 3

File details

Details for the file streamfy-0.3.4.tar.gz.

File metadata

  • Download URL: streamfy-0.3.4.tar.gz
  • Upload date:
  • Size: 813.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for streamfy-0.3.4.tar.gz
Algorithm Hash digest
SHA256 9df9fbcf546dfcf531dc3dcb66b58e2084394905cdb0238c0d2bce1b69627a0f
MD5 abbc4ac3b86776ae3db9bb9ccc069378
BLAKE2b-256 84839cb17b25df9e4ddc86977f0db8d4a01e0d16339c756e9eb4bde3f9c77558

See more details on using hashes here.

File details

Details for the file streamfy-0.3.4-py3-none-any.whl.

File metadata

  • Download URL: streamfy-0.3.4-py3-none-any.whl
  • Upload date:
  • Size: 820.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for streamfy-0.3.4-py3-none-any.whl
Algorithm Hash digest
SHA256 5541d8642293d9848312a491e1a8bba7236e93593907b56a5aa96d6b4243cb88
MD5 e8873e7dbe541fedecef11586c80de0f
BLAKE2b-256 798878024dd6f09006198d57e6fe16612f8e5cebb465888ac28c67c8fe805df0

See more details on using hashes here.

Supported by

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