A Tus (tus.io) library for Django Rest Framework
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4fc7d9779fe89c656ede50ee5f7590276dc253955e1575fec046c871fb9bc6e6 |
|
MD5 | c5b5fc7773617934aaa3bd8f9a77a7c9 |
|
BLAKE2b-256 | c232d07f4761349d80c2c52bb28e9a284ccf4056ddab2cdc7223fc2504aad542 |