$npx skillfedfor your agent

htmlmin2

An HTML Minifier

With conditionsPyPI HTMLReleased Mar 20231.3M downloads / moBSDPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — htmlmin2-0.1.13-py3-none-any.whl
v0.1.13 · released 2023-03-14

Yes, if you need a simple, dependency-free HTML minifier for a stable project. The low install friction and permissive BSD license make it easy to adopt. However, be cautious: the package is abandoned and may not work with Python versions released after 2021. Test thoroughly with your target Python version before relying on it in production.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Installation is straightforward with no runtime dependencies.
  • However, the package is abandoned—last commit was 2021-10-20 and no updates have been released since 2023-03-14, creating a maintenance risk for future Python compatibility.

License · maintenance · safety

BSD (permissive) — BSD license is permissive, allowing use in both open-source and commercial projects with minimal restrictions. You must include a copy of the license and acknowledge the original author.

last release 2023-03-14 (1249 days) · last repo commit 2021-10-20 · 137 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,293,344 downloads/mo, #4,100 on PyPI

Verify before relying

pip install htmlmin2

import htmlmin2
minified = htmlmin2.minify('<html>  <body>  Hello  </body>  </html>')
  • Whether the package works reliably with modern Python versions beyond 3.2
  • What specific safety features are configurable and how they prevent breaking changes
  • Whether a maintained fork or alternative is recommended given the abandoned status
Same gist for agents: .md · .json

What it is and what it does

htmlmin2 is a Python library that reduces HTML file size by removing unnecessary whitespace, line breaks, and comments while keeping the markup functional. It's designed for developers who need to optimize HTML output in web applications, static site generators, or build pipelines.

The package has no external runtime dependencies, making it lightweight to install. It supports configurable minification with safety features intended to prevent accidental breakage. However, the project is no longer actively maintained—the last commit was 2021-10-20, and the latest release dates to 2023-03-14. This means you should verify compatibility with your target Python version before relying on it in production.

Use it for

  • Reduce HTML payload size in web applications before serving to browsers
  • Optimize static HTML files generated by site builders or templating systems
  • Strip comments and whitespace from HTML during a build or deployment pipeline
  • Minify HTML email templates to reduce transmission size
  • Post-process HTML output to reduce bandwidth usage

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you need a simple, dependency-free HTML minifier for a stable project.

The low install friction and permissive BSD license make it easy to adopt. However, be cautious: the package is abandoned and may not work with Python versions released after 2021. Test thoroughly with your target Python version before relying on it in production.

Install

htmlmin2 on PyPI

Before you install

Installation is straightforward with no runtime dependencies. However, the package is abandoned—last commit was 2021-10-20 and no updates have been released since 2023-03-14, creating a maintenance risk for future Python compatibility.

License in practice

BSD license is permissive, allowing use in both open-source and commercial projects with minimal restrictions. You must include a copy of the license and acknowledge the original author.

Quickstart

pip install htmlmin2

import htmlmin2
minified = htmlmin2.minify('<html>  <body>  Hello  </body>  </html>')

Verify before relying

  • Whether the package works reliably with modern Python versions beyond 3.2
  • What specific safety features are configurable and how they prevent breaking changes
  • Whether a maintained fork or alternative is recommended given the abandoned status

Package facts

LicenseBSD permissive
Python supportNot specified
Install frictionLow. Pure-Python wheel
Runtime dependenciesNone
MaintenanceAbandoned 1,249 days since the last release
Last repo commit
First released
Downloads1,293,344 / month, #4,100 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 2.7Programming Language :: Python :: 3.2Topic :: Text Processing :: Markup :: HTML

Evidence: htmlmin2-0.1.13-py3-none-any.whl

Tags

Capabilities
html minifierreduce html file sizestrip whitespace htmlhtml compressionminify markuphtml optimizationremove html comments
Topics
html-optimizationabandoned-but-stable

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “reduce html file size”

  • htmlmin2Minifies HTML by removing unnecessary whitespace and comments while…
  • htmlminMinifies HTML by removing unnecessary whitespace and comments while…
  • minify-htmlMinifies HTML, JavaScript, and CSS in a single pass using a…

Give your agent the search over MCP, or paste the wish link into any chat.

More HTML packages

MarkupSafe Worth it
PyPI · Dynamic Content · released Sep 2025

MarkupSafe provides a text object that escapes special characters so untrusted strings can be safely embedded in HTML and XML without injection attacks.

BSD-3-Clausecompiled wheel · 3.9+aging
797.1Mdownloads / mo
Jinja2 Worth it
PyPI · Dynamic Content · released Mar 2025

Jinja2 is a templating engine that renders dynamic content by combining templates with Python-like syntax and data, supporting template inheritance, macros, autoescaping, and sandboxed execution.

BSD-3-Clausepure Python · 3.7+aging
718.6Mdownloads / mo
beautifulsoup4 Worth it
PyPI · Python Modules · released Jun 2026

Beautiful Soup parses HTML and XML documents into a navigable tree, providing Pythonic methods to search, iterate, and modify the parsed content.

Install it if you need to parse or extract data from markup documents.

MITpure Python · 3.7.0+
432.1Mdownloads / mo
lxml Worth it
PyPI · Python Modules · released May 2026

lxml provides Python bindings to libxml2 and libxslt, enabling parsing, validation, and transformation of XML and HTML documents through an ElementTree-compatible API with support for XPath, XSLT, and schema validation.

Install it if you need robust XML/HTML parsing, validation, or transformation; avoid it only if you must stay pure-Python and can accept slower performance.

permissive licensecompiled wheel · 3.8+
416.8Mdownloads / mo
docutils With conditions
PyPI · Software Development · released May 2026

Docutils converts plaintext documentation in reStructuredText format into multiple output formats including HTML, XML, and LaTeX using a modular processing system.

BSD-3-Clausepure Python · 3.9+
225.6Mdownloads / mo
Markdown Worth it
PyPI · Python Modules · released Jul 2026

Converts Markdown text to HTML using a Python implementation of John Gruber's Markdown specification, with support for extensions.

Install it if you need to parse Markdown in Python.

BSD-3-Clausepure Python · 3.10+
121.7Mdownloads / mo

See also django-htmlmin · htmlmin · jsmin · JSON_minify · minify-html · css-html-js-minify · python-minifier · rjsmin · rcssmin · csscompressor