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
Example with Tus Client
A simple example with web client using uppy
to support for Tus
protocol, under the example/
folder
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.0.1.tar.gz
(9.5 kB
view hashes)
Built Distribution
Close
Hashes for fastapi_tusd-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9348f4d58cba73743d380fb56f00180dcd5390c44750b4ba37559d7705655a58 |
|
MD5 | 7fffcd5bd5be367db42f0de9ef7fbfc2 |
|
BLAKE2b-256 | bc6a3bf2b3e27647e58d0086c97038de5ed3dfb5a73513182d63a5a44ce73fdd |