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:
MIDDLEWARE = (
...
"rest_framework_tus.middleware.TusMiddleware",
...
)
Add URL patterns for drf-tus:
urlpatterns = [
...
path(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:
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file drf_tus-2.0.3.tar.gz.
File metadata
- Download URL: drf_tus-2.0.3.tar.gz
- Upload date:
- Size: 13.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
56479237e7237c9ee3741603f36bfa58ecbd35eea959f6ffbbe52713d7aec265
|
|
| MD5 |
ae828806f64a079f820caa77d4fb4bcc
|
|
| BLAKE2b-256 |
ebf5024f3c4672624b5c1e0da6c864a2cb13deb682d6d12ce74caa3f57dbfdbe
|
File details
Details for the file drf_tus-2.0.3-py3-none-any.whl.
File metadata
- Download URL: drf_tus-2.0.3-py3-none-any.whl
- Upload date:
- Size: 20.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9bc56e09a742418e914acd43327aca9ffe15e2100e2708f7a66af15bd034c27e
|
|
| MD5 |
8369d3f1ebfd257fd29f2ffc8b12adf1
|
|
| BLAKE2b-256 |
65316c1cba2aab646e52a97e0638de43016eb2f4be64b78a1e3fcd2f23d0b482
|