Streamlit component that allows you to embed Cloudinary's Uploader Widget
Project description
streamlit_cld_upload_widget
Embed Cloudinary's Upload Widget as a component in Streamlit application.
Installation instructions
pip install streamlit_cld_upload_widget
Usage instructions
import streamlit as st
from streamlit_cld_upload_widget import upload_widget
value = upload_widget(cloud_name="<<your cloudinary account name>>", upload_preset="<<your unsigned upload preset name")
st.write(value)
Detailed Usage
Upload widget is the tool used for embedding Cloudinary's Upload Widget into your application. The widget has quite a few customization parameters. This python module exposes the following options:
Parameter | Purpose | Default Value |
---|---|---|
cloud_name | This is your Cloudinary account name. To retrieve it, you may have to login to the Cloudinary's console and get the details from `Programmable Media` dashboard. | demo |
upload_preset | The unsigned upload preset to be used for the upload. If you would like to use signed uploads, this widget may not work for you. | None |
sources | An array of options listing the sources from where the files can be uploaded. | ['local', 'url'] |
multiple | Whether multiple files can be selected for upload | False |
max_files | (If multiple=True ), this option imposes limit on the maximum number of file that can be selected at once. |
1 |
allowed_formats | Lists the file formats that are supported for upload. These are based on the file extensions. | ['webp', 'gif', 'jpg', 'png', 'mp4', 'mov'] |
show_powered_by | Boolean flag indicating whether Cloudinary branding should be shown on the Upload Widget. | True |
tags | An array listing the set of tags to be applied to the image at upload. | [] |
context | A string of the format `name=value | name1=value1` representing the context metadata values |
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
Close
Hashes for streamlit_cld_upload_widget-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 280a44ff157a4692b79fa75405587bc0eae6cf8ff5ee8d96487a8219281897e6 |
|
MD5 | 715a5ed8c263f0c973187f95bcdafaca |
|
BLAKE2b-256 | 0f196f72ab0c0af9ca32469e84a8a58f71fddf9d95a505ac0d2c8e9605a396f7 |
Close
Hashes for streamlit_cld_upload_widget-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 154936f2db8ee0bbfa3710cf002e001a3399495b7d67f703f2d62bc6311f321a |
|
MD5 | cacb71ff15364c0597533c811ae490c1 |
|
BLAKE2b-256 | b082ef92798c2150a4b7a1d16e35c5e6b898c29be50207eeb0f8b43ad39f29e7 |