Metadata-Version: 2.1
Name: streamlit-image-gallery
Version: 0.0.2
Summary: Streamlit component for displaying multiple images in a grid
Home-page: https://github.com/virtUOS/streamlit-image-gallery
Author: Dennis Benz
Author-email: debenz@uni-osnabrueck.de
License: UNKNOWN
Platform: UNKNOWN
Requires-Python: >=3.7
Description-Content-Type: text/markdown
Provides-Extra: devel
License-File: LICENSE

# streamlit-image-gallery

Streamlit component for displaying multiple images in a grid.

## Example

![example](https://github.com/virtUOS/streamlit-image-gallery/assets/44410838/678bb69a-a20b-4749-bdb7-79b3eeec1ee0)

## Installation instructions

```sh
pip install streamlit-image-gallery
```

## Usage instructions

```python
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

1. `cd streamlit_image_gallery/frontend`
2. `npm install`
3. `npm run start`

### Streamlit

1. `python -m venv .venv`
2. `pip install -r requirements.txt`
3. `pip install -e .`
4. `streamlit run streamlit_image_gallery/example.py`


