tusfilter
python wsgi filter for tus protocol 1.0.0, the tus resumable upload standard.
Fork of https://github.com/everydo/tusfilter with bugfixes for WebOb Request usage.
install
pip install tuswsgi
Arguments
- app
required, the wsgi server application
- upload_path
str, required, path of the upload service
- tmp_dir
str, optional, directory to store temporary files, default /upload
- expire
int, optional, how long before cleanup old uploads in seconds, default 60*60*60
- send_file
bool, optional, False for send the absolute filepath in tmp_dir in the request body, True for an actual file uploaded, default False
- max_size
int, optional, maximum size of uploads in bytes, default 2**30, 1G
Example
flask
from tuswsgi import TusMiddleware
from flask import Flask
app = Flask(__name__)
@app.route("/upload_resumable/<tmpfile>", methods=['PATCH'])
def upload_resumable(tmpfile):
# do something else
return 'End of upload'
app.wsgi_app = TusMiddleware(
app.wsgi_app,
upload_path='/upload_resumable',
tmp_dir='/tmp/upload',
)
History
0.5.5 (2023-03-15)
Don’t cleanup uploaded files on every POST request.
Metadata
Release files for tuswsgi 0.5.5
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 | Actions |
|---|---|---|---|---|
| tuswsgi-0.5.5.tar.gz | 7.5 kB | Without provenance | Details for tuswsgi-0.5.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tuswsgi-0.5.5-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for tuswsgi-0.5.5-py2.py3-none-any.whl |
Total release size: 14.4 kB
Release files / tuswsgi-0.5.5.tar.gz
| Download URL | tuswsgi-0.5.5.tar.gz |
|---|---|
| Size | 7.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f3dccd11f8a8f63c9822321f3640a348b5d63020f1d1bd625c79b2667aa9bf3f
|
|
BLAKE2b-256 checksum How to use checksums |
58d330aeea1e06544b304e5f00ae77337df9060112ee327988f5c9b7b68f33ad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.15
|
Release files / tuswsgi-0.5.5-py2.py3-none-any.whl
| Download URL | tuswsgi-0.5.5-py2.py3-none-any.whl |
|---|---|
| Size | 6.9 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
10dddb1ae8ee5faa65069a9d6f178c08551fad45cf17c158df6c7d1e19f964c4
|
|
BLAKE2b-256 checksum How to use checksums |
8eafea49bc32d90160dc38e6191eef426e3396e63f29ad2adc707fe3179df51c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.15
|
Security for tuswsgi 0.5.5
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.