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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

drf_tus-2.0.2-py3-none-any.whl (20.0 kB view details)

Uploaded Python 3

File details

Details for the file drf_tus-2.0.2-py3-none-any.whl.

File metadata

  • Download URL: drf_tus-2.0.2-py3-none-any.whl
  • Upload date:
  • Size: 20.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.10

File hashes

Hashes for drf_tus-2.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c94faa68a8e9ee889ec1c8e054226e0ea13b332ca64087df519f6e5551c30c72
MD5 89062146ffb0a6fbd172769842929bdb
BLAKE2b-256 d57c8cbf6341c6b649c7235715c91cf906ff232c53f1d71f310c06d7371625a0

See more details on using hashes here.

Supported by

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