Skip to main content

Multiselect component for Streamlit using Material UI's tool

Project description

Material UI Multiselect component for Streamlit

Multiselect component for Streamlit using Material UI's tool.

Installation

$ pip install st-mui-multiselect

Usage

import streamlit as st
from st_mui_multiselect import st_mui_multiselect

options = ["Mayo", "Lettuce", "Pickles", "Tomatoes", "Onions", "Mushrooms", "Ketchup", "Jalapeños"]
selections = st_mui_multiselect(options, size=select_size)
st.markdown("You selected %s" % ", ".join(selections))

Development

Setup

$ poetry install
$ cd st_mui_multiselect/frontend
$ npm install

Run dev

You need to run both npm dev server for the JS component frontend as well as streamlit

$ cd st_mui_multiselect/frontend
$ npm run start
$ poetry run streamlit run app.py

Tooling

Install pre-commit hooks:

$ poetry run pre-commit install
$ poetry run pre-commit install -t pre-push

Publish

$ poetry build
$ poetry publish

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-mui-multiselect-0.1.2.tar.gz (1.3 MB view details)

Uploaded Source

Built Distribution

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

st_mui_multiselect-0.1.2-py3-none-any.whl (1.3 MB view details)

Uploaded Python 3

File details

Details for the file st-mui-multiselect-0.1.2.tar.gz.

File metadata

  • Download URL: st-mui-multiselect-0.1.2.tar.gz
  • Upload date:
  • Size: 1.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.8.12 Darwin/21.6.0

File hashes

Hashes for st-mui-multiselect-0.1.2.tar.gz
Algorithm Hash digest
SHA256 aee306dff152031808ed5c995160118e930e1ab0e480c5fa27b971621683192a
MD5 2c4bd6abf6a330a3c938eb4cc67ed1c9
BLAKE2b-256 416de9f2267114e699412be211c59a27f935da3c5e12f0634b4e42b42b2bbb72

See more details on using hashes here.

File details

Details for the file st_mui_multiselect-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: st_mui_multiselect-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.8.12 Darwin/21.6.0

File hashes

Hashes for st_mui_multiselect-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 89074c78831e28c3d2bda08ba08f59ab1279bf20331d6f232a9fdb4803b81a8d
MD5 5fed443b612c146c5fc5bf0e5f33ccdb
BLAKE2b-256 831bef70a265a5d5659d450f9ac563a414fb7cda58e31fd4a671d40f21b17a23

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