Streamlit component for displaying multiple images in a grid
Project description
streamlit-image-gallery
Streamlit component for displaying multiple images in a grid.
Example
Installation instructions
pip install streamlit-image-gallery
Usage instructions
import streamlit as st
from streamlit_image_gallery import streamlit_image_gallery
images = [
{
"src": 'https://images.unsplash.com/photo-1718439111428-f6ef86aae18d',
"title": 'White Flowers',
},
{
"src": 'https://images.unsplash.com/photo-1718554517666-2978ede88574',
"title": 'Bird',
},
{
"src": 'https://images.unsplash.com/photo-1711526637497-bd9ecfc68567',
"title": 'Sky',
},
{
"src": 'https://images.unsplash.com/photo-1717207300523-434099274ff0',
"title": 'Sunset',
},
{
"src": 'https://images.unsplash.com/photo-1592417817098-8fd3d9eb14a5',
"title": 'Food',
},
]
st.subheader("Image gallery")
streamlit_image_gallery(images=images)
Development instructions
Frontend
cd streamlit_image_gallery/frontendnpm installnpm run start
Streamlit
python -m venv .venvpip install -r requirements.txtpip install -e .streamlit run streamlit_image_gallery/example.py
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
streamlit-image-gallery-0.0.2.tar.gz
(540.4 kB
view details)
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-image-gallery-0.0.2.tar.gz.
File metadata
- Download URL: streamlit-image-gallery-0.0.2.tar.gz
- Upload date:
- Size: 540.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c39bf7cbd2b2c20327767cf2d183dcafd50392b1152d5672ca271caa96ef09e9
|
|
| MD5 |
6c5897218a7a690afd2097a827a85af1
|
|
| BLAKE2b-256 |
ea76d3d397ac9e63e3c2fe4e7f4a2e0c8c567ce5a785b564d672133d27f1e04d
|
File details
Details for the file streamlit_image_gallery-0.0.2-py3-none-any.whl.
File metadata
- Download URL: streamlit_image_gallery-0.0.2-py3-none-any.whl
- Upload date:
- Size: 544.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ab45b55e8b70acdd7bf04fab3490f68b23e781da86e667aa40d434f2707b749f
|
|
| MD5 |
8fe796c9f6cde2a4b8355ef98221f9b0
|
|
| BLAKE2b-256 |
f88d57349e3d642cbf994fadbc3c25eeebd6dca3c53a8588d926338a6dc6939c
|