A customizable file uploader component for Streamlit
Project description
st_file_uploader
This is a custom component that allows you to split files and send them from your browser to Streamlit.
Installation instructions
pip install st_file_uploader
Usage instructions
import streamlit as st
import st_file_uploader as stf
# Set page title and description
st.title("Custom File Uploader Demo")
st.write("This demo shows different ways to customize the file uploader component.")
# Using fully custom version
st.subheader("Fully Custom Version")
custom = stf.create_custom_uploader(
uploader_msg="Drop your amazing file here!",
limit_msg="Maximum size is 200MB",
button_msg="Select File",
icon="MdFileUpload"
)
file_custom = custom.file_uploader(
"Upload with custom text",
type=["xlsx", "csv"],
accept_multiple_files=True,
)
# Basic usage (English default)
st.subheader("Basic Usage (Default English)")
file = stf.file_uploader(
"Upload a CSV file",
type="csv",
)
# Using Spanish version
st.subheader("Spanish Version")
file_es = stf.es.file_uploader(
"Sube un archivo CSV",
type="csv",
)
# Mix of language with custom overrides
st.subheader("French with overrides")
file_fr = stf.file_uploader(
"Télécharger un fichier",
type=["jpg", "png", "gif"],
accept_multiple_files=True,
button_msg="Sélectionner une image",
)
# Show multiple types
st.subheader("Multiple file types demo")
file_types = stf.file_uploader(
"Upload documents",
type="csv",
accept_multiple_files=True,
)
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
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 st_file_uploader-0.2.0.tar.gz.
File metadata
- Download URL: st_file_uploader-0.2.0.tar.gz
- Upload date:
- Size: 2.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f7f72524a49b0e31e748d0d8a4bda9ab34c283b9f593b8599d0c30fedc931cf9
|
|
| MD5 |
e33fdf4b03d5977a440fc8205344a27a
|
|
| BLAKE2b-256 |
d5484819f756ee01e000b0fa8a85bede926f594349e8b3cf3dcbafa853b57cb0
|
File details
Details for the file st_file_uploader-0.2.0-py3-none-any.whl.
File metadata
- Download URL: st_file_uploader-0.2.0-py3-none-any.whl
- Upload date:
- Size: 2.6 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
37909bb904f2625e1c471dc5cfeaa7b09d3cbb35aa445d6e1862a920d17f343b
|
|
| MD5 |
f961e421f6c9e39acfdcf18945571b8a
|
|
| BLAKE2b-256 |
82a3375fc0564baba2ff53ff35a5e7d50382a3a602895e503b8948a9a1bac986
|