Streamlit component that allows you to do handle a list of clickable items
Project description
streamlit-list-widget
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)
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.1.tar.gz
(407.3 kB
view details)
Built Distribution
File details
Details for the file streamlit_list_widget-0.1.1.tar.gz
.
File metadata
- Download URL: streamlit_list_widget-0.1.1.tar.gz
- Upload date:
- Size: 407.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 31958b4f50bf4101b76854868468395e339c7f7925e3b55f9722bfae02a9b520 |
|
MD5 | f7dbab3192e637b224c6017a7ea2330e |
|
BLAKE2b-256 | a0315d0087683d675e41b089eea3614fa63764b1059a70b2a7ece28351e21d72 |
File details
Details for the file streamlit_list_widget-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: streamlit_list_widget-0.1.1-py3-none-any.whl
- Upload date:
- Size: 409.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87ad40e0a1c6dd131b94bfd3fe49c89ace477e365e6756c969d1044608e4b77e |
|
MD5 | 9567a991b2064cf62151a1c8634a39ea |
|
BLAKE2b-256 | ee55b6f1bea5e60572201d3cf1ffff5c5cb1f9b59fd274e8cc1ffdc4febd7eee |