TUS py protocol implementation in FastAPI
Project description
FastAPI Tus
FastAPI Extension implementing the Tus.io server protocol
Prerequisites FastAPI
Installation
Installation from PyPi repository (recommended for latest stable release)
pip install tuspy-fast-api
Usage
main.py
from fastapi import FastAPI
from starlette.middleware.cors import CORSMiddleware
from starlette.staticfiles import StaticFiles
from tusserver.tus import router
app = FastAPI()
app.add_middleware(
CORSMiddleware,
allow_origins=['*'],
allow_methods=["*"],
allow_headers=["*"],
)
app.mount("/static", StaticFiles(directory="static"), name="static")
app.include_router(router, prefix="/files")
This package has the ability to upload, download, delete (including a scheduler) files.
python setup.py sdist bdist_wheel
Any contribution is welcomed.
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
tuspyserver-1.0.6.tar.gz
(5.5 kB
view details)
Built Distribution
File details
Details for the file tuspyserver-1.0.6.tar.gz
.
File metadata
- Download URL: tuspyserver-1.0.6.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3720699c29d5e79f1b480589a1f08b6f6907d4c5ecfeed0314a50a6450eb4ea7 |
|
MD5 | b1717536a5e2f03cf8c627e79697939d |
|
BLAKE2b-256 | 06ac2ae295f5f59d188fd7b2aee42867b5ee557a854664080449abccef28ce31 |
File details
Details for the file tuspyserver-1.0.6-py3-none-any.whl
.
File metadata
- Download URL: tuspyserver-1.0.6-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4363998fa737b421d63f56cf59581517943922c51600c44a54b96fe620be7a1 |
|
MD5 | 5e2fbdc07543af4eddb4d6ab2f32ed5d |
|
BLAKE2b-256 | 286f18a91bf4f118e9e9d23176dc019eebf1ac59779d5ab4e0735090eb712912 |