Skip to main content

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.

Buy Me A Coffee

Project details


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.8.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

tuspyserver-1.0.8-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file tuspyserver-1.0.8.tar.gz.

File metadata

  • Download URL: tuspyserver-1.0.8.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

Hashes for tuspyserver-1.0.8.tar.gz
Algorithm Hash digest
SHA256 ad99f4d70b8a47e2d8a6992cc5c931ad39a6b31f27e9acff80eeebbe59be83cb
MD5 d01a0a601cf82b020327c5de9f13eb2b
BLAKE2b-256 6043293f7534d4095bbc754084a10d738c6b8ee6f0efc41ab298936f620006ac

See more details on using hashes here.

File details

Details for the file tuspyserver-1.0.8-py3-none-any.whl.

File metadata

  • Download URL: tuspyserver-1.0.8-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

Hashes for tuspyserver-1.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 19b6e5124c5de7f84eeb92574b6ac984ac3e122f964f089215a4a7ab50307f52
MD5 9da1c91dd5dc926b031ca770a2e45f85
BLAKE2b-256 e17bd74326483aefc3f008ca1f22f4d99e9ffa10d3943419a79d691550d2d384

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page