streamlit_cld_product_gallery_widget
Streamlit component that allows you to embed Cloudinary's Product Gallery Widget into your application.
Installation instructions
pip install streamlit_cld_product_gallery_widget
Usage instructions
import streamlit as st
from streamlit_cld_product_gallery_widget import cld_product_gallery_widget
cld_product_gallery_widget(
cloud_name = 'demo',
mediaAssets=[{'tag':'logo'}]
)
Detailed Usage
Cloudinary's Product Gallery is an interactive user interface for displaying your products to your users on your website or application. In this Streamlit app, we expose a few of the available options for the product gallery. For full details, please refer to the api documentation.
| Parameter | Purpose | Default Value |
|---|---|---|
| cloud_name | Name of your Cloudinary product environment | None. Required value |
| mediaAssets | Populates the widget with all the media assets given as an array of assets. The individual assets in the array can be described either by an Asset object or by a PublicID string (as a shortcut for images only). | None. Required value |
| placeholderImage | Whether to load and display a low-quality blurred placeholder image while waiting for the higher quality image, instead of a loading spinner. | TRUE |
| sortProps | An object that defines how to sort the assets for display in the Product Gallery. | { "source": "public_id", "direction": "asc" } |
| viewportBreakpoints | An array of breakpoints for the viewport (browser window), together with the Product Gallery configuration parameters to override when the width of the Product Gallery widget is less than the given breakpoint | None |
| aspectRatio | The aspect ratio of the main viewer. | "square" |
| imageBreakpoint | The step size for rounding up the width of responsive images in pixels. | 250 |
| videoBreakpoint | The step size for rounding up the width of responsive videos in pixels. | 250 |
| preload | An array indicating which media assets should be preloaded into the browser cache when the Product Gallery widget is initialized. [] indicates load the first image | [] |
| transition | The effect to apply while transitioning between assets. | slide |
| zoom | Whether to activate the zoom functionality for images. | TRUE |
Metadata
Release files for streamlit-cld-product-gallery-widget 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| streamlit_cld_product_gallery_widget-0.1.0.tar.gz | 5.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| streamlit_cld_product_gallery_widget-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.8 kB
Release files / streamlit_cld_product_gallery_widget-0.1.0.tar.gz
| Download URL | streamlit_cld_product_gallery_widget-0.1.0.tar.gz |
|---|---|
| Size | 5.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
388ee76c7e0c54924ac68a9e635506c494a8dd813d86ce31255be2e4491c310e
|
|
BLAKE2b-256 checksum How to use checksums |
2c8fc7d9d57c4318c67ae33f8acaece51e2a962a3cc40a6d70541239793a65a0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.10.14
|
Release files / streamlit_cld_product_gallery_widget-0.1.0-py3-none-any.whl
| Download URL | streamlit_cld_product_gallery_widget-0.1.0-py3-none-any.whl |
|---|---|
| Size | 7.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b881287fc06bf9f9f615785b037c7650542a5b767065123736a533a1fcf84287
|
|
BLAKE2b-256 checksum How to use checksums |
471c348e3d66caceb831186cfcb49d07792028161af0778ddcc23be678de5433
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.10.14
|
Security for streamlit-cld-product-gallery-widget 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.