Python bindings for the Go tdewolff/minify library, providing fast minifiers for HTML, CSS, JS, JSON, SVG, and XML. Current version 2.24.12, released monthly.
pip install tdewolff-minifyVerified import paths — ran on the pinned version, not inferred.
Basic CSS minification. Use 'text/html', 'text/javascript', etc. for other types.
Replace 'KeepCSS2=True' with 'Version=2' in CSSOptions.
Use 'pip install tdewolff-minify' for installation, but 'from tdewolff_minify import ...' in code.
Set CSSOptions.KeepInlineSVG=True instead of using SVG.Inline.
No dependency data recorded yet.