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 tuspyserver
Usage
main.py
from fastapi import FastAPI
from starlette.middleware.cors import CORSMiddleware
from starlette.staticfiles import StaticFiles
from tusserver import tus
app = FastAPI()
app.add_middleware(
CORSMiddleware,
allow_origins=['*'],
allow_methods=["*"],
allow_headers=["*"],
)
app.mount("/static", StaticFiles(directory="static"), name="static")
app.include_router(tus.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.7.tar.gz
(5.5 kB
view details)
Built Distribution
File details
Details for the file tuspyserver-1.0.7.tar.gz
.
File metadata
- Download URL: tuspyserver-1.0.7.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 | 03b7fcf58938357d9123b4782b3958748000842664f24301cdf015ec1e446129 |
|
MD5 | 82644ca2593f14118524d33d0aba7778 |
|
BLAKE2b-256 | d33b60e0ba51703721ae5b5d1995e65670af9d427871a3b994a9585ec0b7245c |
File details
Details for the file tuspyserver-1.0.7-py3-none-any.whl
.
File metadata
- Download URL: tuspyserver-1.0.7-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 | e3fa1615975d6d96b3149c95e4ae99213e9a8685edce182839047738f2d242bf |
|
MD5 | fa0423620705e2a8ecb98c9c1b957fe7 |
|
BLAKE2b-256 | 3b3682fed8a1e44098e24383d89f9ac2073156024e1e599d3267484a8d81c7b3 |