Skip to content
Sections
>> Trisquel >> Packages >> ecne (12.0LTS) >> python >> python3-django-compression-middleware
[  ecne  ] [  xolotl  ]

Package: python3-django-compression-middleware (0.5.0-1)

Django middleware to compress responses using several algorithms

This middleware implements compressed content encoding for HTTP. It is similar to Django's GZipMiddleware, but additionally supports other compression methods. It is meant to be a drop-in replacement for Django's GZipMiddleware.

The middleware is focussed on the task of compressing typical Django responses such as HTML, JSON, etc. Both normal (bulk) and streaming responses are supported. For static file compression, have a look at other projects such as WhiteNoise.

Zstandard is a new method for compression with little client support so far. Most browsers now support Brotli compression. The middleware will choose the best compression method supported by the client as indicated in the request's Accept-Encoding header.

Other Packages Related to python3-django-compression-middleware

  • depends
  • recommends
  • suggests
  • dep: python3
    interactive high-level object-oriented language (default python3 version)
  • dep: python3-brotli
    lossless compression algorithm and format (Python 3 version)
  • dep: python3-django
    High-level Python web development framework
  • dep: python3-zstandard
    Python bindings for interfacing with Zstandard library

Download python3-django-compression-middleware

Download for all available architectures
Architecture Package Size Installed Size Files
all 9.9 kB37 kB [list of files]