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.3.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.3-py3-none-any.whl (1.3 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: st-mui-multiselect-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 9093b8b9cb1eddfc326045073e2d0b1d8b178b342c634679fe2c26717af96756
MD5 259bfbc0609b5bd357bfe203d746a248
BLAKE2b-256 6178c5c2dc20871412a666a0991ce0ebf48b57c13f9d1500f044a8bd880ef17d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: st_mui_multiselect-0.1.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 dd06a10eaf24c998b055d96f08f0698e50a649e69bf489ba4ba71d815072cd19
MD5 b291bc773a9558da220a020c7774463d
BLAKE2b-256 03e7dd4f3fe44a72b185fcf2bf950135a19b7fa7181e75c343994c9fd5245f6c

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