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:
History
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.
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
Built Distribution
Hashes for drf_tus-1.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0dcf63341067e8a038fd2b7492999f244ca57f99a486a40814da40e3b595c2b |
|
MD5 | b14325704c16b3872ea5bef7ba327283 |
|
BLAKE2b-256 | 16b678e054c10e54fbc2aec3f8b8e3941a108a2fa31c2be5163edc1d4d9dc3fc |