drf-tus
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:
Core Protocol (http://tus.io/protocols/resumable-upload.html#core-protocol)
Creation Protocol (http://tus.io/protocols/resumable-upload.html#creation)
Expiration Protocol (http://tus.io/protocols/resumable-upload.html#expiration)
Checksum Protocol (http://tus.io/protocols/resumable-upload.html#checksum)
Termination Protocol (http://tus.io/protocols/resumable-upload.html#termination)
Running Tests
Does the code actually work?
source <YOURVIRTUALENV>/bin/activate (myenv) $ pip install tox (myenv) $ tox
Credits
Tools used in rendering this package:
drf-tus_
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
Metadata
Release files for sewan-drf-tus 1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sewan-drf-tus-1.2.tar.gz | 14.9 kB | Details |
Release files / sewan-drf-tus-1.2.tar.gz
| Download URL | sewan-drf-tus-1.2.tar.gz |
|---|---|
| Size | 14.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4fc7d9779fe89c656ede50ee5f7590276dc253955e1575fec046c871fb9bc6e6
|
|
BLAKE2b-256 checksum How to use checksums |
c232d07f4761349d80c2c52bb28e9a284ccf4056ddab2cdc7223fc2504aad542
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |