Streamlit component that allows you to do have a gallery of image and select one of them.
Project description
streamlit-selectable-gallery
Streamlit component that allows you to do X
Installation instructions
pip install streamlit-selectable-gallery
Usage instructions
import streamlit as st
import base64
from streamlit_selectable_image_gallery import image_gallery
images = []
for file in ['documents/image1.png', 'documents/image2.png']:
with open(file, "rb") as image:
encoded = base64.b64encode(image.read()).decode()
images.append(f"data:image/jpeg;base64,{encoded}")
selected_index = image_gallery(images, 300)
st.write(selected_index)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file streamlit_selectable_image_gallery-0.0.1.tar.gz.
File metadata
- Download URL: streamlit_selectable_image_gallery-0.0.1.tar.gz
- Upload date:
- Size: 441.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c67de96a68372ab73e98f2fcb5f388198f712c1396fdadd1f48f933757620ea2
|
|
| MD5 |
52ad6effcb134aa590dbb3f6570393c0
|
|
| BLAKE2b-256 |
573a1fcb5a836f80be38729c15d16520df82081fef9e4412ac8416309202cbd4
|
File details
Details for the file streamlit_selectable_image_gallery-0.0.1-py3-none-any.whl.
File metadata
- Download URL: streamlit_selectable_image_gallery-0.0.1-py3-none-any.whl
- Upload date:
- Size: 445.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
35507f9596c004fa30a73189db4c473c03a6fa3bacd8b7f6e4ebb05711838cdb
|
|
| MD5 |
fbb1f9a6485bfc069e7d6734d03136e0
|
|
| BLAKE2b-256 |
f0eea9a89af0646f4a4ff41bc8dfb523cd03dd3a7cac4ff4ede5c0f073aa9dbb
|