Skip to main content
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.21.2 (2018-09-04)

  • Fixed Django compatibility

1.21.1 (2018-08-01)

  • Fixed failing travis build

1.21 (2018-08-01)

1.20 (2018-02-12)

1.19 (2018-02-08)

1.18 (2018-02-08)

1.17 (2017-05-10)

  • Exchanged use of base64.encodebytes to base64.b64encode.

1.16 (2017-05-04)

  • Implemented validate_filename handler in TusCreateMixin.

1.15 (2017-04-06)

  • Added missing migration and changed max_length to 255 for model Upload’s attribute uploaded_file

1.14 (2017-03-30)

  • Updated default behaviour of the get_header handler in TusMiddleware.

1.13 (2017-03-30)

  • Implemented handler for retrieving request headers in TusMiddleware.

1.12 (2017-03-10)

  • Updated validate_chunk signature

1.11 (2017-03-10)

  • Implemented validate_chunk handler method in TusPatchMixin

  • Implemented validate_success_headers handler method in TusCreateMixin

1.10 (2017-03-09)

  • Disabled chunk writing to disk

1.9 (2017-03-09)

  • Introduced TusUploadStreamParser

1.8 (2017-03-09)

  • Introduced setting to include serializer data in respons body

1.7 (2017-03-09)

  • Bugfixes

1.6 (2017-03-09)

  • Bugfixes

1.5 (2017-03-09)

  • Updated middleware, removed required header (bug!)

1.4 (2017-03-09)

  • Initial migration

1.3 (2017-03-09)

  • Renamed some parameters / classes

1.2 (2017-03-09)

  • Cleanup repository.

1.1 (2017-03-09)

  • First release on PyPI.

Release files for sicksid-drf-tus 1.22.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sicksid-drf-tus 1.22.0
File Size Uploaded
sicksid-drf-tus-1.22.0.tar.gz 18.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sicksid-drf-tus 1.22.0
File Interpreter ABI Platform
sicksid_drf_tus-1.22.0-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size:42.5 kB

Release files / sicksid-drf-tus-1.22.0.tar.gz

Download URL sicksid-drf-tus-1.22.0.tar.gz
Size 18.9 kB
Tags Source
SHA-256 checksum
How to use checksums
0bb56b5791b70a968041a639968c74a193fc4edadcaadf32adcc848af7068a7c
BLAKE2b-256 checksum
How to use checksums
07b1ad5647cd9f7136a595edb3476fe52b6af6d483ecd5ecd0c45285eb35252c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via pdm/2.3.2 CPython/3.11.0

Release files / sicksid_drf_tus-1.22.0-py2.py3-none-any.whl

Download URL sicksid_drf_tus-1.22.0-py2.py3-none-any.whl
Size 23.6 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
dda2e36fd174958b9a62d3c9e65b68c0e4da3d1642761036e3cbbcf810c6ab9a
BLAKE2b-256 checksum
How to use checksums
097496770659d08dd51bd31f3c56a0f755932f58f38a80be3f8831c0c279b194
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via pdm/2.3.2 CPython/3.11.0

Release history Release notifications | RSS feed

This release

1.22.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page