Skip to main content

A Tus (tus.io) library for Django Rest Framework

Project description

https://badge.fury.io/py/drf-tus.svg https://github.com/dirkmoors/drf-tus/actions/workflows/ci.yml/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:

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:

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

drf_tus-2.0.3.tar.gz (13.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

drf_tus-2.0.3-py3-none-any.whl (20.1 kB view details)

Uploaded Python 3

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

Hashes for drf_tus-2.0.3.tar.gz
Algorithm Hash digest
SHA256 56479237e7237c9ee3741603f36bfa58ecbd35eea959f6ffbbe52713d7aec265
MD5 ae828806f64a079f820caa77d4fb4bcc
BLAKE2b-256 ebf5024f3c4672624b5c1e0da6c864a2cb13deb682d6d12ce74caa3f57dbfdbe

See more details on using hashes here.

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

Hashes for drf_tus-2.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9bc56e09a742418e914acd43327aca9ffe15e2100e2708f7a66af15bd034c27e
MD5 8369d3f1ebfd257fd29f2ffc8b12adf1
BLAKE2b-256 65316c1cba2aab646e52a97e0638de43016eb2f4be64b78a1e3fcd2f23d0b482

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page