Skip to main content

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

Project description

leukeleu-drf-tus

A tus library for Django REST Framework.

Quickstart

Install drf-tus:

pip install leukeleu-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 drf-tus's URL patterns:

urlpatterns = [
    ...
    path('', 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?

docker compose exec python make coveragetest

History

2.0.0 (2023-05-31)

  • Release to PyPi

2.0.0.dev0 (2023-05-25)

  • Renamed package to leukeleu-drf-tus
  • Major refactoring

1.21.2 (2018-09-04)

  • Fixed Django compatibility

1.21.1 (2018-08-01)

  • Fixed failing travis build

1.21 (2018-08-01)

1.20 (2018-02-12)

1.19 (2018-02-08)

1.18 (2018-02-08)

1.17 (2017-05-10)

  • Exchanged use of base64.encodebytes to base64.b64encode.

1.16 (2017-05-04)

  • Implemented validate_filename handler in TusCreateMixin.

1.15 (2017-04-06)

  • Added missing migration and changed max_length to 255 for model Upload's attribute uploaded_file

1.14 (2017-03-30)

  • Updated default behaviour of the get_header handler in TusMiddleware.

1.13 (2017-03-30)

  • Implemented handler for retrieving request headers in TusMiddleware.

1.12 (2017-03-10)

  • Updated validate_chunk signature

1.11 (2017-03-10)

  • Implemented validate_chunk handler method in TusPatchMixin
  • Implemented validate_success_headers handler method in TusCreateMixin

1.10 (2017-03-09)

  • Disabled chunk writing to disk

1.9 (2017-03-09)

  • Introduced TusUploadStreamParser

1.8 (2017-03-09)

  • Introduced setting to include serializer data in respons body

1.7 (2017-03-09)

  • Bugfixes

1.6 (2017-03-09)

  • Bugfixes

1.5 (2017-03-09)

  • Updated middleware, removed required header (bug!)

1.4 (2017-03-09)

  • Initial migration

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


Download files

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

Source Distribution

leukeleu-drf-tus-2.0.0.tar.gz (17.3 kB view details)

Uploaded Source

Built Distribution

leukeleu_drf_tus-2.0.0-py3-none-any.whl (20.9 kB view details)

Uploaded Python 3

File details

Details for the file leukeleu-drf-tus-2.0.0.tar.gz.

File metadata

  • Download URL: leukeleu-drf-tus-2.0.0.tar.gz
  • Upload date:
  • Size: 17.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.3

File hashes

Hashes for leukeleu-drf-tus-2.0.0.tar.gz
Algorithm Hash digest
SHA256 22fb17c9d57ab89bbae78d5678768d4e1a0da4caceedce96a3d3026f11b6ad61
MD5 4cf22e3ff2d438e597e4435ea9842b05
BLAKE2b-256 21a1b19693a40578f5d1d3a262770cb407a5148245c313d8a389490602b1ac1b

See more details on using hashes here.

File details

Details for the file leukeleu_drf_tus-2.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for leukeleu_drf_tus-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f27607acad783d5d82be147911d0dabdfdb009dee6fe07a81cbddfb65cab6b2e
MD5 36e65c9744abeabf1679ab38228deb0e
BLAKE2b-256 dd6419fd03535ae1e778c3ba0c2c5a5b52612eeda2b39c84adcd33f024e9fff9

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