{"categories":[{"label":"WWW/HTTP","url":"https://skillfed.io/packages/category/internet-www-http/2"}],"enrichment":{"capability":"Django Compressor combines, minifies, and caches linked and inline CSS or JavaScript in Django templates using configurable compilers and filters.","skillfed_tags":["django-middleware","asset-pipeline","performance-optimization"],"use_cases":["Reduce HTTP requests and bandwidth by combining multiple CSS files into one cached asset in production","Automatically minify inline JavaScript and CSS in Django templates without manual build steps","Compile LESS or SASS stylesheets and minify them in a single pipeline step during template rendering","Serve versioned static files with far-future cache headers, ensuring browsers never serve stale assets","Implement custom asset processing (e.g., image-to-data-URI conversion) via extensible filter classes"],"what_it_does":"Django Compressor is a Django app that processes CSS and JavaScript in your templates, combining multiple files into single cached assets and minifying them for production. It wraps your stylesheets and scripts in template tags, parses them for linked and inline resources, applies optional compilers (like LESS or SASS), and outputs optimized `<link>` or `<script>` tags pointing to versioned files. Because the filename is content-dependent, these files can be cached indefinitely without stale-cache concerns.\n\nThe package is highly configurable: you can choose between lxml, BeautifulSoup, html5lib, or a custom HTML parser; swap in different minifiers (YUI Compressor, Closure Compiler, JSMin, csscompressor); or write custom filters for post-processing. For offline workflows, a management command lets you pre-compress assets outside the request cycle. It depends on django, django-appconf, rcssmin, and rjsmin, and supports modern Django versions (4.2 through 6.0) and Python 3.10+.","worth_installing":"Yes. Django Compressor is production-stable, actively maintained, has no known vulnerabilities, and solves a common Django performance need with low install friction. Choose it if you need automatic CSS/JS compression in templates with optional compiler support and offline processing. The MIT license carries no restrictions."},"id":"django-compressor","links":{"html":"https://skillfed.io/packages/django-compressor","md":"https://skillfed.io/packages/django-compressor.md","pypi":"https://pypi.org/project/django-compressor/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2025-11-10","license_spdx":"MIT","license_treatment":"permissive","name":"django-compressor","python_support":"supports_current","summary":"Compresses linked and inline JavaScript or CSS into single cached files."},"popularity":{"monthly_downloads":2275628,"position":3174,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"4.6.0"}
