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", location="/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.1.tar.gz
(9.0 kB
view hashes)
Built Distribution
Close
Hashes for fastapi_tusd-0.100.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6cfb1dbc97e9b377e85d453e1fdebf9914f42a4c71b6af84c3961ccd5a426cc2 |
|
MD5 | 9427214192ef52902faca4545c298178 |
|
BLAKE2b-256 | 20aa2199176dd9b97744bdd1842e55dfaf91753f73b8f0234297747df63cf43a |