Flask Extension implementing the Tus.io server side resumable upload protocol
JavaScript Python HTML CSS
Switch branches/tags
Nothing to show
Clone or download
matthoskins1980 Merge pull request #1 from mojodna/patch-1
Respect deprecation warning
Latest commit 3f78ef1 Mar 10, 2018
Failed to load latest commit information.
static Initial Commit Feb 4, 2016
templates Added customizable upload_url and upload_folder properties Feb 5, 2016
.gitignore Initial commit Feb 4, 2016
README.md Respect deprecation warning Sep 16, 2016
demo.py Added Tus-Temp-Filename header to responses Jun 12, 2016
flask_tus.py Fixed error when TUS upload is complete Nov 18, 2016



Flask Extension implementing the Tus.io server protocol

Prerequisites (redis)

Currently flask-tus 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 from source (this repository)

python setup.py install

Installation from PyPi repository (recommended for latest stable release)

pip install Flask-Tus



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

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

tus_manager() 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

Building (local instructions for me
  1. python setup.py sdist
  2. twine upload