A Tus (tus.io) library for Django Rest Framework
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs Renamed some parameters / classes Mar 9, 2017
example first commit Mar 8, 2017
rest_framework_tus Fixed Django compatibility Sep 4, 2018
tests Fix unicode errors Feb 8, 2018
.editorconfig Debugging test environment Mar 9, 2017
.flake8 Debugging test environment Mar 9, 2017
.gitignore Updated gitignore Mar 9, 2017
.travis.yml Updated .travis Aug 1, 2018
AUTHORS.rst Updated version Feb 8, 2018
CONTRIBUTING.rst first commit Mar 8, 2017
HISTORY.rst Fixed Django compatibility Sep 4, 2018
LICENSE first commit Mar 8, 2017
MANIFEST.in first commit Mar 8, 2017
Makefile first commit Mar 8, 2017
README.rst Cleanup Repository Mar 9, 2017
manage.py first commit Mar 8, 2017
requirements.txt first commit Mar 8, 2017
requirements_dev.txt
requirements_test.txt Debugging codecov integration Mar 9, 2017
setup.cfg Updated setup Feb 8, 2018
setup.py Fixed Django compatibility Sep 4, 2018
tox.ini Updated .travis Aug 1, 2018

README.rst

drf-tus

https://travis-ci.org/dirkmoors/drf-tus.svg?branch=master

A Tus (tus.io) library for Django Rest Framework

Documentation

The full documentation is at https://drf-tus.readthedocs.io.

Quickstart

Install drf-tus:

pip install drf-tus

Add it to your INSTALLED_APPS:

INSTALLED_APPS = (
    ...
    'rest_framework_tus',
    ...
)

Add the middleware to MIDDLEWARE (or MIDDLEWARE_CLASSES for Django < 1.10)

MIDDLEWARE = (
    ...
    'rest_framework_tus.middleware.TusMiddleware',
    ...
)

Add drf-tus's URL patterns:

urlpatterns = [
    ...
    url(r'^', include('rest_framework_tus.urls', namespace='rest_framework_tus')),
    ...
]

Features

This library implements the following TUS API v1.0.0 protocols:

Running Tests

Does the code actually work?

source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install tox
(myenv) $ tox

Credits

Tools used in rendering this package: