{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/21"},{"label":"Dynamic Content","url":"https://skillfed.io/packages/category/internet-www-http-dynamic-content/3"}],"enrichment":{"capability":"Flask extension that automatically minifies HTML, JavaScript, CSS, and Less output from your application to reduce response size.","skillfed_tags":["flask-extension","asset-optimization","response-compression"],"use_cases":["Reduce bandwidth and improve page load times in production Flask applications by automatically minifying all HTML, CSS, and JavaScript responses.","Selectively minify only specific routes using decorators when you need fine-grained control over which endpoints have minified output.","Bypass minification for certain endpoints (e.g., API responses or dynamically generated content) using regex patterns to exclude them from processing.","Cache minified response variations to avoid re-minifying identical content on repeated requests, with configurable limits on cached variations.","Customize minification behavior per content type by replacing default parsers or providing custom parser implementations for specific tags."],"what_it_does":"Flask-Minify is a Flask extension that intercepts and minifies HTML, JavaScript, CSS, and Less content in your application's responses. It works by parsing outgoing response bodies and reducing their size through whitespace removal and syntax optimization, using pluggable parsers for each content type. By default it minifies all responses unless explicitly bypassed; you can also run it in passive mode to minify only specific decorated routes.\n\nThe extension depends on six, flask, lesscpy, htmlminf, jsmin, xxhash, and rcssmin for its core minification logic. It supports caching of minified responses to avoid reprocessing identical content, configurable bypass rules using regex patterns, and optional use of a faster Go-based minifier on Linux systems if the tdewolff-minify package is installed.","worth_installing":"Yes. Flask-Minify is actively maintained, has no known vulnerabilities, installs with low friction, and solves a real problem for Flask applications seeking to reduce response size. The MIT license is permissive. Install it if you want automatic minification of HTML, CSS, and JavaScript responses without manual configuration; the decorator and bypass options give you control when you need it."},"id":"flask-minify","links":{"html":"https://skillfed.io/packages/flask-minify","md":"https://skillfed.io/packages/flask-minify.md","pypi":"https://pypi.org/project/flask-minify/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2025-03-29","license_spdx":null,"license_treatment":"permissive","name":"Flask-Minify","python_support":"unspecified","summary":"Flask extension to minify html, css, js and less."},"popularity":{"monthly_downloads":88810,"position":13704,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.50"}
