streamlit-chunk-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 streamlit-chunk-file-uploader
Usage instructions
import streamlit as st
from streamlit_chunk_file_uploader import uploader
file = uploader("uploader", key="chunk_uploader", chunk_size=32)
st.write(file)
if file is not None:
st.download_button(
"download",
data=file,
file_name=file.name,
type="primary",
)
About chunk size
When a file is uploaded, a Python script slices the file at the specified chunk size on the browser side and sends it as multiple files to the backend.
It's important to note that chunk size and request size are different.
If you have a constraint such as client_max_body_size, you should set it to a value slightly smaller than the constraint size, such as 31MB if the constraint size is 32MB.
Metadata
Release files for streamlit-chunk-file-uploader 1.0.4
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-chunk-file-uploader-1.0.4.tar.gz | 1.8 MB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| streamlit_chunk_file_uploader-1.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 3.6 MB
Release files / streamlit-chunk-file-uploader-1.0.4.tar.gz
| Download URL | streamlit-chunk-file-uploader-1.0.4.tar.gz |
|---|---|
| Size | 1.8 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
db37a13c939539bc7842e501a784d313a88aa0702cf8d853687e058a86ff5092
|
|
BLAKE2b-256 checksum How to use checksums |
7517c964e14978f358dc0005f11f8ad5700e88b75ca01291529fdc2bef6df505
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|
Release files / streamlit_chunk_file_uploader-1.0.4-py3-none-any.whl
| Download URL | streamlit_chunk_file_uploader-1.0.4-py3-none-any.whl |
|---|---|
| Size | 1.8 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8d91696dd45fad9cff1a23e7abeca19fde11de76c6e5c0ad674e06d4041d2798
|
|
BLAKE2b-256 checksum How to use checksums |
fbe2a0f931e9b7158054c09222ca017000c3eba7e3123a9d034458ec8f3ec9e1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|
Security for streamlit-chunk-file-uploader 1.0.4
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.