{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/5"},{"label":"Dynamic Content","url":"https://skillfed.io/packages/category/internet-www-http-dynamic-content"}],"enrichment":{"capability":"Flask-Compress automatically compresses Flask application responses using gzip, deflate, brotli, or zstd based on client capabilities, reducing bandwidth and improving load times.","skillfed_tags":["http-compression","flask-extension","middleware"],"use_cases":["Compress all HTML, CSS, and JavaScript responses in a Flask app to reduce bandwidth without a reverse proxy.","Selectively compress specific views using the @compress.compressed() decorator while leaving others uncompressed.","Serve pre-compressed responses from a cache to reduce CPU load on repeated requests.","Support modern compression algorithms (brotli, zstd) alongside gzip for clients that request them.","Reduce payload size for static files served by Flask when Nginx or similar is not available."],"what_it_does":"Flask-Compress is a Flask extension that automatically compresses HTTP responses using the client's preferred algorithm (gzip, deflate, brotli, or zstd). It inspects the Accept-Encoding request header, respects quality factors, and attaches the appropriate Content-Encoding headers while compressing response data. The extension works transparently\u2014once initialized with a Flask app, it compresses eligible MIME types (HTML, CSS, JavaScript, JSON, SVG, fonts, and others) on every request without requiring changes to route handlers.\n\nThe package supports both global compression and per-view compression via decorators, works with streaming responses, handles ETags for conditional requests, and can integrate with caching layers to serve pre-compressed responses. It's designed as a fallback when a reverse proxy like Nginx cannot handle compression for you, though the documentation notes that server-side compression is the preferred approach.","worth_installing":"Yes, if you need HTTP compression in Flask and cannot use a reverse proxy. The package is actively maintained, has low install friction, carries no security vulnerabilities, and uses a permissive MIT license. It supports current Python versions (3.9\u20133.14) and is straightforward to integrate. Install it when bandwidth reduction or response time matters and you lack infrastructure-level compression."},"id":"flask-compress","links":{"html":"https://skillfed.io/packages/flask-compress","md":"https://skillfed.io/packages/flask-compress.md","pypi":"https://pypi.org/project/flask-compress/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-03-31","license_spdx":null,"license_treatment":"permissive","name":"Flask-Compress","python_support":"supports_current","summary":"Compress responses in your Flask app with gzip, deflate, brotli or zstandard."},"popularity":{"monthly_downloads":3937241,"position":2443,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"1.24"}
