Skip to main content

TUS protocol implementation

Project description

Flask-Tus-Cont

Flask Extension implementing the Tus.io server protocol. This project was reuploaded to Pypi under the 'Flask-Tus-Cont' name to allow a modern working version of this repo to continue serving requirements.

This repo is a fork of the fixed repo from jzwolak on github, repo found here. jzwolak's repo is a pull request of the original repo by matthoskins1980 found here

Prerequisites (redis)

Currently flask-tus-cont is reliant on a local redis server. This is used for caching information about uploads in progress. It is on the roadmap to remove this dependancy. You must install the redis python package for this extension to work.

pip install redis

Installation

Installation from source (this repository)

python setup.py install

Installation from PyPi repository (recommended for latest stable release)

pip install Flask-Tus-Cont

Usage

demo.py

from flask import Flask, render_template, send_from_directory
from flask_tus_cont import tus_manager
import os

app = Flask(__name__)
tm = TusManager(app, upload_url='/file-upload', upload_folder='uploads/')

TusManager() registers two new url endpoint /file-upload and /file-upload/<resource>. You can not define views for those urls in your app. Simply use any tus client and point it to /file-upload as the endpoint

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

Flask-Tus-Cont-1.1.0.tar.gz (5.2 kB view details)

Uploaded Source

File details

Details for the file Flask-Tus-Cont-1.1.0.tar.gz.

File metadata

  • Download URL: Flask-Tus-Cont-1.1.0.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

File hashes

Hashes for Flask-Tus-Cont-1.1.0.tar.gz
Algorithm Hash digest
SHA256 23763fb78c57b5a17a427f94c5c8b69b5dfd0896b10ccfd117ede5d4c9b017c3
MD5 457e4c5978dcbcc9af408e0278a57652
BLAKE2b-256 1060f8538b16bf8858159814b5cbd20525fcc37a9dd974b7911ec1a6e2850eab

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