FastAPI extention implementing the tus server
Project description
FastAPI Server for Tus Protocol
A file upload server of the tus resumable upload protocol is implemented on FastAPI framework.
Getting started
Import TusRouter
to your application,
from fastapi import FastAPI
from fastapi_tusd import TusRouter
app = FastAPI()
app.include_router(TusRouter(store_dir="./files", prefix="/files"))
Then the tus upload endpoints will be served at http://127.0.0.1:8000/files
, more information is available at http://127.0.0.1:8000/docs
Examples
There a simple example with web file upload client supporting for Tus
protocol, thanks to Uppy
!
Enter the example/
folder, run(pip install uvicorn
if no uvicorn
!)
uvicorn app_tusd:app --reload
Then visit https://127.0.0.1:8000/upload.thml
References
GitHub - tus/tus-resumable-upload-protocol: Open Protocol for Resumable File Uploads
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
fastapi-tusd-0.100.0.tar.gz
(9.5 kB
view hashes)
Built Distribution
Close
Hashes for fastapi_tusd-0.100.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | acb68629f93b88d578cdf10a212e21960cf0ac7134237a2ca65ffd9df625be24 |
|
MD5 | b041d15a743b58fd898528842b5db8c1 |
|
BLAKE2b-256 | b8f2d478ed5a0cb718a0f0c59682ef62011adaf4fe34b263cd22a3499c8dc39b |