Skip to main content

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

Project description

https://badge.fury.io/py/drf-tus.svg https://travis-ci.org/dirkmoors/drf-tus.svg?branch=master https://codecov.io/gh/dirkmoors/drf-tus/branch/master/graph/badge.svg

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:

History

1.1 (2017-08-28) 1.2 (2018-01-04) +++++++++++++++++

  • Forked from drf-tus

  • Support for Django 1.11

  • Bugfix for incomplete uploaded chunks

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

sewan-drf-tus-1.2.tar.gz (14.9 kB view details)

Uploaded Source

File details

Details for the file sewan-drf-tus-1.2.tar.gz.

File metadata

  • Download URL: sewan-drf-tus-1.2.tar.gz
  • Upload date:
  • Size: 14.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for sewan-drf-tus-1.2.tar.gz
Algorithm Hash digest
SHA256 4fc7d9779fe89c656ede50ee5f7590276dc253955e1575fec046c871fb9bc6e6
MD5 c5b5fc7773617934aaa3bd8f9a77a7c9
BLAKE2b-256 c232d07f4761349d80c2c52bb28e9a284ccf4056ddab2cdc7223fc2504aad542

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