Skip to main content

Simple gallery for use in Streamlit projects.

Project description

Streamlit Simple Gallery

A simple gallery for use in Streamlit projects.

Installation

Installation is via pip:

pip install streamlit-simple-gallery

Usage

Using the gallery is simple, import streamlit_simple_gallery and then instantiate the class with the required directory variable. Other options can be configured by passing in different variables when instantiating the class.

import streamlit as st
from streamlit_gallery import ImageGallery

st.set_page_config(page_title="Streamlit Gallery", layout="wide")
gallery = ImageGallery(directory="assets")

To run the example application provided in the repository:

git clone https://github.com/hreikin/streamlit-simple-gallery
cd streamlit-gallery/example/
python -m venv .venv
source .venv/bin/activate
pip install streamlit-gallery
streamlit run Home.py

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_simple_gallery-0.0.1.tar.gz (3.0 kB view hashes)

Uploaded Source

Built Distribution

streamlit_simple_gallery-0.0.1-py3-none-any.whl (4.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page