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.6.1.tar.gz (26.4 kB view details)

Uploaded Source

Built Distribution

django_sendfile2-0.6.1-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django-sendfile2-0.6.1.tar.gz
  • Upload date:
  • Size: 26.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.27.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.10.1

File hashes

Hashes for django-sendfile2-0.6.1.tar.gz
Algorithm Hash digest
SHA256 312b4501960e6b3a3390c48a6bdcfdae2c0516efacf24bdd0c97c6f2f2d2fc30
MD5 4895a711bcb05443cea5a60ac4d9a87d
BLAKE2b-256 8179c03e92b4199f045dc61557a6039e1d2d3243f08598be536fce059338c1ab

See more details on using hashes here.

File details

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

File metadata

  • Download URL: django_sendfile2-0.6.1-py3-none-any.whl
  • Upload date:
  • Size: 10.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.27.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.10.1

File hashes

Hashes for django_sendfile2-0.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 80cba260b4b0569dfe4bb04eed807a90765c65a200747df931e70dc22b935267
MD5 a2143fed37e82285f45e371cd00cc2a1
BLAKE2b-256 82c60b4c7490ab85c929a726b67bbd53f15137b361b3a403195324c8e455c802

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