--- id: htmlmin version: "0.1.12" license: BSD license_treatment: permissive maintenance: abandoned --- # htmlmin — An HTML Minifier License: permissive · Maintenance: abandoned · Downloads: 985.3K/mo ## What it is and what it does htmlmin is a Python library that reduces HTML file size by removing unnecessary whitespace, comments, and other redundant markup while preserving the document's structure and functionality. It offers configurable options to control what gets minified, allowing you to balance file-size reduction against the risk of breaking layout or behavior. The package has no runtime dependencies and installs from source only. However, it has been abandoned since late 2017 and receives no maintenance; the last commit was in 2021 but no releases followed. It was originally designed for Python 2.7 and 3.2, making its behavior on modern Python versions uncertain. Use it for: - Reduce HTML payload size in static site generators or build pipelines before deployment. - Minify HTML templates in web applications to lower bandwidth costs and improve page load times. - Strip comments and whitespace from generated HTML in automated testing or documentation workflows. - Integrate HTML compression into CI/CD pipelines for front-end asset optimization. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Minifies HTML by removing unnecessary whitespace and comments while preserving functionality, with configurable safety options to prevent breaking changes. No. The package is abandoned (last release 2017-12-29, last commit 2021-10-20) with no maintenance or compatibility updates. High install friction (source-only distribution) and unverified Python compatibility compound the risk. For modern HTML minification, choose an actively maintained alternative. ## Install pip install htmlmin uv add htmlmin poetry add htmlmin ## Installing htmlmin Before you install: High install friction due to source distribution only. Package is abandoned—last release was 2017-12-29 and last commit 2021-10-20—so expect no maintenance, bug fixes, or compatibility updates. License in practice: BSD license is permissive, allowing commercial and private use with minimal restrictions; you may use and modify freely provided you retain the license notice. Quickstart: pip install htmlmin import htmlmin minified = htmlmin.minify(' Hello ') Package classifiers indicate Python 2.7 and 3.2 support; compatibility with modern Python versions is unverified and likely broken given abandonment since 2017. Verify before relying: - Whether htmlmin works correctly with modern Python versions, given the last release predates current standards by years. - What specific 'safety features' the minifier provides and how they differ from other HTML minifiers. - Whether the package handles modern HTML5 constructs and attributes correctly. ## Package facts - License: BSD (permissive) - Python support: unspecified - Install friction: high - Maintenance: abandoned - Downloads: 985.3K/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags html minifier, reduce html file size, html whitespace removal, compress html markup, html optimization, strip html comments, abandoned, html-optimization [View on SkillFed](https://skillfed.io/packages/htmlmin) · [View on PyPI](https://pypi.org/project/htmlmin/)