Skip to main content

Streamlit component that allows you to do handle a list of clickable items

Project description

streamlit-list-widget

Open in Streamlit

Streamlit component that allows you to create a list of clickable items.

Installation instructions

pip install streamlit-list-widget

Usage instructions

import streamlit as st

from streamlit_list_widget import streamlit_list_widget

images = {
    "Golden Retriever": "https://www.zooplus.it/magazine/wp-content/uploads/2017/05/fotolia_66749097.jpg",
    "Labrador": "https://www.tuttogreen.it/wp-content/uploads/2019/03/shutterstock_1212827962.jpg",
    "Pomerania": "https://www.purina.it/sites/default/files/2021-02/BREED%20Hero_0095_pomeranian.jpg",
    "Alberto": "https://m.media-amazon.com/images/I/61k4ead-zGL._AC_UF350,350_QL80_.jpg",
}

with st.sidebar:
    selected = streamlit_list_widget(items=list(images.keys()), title="Dogs")

if selected:
    st.title(selected)
    st.image(images[selected], caption=selected)

Todo

  • Read release notes from file

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-list-widget-0.1.11.tar.gz (407.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_list_widget-0.1.11-py3-none-any.whl (410.0 kB view details)

Uploaded Python 3

File details

Details for the file streamlit-list-widget-0.1.11.tar.gz.

File metadata

  • Download URL: streamlit-list-widget-0.1.11.tar.gz
  • Upload date:
  • Size: 407.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for streamlit-list-widget-0.1.11.tar.gz
Algorithm Hash digest
SHA256 0d263a7951e4bcd1057c7c263edb2c370d461395cc8d0dc34ce4715eaeeaa7a9
MD5 0fe6e8252ff6a6b2e7eaea42f9a5af20
BLAKE2b-256 fc85842141f95efacb20141b9fb855935978e2dfc6579ee2701422bc30545821

See more details on using hashes here.

File details

Details for the file streamlit_list_widget-0.1.11-py3-none-any.whl.

File metadata

File hashes

Hashes for streamlit_list_widget-0.1.11-py3-none-any.whl
Algorithm Hash digest
SHA256 9125b74a3f54541d13c1ded252ec24fd3d714f67e6b12a2d9c42543a0332c759
MD5 cab5d6c58959ee81dc977ce2c19e5784
BLAKE2b-256 fcaabe920efa2e83b22de4e5716d14f1056695941e90cb6beab2037a8242103f

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