Compress includes: – Compression of PNGs while preserving quality – Compression of JPGs while preserving quality – Easy conversion of PSDs to JPEGs – Easily remove JPG metadata – Batch conversion of files and folders – Custom prefixes – Drag and drop interface – Dark and Light modes. 3/0 Lug Compression Connectors. Lug compression connectors slide onto the ends of wires to allow the wires to be connected to circuits. Also known as compression lugs, these connectors are made of highly conductive materials. View More View All Sort & Filter. Purchased products.
Latest version Released:
Django middleware to compress responses using several algorithms.
Project description
This middleware implements compressed content encoding for HTTP. It is similarto Django’s GZipMiddleware (documentation), but additionally supportsother compression methods. It is meant to be a drop-in replacement for Django’sGZipMiddleware. Its documentation — including security warnings — thereforeapply here as well.
The middleware is focussed on the task of compressing typical Django responsessuch as HTML, JSON, etc. Both normal (bulk) and streaming responses aresupported. For static file compression, have a look at other projects such asWhiteNoise.
Smart player pro 1 0 3 0. Zstandard is a new method for compression with little client support so far.Most browsers now support Brotli compression (check support status on Can Iuse… Brotli). The middleware will choose the best compression methodsupported by the client as indicated in the request’s Accept-Encoding Hydra hdr photo editor 4 2. header. In order of preference:
- Zstandard
- Brotli
- gzip
Summary of the project status:
Installation and usage
The following requirements are supported and tested in all reasonablecombinations:
- Python versions: 2.7, 3.4, 3.5, 3.6, 3.7, 3.8.
- Interpreters: CPython and PyPy.
- Django versions: 1.11 (LTS), 2.0, 2.1, 2.2 (LTS), 3.0.
To apply compression to all the views served by Django, addcompression_middleware.middleware.CompressionMiddleware to theMIDDLEWARE setting:
Remove GZipMiddleware and BrotliMiddleware if you used it before.Consult the Django documentation on the correct ordering of middleware.
Alternatively you can decorate views individually to serve them withcompression:
Note that your browser might not send the br entry in the Accept-Encodingheader when you test without HTTPS (common on localhost). You can force it tosend the header, though. In Firefox, visit about:config and setnetwork.http.accept-encoding to indicate support. Note that you mightencounter some problems on the web with such a setting (which is why Brotli isonly supported on secure connections by default).
Credits and Resources
The code and tests in this project are based on Django’s GZipMiddleware andVašek Dohnal’s django-brotli. For compression, it uses the following modulesto bind to fast C modules:
- The zstandard bindings. It supports both a C module (for CPython) and CFFIwhich should be appropriate for PyPy. See the documentation for full details.
- The Brotli bindings or brotlipy. The latter is preferred on PyPy sinceit is implemented using cffi. But both should work on both Pythonimplementations.
- Python’s builtin gzip module.
Further readding on Wikipedia:
Contributing
- Clone this repository (git clone ..)
- Create a virtualenv
- Install package dependencies: pip install --upgrade-r requirements_dev.txt
- Change some code
- Run the tests: in the project root simply execute pytest, and afterwardspreferably tox to test the full test matrix. Consider installing as manysupported interpreters as possible (having them in your PATH is oftensufficient).
- Submit a pull request and check for any errors reported by the ContinuousIntegration service.
License
The MPL 2.0 License
Copyright (c) 2019 Friedel Wolff.
Release historyRelease notifications | RSS feed
0.4.1
0.4.0
0.3.1
0.3.0
0.2.1
0.1.0
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size django_compression_middleware-0.4.1-py2.py3-none-any.whl (8.1 kB) | File type Wheel | Python version py2.py3 | Upload date | Hashes |
Filename, size django-compression-middleware-0.4.1.tar.gz (18.0 kB) | File type Source | Python version None | Upload date | Hashes |
Hashes for django_compression_middleware-0.4.1-py2.py3-none-any.whl
Algorithm | Hash digest |
---|---|
SHA256 | 4895c1b1cb43ed04486e669037819aa5fe6854940934a6348a88316f856fcf73 |
MD5 | 4f398e1cb0bf7bdfdf61944f29a7d22c |
BLAKE2-256 | b95b2808057bb2abfbb92b4948516eb2fdcce34787fd51c417a3cff241b771ce |
Hashes for django-compression-middleware-0.4.1.tar.gz
Algorithm | Hash digest |
---|---|
SHA256 | e9b3cd6ca0b9e7d703a1f2222f2f769961120c495c1ef927a7f1a44b71fc6b3c |
MD5 | 2a3658d6e415bb705dc81cb84b4a6adc |
BLAKE2-256 | 9779a7eb8b0a42792d9a0e407e8ecdc447e26027070ab7c74c99a441d22ba5b1 |
- Convert PDF
- Create PDF
- More PDF Tools
English
Efficiently reduce PDF file size online, multiple options are available.
Choose file
Or drag and drop files here
File Uploading 65
This file is encrypted by open password, we can't get access to the content. Please enter the correct open password, and try to convert it again.
This file is encrypted, please select another file or use the Unlock PDF function.
Please select a file less than 20 MB. Or purchase CleverPDF for Windows, convert larger files without limitations.
This file may be damaged or not a normal PDF file. Please try another PDF.
The file format you selected is not supported by this feature, please select the correct input format.
Please try another option. If maximum compression can’t make it any smaller, the original file may be already compressed very well. Sorry.
Please upload one file only, this feature does not support multiple files.
Desktop version: 24-in-1 CleverPDF for Windows
More productive way for PDF to Word conversion and other 24 PDF tasks. Desktop version doesn't require the Internet Connection, support batch processing and larger files.Desktop version: 20-in-1 CleverPDF for Mac
More productive way for PDF to Word conversion and other 20 PDF tasks. Desktop version doesn't require the Internet Connection, support batch processing and larger files.Compress 100mb Video
Reduce the size of your PDF easily online
Shrink PDF file by optimizing the images size and quality, and removing unnecessary data, so you can send a smaller email attachment, or save your disk space. You'll be surprised when a large PDF file is compressed to a smaller file without lossing lots of the details.Great balance between file size and quality
You can choose the compressing option as you like. It is recommended to try the default option at first, usually it can make PDF smaller and keep high-quality image. If it doesn't work as expected, you can compress the PDF again with other options without uploading the file again.Safe and free PDF compressing service
Your privacy is guaranteed since no one gets access to your files during the whole PDF compressing progress. File is uploaded via encrypted SSL network and your files will be erased permanently from the server after 30 mins. No sign-up or membership required, upload file anonymously.Shrink PDF in the cloud for free
It works like a magic in the web browser, you don't need to install any software for your file compressing task. It works on any platform and devices. Unlike the other online PDF services, CleverPDF doesn't require membership or subscription to unlock more features. You can use this free service forever.How to Compress PDF Online?
Compress 100 Kb Pdf
- Choose and upload the PDF file to 'Compress PDF' tool.
- Select a compressing option, It's recommended to try the Medium compressing at first, you can try other options if the file size is not small enough.
- Click 'Start Conversion' to begin the online PDF compressing.
- Once finished, you can see the file size after compressing and download the compressed file. If the result is not good, click 'Convert this file again' to select another option.