Skip to main content

Abstraction to offload file uploads to web-server (e.g. Apache with mod_xsendfile) once Django has checked permissions etc.

Project description

https://github.com/moggers87/django-sendfile2/actions/workflows/tests.yml/badge.svg Documentation Status

This is a wrapper around web-server specific methods for sending files to web clients. This is useful when Django needs to check permissions associated files, but does not want to serve the actual bytes of the file itself. i.e. as serving large files is not what Django is made for.

Note this should not be used for regular file serving (e.g. CSS etc), only for cases where you need Django to do some work before serving the actual file.

Supported Python Versions

Python 3.7, 3.8, 3.9, and 3.10 are currently supported by this library.

Supported Django Versions

Django 2.2, 3.2, and 4.0 are currently supported by this library.

Fork

This project is a fork of django-sendfile. The original project appears mostly dead and has a number of outstanding bugs (especially with Python 3).

Funding

If you have found django-sendfile2 to be useful and would like to see its continued development, please consider buying me a coffee.

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

django-sendfile2-0.7.0.tar.gz (26.7 kB view details)

Uploaded Source

Built Distribution

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

django_sendfile2-0.7.0-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

Details for the file django-sendfile2-0.7.0.tar.gz.

File metadata

  • Download URL: django-sendfile2-0.7.0.tar.gz
  • Upload date:
  • Size: 26.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 CPython/3.10.6

File hashes

Hashes for django-sendfile2-0.7.0.tar.gz
Algorithm Hash digest
SHA256 d900b1557cb1ba881798728de7ed7c82bff808868f331136b867a106e73bcd1f
MD5 94eaf6e1a30f61ba2ae60b3ad0b6d991
BLAKE2b-256 cb5c6624eb8cefe73578b206fa63febd54f0e0183a5bc7dbcc4685995aab70a9

See more details on using hashes here.

File details

Details for the file django_sendfile2-0.7.0-py3-none-any.whl.

File metadata

File hashes

Hashes for django_sendfile2-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0ee17b4f7ce8cc7159f75fa4e5d62e7795c1217de8f1e52ee6265d4aa46dce03
MD5 4d5c8d64189938bc32b29eca3cfaa1c4
BLAKE2b-256 8486dae42237351b66c119ee705335524743a6668be084656d83ee6e7a5931db

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