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)
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.8.tar.gz
(407.4 kB
view details)
Built Distribution
File details
Details for the file streamlit-list-widget-0.1.8.tar.gz
.
File metadata
- Download URL: streamlit-list-widget-0.1.8.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94af05ab88bce4a811c85f1670393a637bf9e4a1f48f8235f89532006db8b00d |
|
MD5 | f206a3e43102e891e9ce30471dee31e0 |
|
BLAKE2b-256 | 49e0b1e0a332c10c6235267962590badaaa1c0a3a04372c261e507d44c324062 |
File details
Details for the file streamlit_list_widget-0.1.8-py3-none-any.whl
.
File metadata
- Download URL: streamlit_list_widget-0.1.8-py3-none-any.whl
- Upload date:
- Size: 410.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d4d7ccae1dd04bac224490e45e5544d8de6dc2746a1300dbe746d4e5545e79f |
|
MD5 | 3a7fe8ff282b1106928f616eeae032ec |
|
BLAKE2b-256 | 548124d32a50d7dfb83425e14b8575096f1a5138f9c872a32d4db6eb5e8f4863 |