$npx skillfedfor your agent

HTML packages

113 packages · page 1 of 3

Packages

MarkupSafe Worth it
PyPI · HTML · 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 · HTML · 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 · HTML · 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 · HTML · 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 · HTML · 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 · HTML · 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
Sphinx Worth it
PyPI · HTML · released Dec 2025

Sphinx generates professional documentation from reStructuredText source files, producing HTML, PDF, EPUB, and other formats with automatic cross-references, code highlighting, and hierarchical navigation.

BSD-2-Clausepure Python · 3.12+
91.8Mdownloads / mo
jupyterlab-pygments With conditions
PyPI · HTML · released Nov 2023

Provides a Pygments syntax highlighting theme that applies JupyterLab's CSS variables to code displayed in HTML, enabling consistent visual styling across JupyterLab and Pygments-generated output.

Install it if visual consistency between Jupyter and static HTML output matters to your workflow.

BSD-3-Clausepure Python · 3.8+dormant
64.1Mdownloads / mo
readme-renderer Worth it
PyPI · HTML · released Jun 2026

Safely renders README files in Markdown, reStructuredText, and plain text formats to HTML, designed for use in package repositories like PyPI.

Install it if you need to render README files safely to HTML or validate package metadata formatting—it's the standard tool for this task in the Python packaging…

Apache-2.0pure Python · 3.10+
41.7Mdownloads / mo
weasyprint Worth it
PyPI · HTML · released Jun 2026

WeasyPrint converts HTML and CSS into PDF documents using a Python-based rendering engine designed for pagination and document generation.

BSD-3-Clausepure Python · 3.10+
39.7Mdownloads / mo
html5lib Worth it
PyPI · HTML · released Jun 2020

html5lib parses HTML documents into a tree structure conforming to the WHATWG HTML specification, the standard implemented by all major web browsers.

MITpure Python
38.7Mdownloads / mo
tinyhtml5 With conditions
PyPI · HTML · released Mar 2026

Parses HTML5 documents—including malformed ones—into an ElementTree structure, providing a lightweight alternative to full-featured HTML parsers.

MITpure Python · 3.10+
29.4Mdownloads / mo
pymdown-extensions Worth it
PyPI · HTML · released Jul 2026

Pymdown Extensions provides a collection of additional extensions for Python Markdown that add syntax support for advanced formatting, including tabbed content, superfences with syntax highlighting, emoji, and other markup enhancements.

Install it if you need markdown features beyond the standard library.

MITpure Python · 3.10+
26.3Mdownloads / mo
cssselect Worth it
PyPI · HTML · released Jul 2026

cssselect parses CSS3 selectors and translates them to XPath 1.0 expressions for use with XPath engines like lxml to query XML and HTML documents.

Install it if you need to translate CSS selectors to XPath for lxml or similar engines.

BSD-3-Clausepure Python · 3.10+
24.0Mdownloads / mo
lxml-html-clean With conditions
PyPI · HTML · released May 2026

Cleans and sanitizes HTML by removing unwanted tags and attributes using a blocklist approach, extracted from lxml's original HTML cleaner module.

However, do not use it for security-sensitive applications—the maintainers explicitly recommend alternatives like nh3 for those cases.

permissive licensepure Python
20.5Mdownloads / mo
mkdocs-material Worth it
PyPI · HTML · released Jul 2026

Material for MkDocs is a professional theme and extension for MkDocs that transforms Markdown documentation into a responsive, searchable static site with minimal configuration.

Install it if you need to publish Markdown-based documentation as a professional static site without writing custom HTML or CSS.

MITpure Python · 3.8+
17.9Mdownloads / mo
mammoth Worth it
PyPI · HTML · released Aug 2026

Converts Microsoft Word .docx documents to clean HTML or Markdown, using document styles to generate semantic markup rather than attempting to replicate visual formatting.

BSD-3-Clausepure Python · 3.7+
16.1Mdownloads / mo
html2text With conditions
PyPI · HTML · released Apr 2025

Converts HTML to clean, readable plain text or Markdown-formatted output, with options to customize link handling, escaping, and code block marking.

GPL-3.0-or-laterpure Python · 3.9+aging
15.2Mdownloads / mo
htmldate Worth it
PyPI · HTML · released Jun 2026

Extracts original and updated publication dates from web pages by parsing HTML markup, metadata, and text content, with both Python API and command-line interfaces.

Install it if you need reliable date extraction from web pages; the fast mode offers good speed and the extensive mode provides high recall when accuracy matters most.

Apache-2.0pure Python · 3.10+
14.9Mdownloads / mo
mkdocs-material-extensions Skip
PyPI · HTML · released Nov 2023

Provides emoji and SVG icon extensions for MkDocs Material, enabling insertion of Material, FontAwesome, and Octicons into Markdown using emoji syntax.

MITpure Python · 3.8+dormant
14.9Mdownloads / mo
pytablewriter Worth it
PyPI · HTML · released Jan 2025

Converts tabular data into formatted tables for output in multiple text, binary, and application-specific formats including Markdown, HTML, CSV, JSON, Excel, LaTeX, and SQLite.

Install it if you need to generate formatted tables in any of its supported output formats; skip it only if your use case is limited to a single format where a…

MITpure Python · 3.9+
14.0Mdownloads / mo
trafilatura Worth it
PyPI · HTML · released Jul 2026

Trafilatura extracts main text, metadata, and structured content from web pages and HTML, converting raw HTML into clean, usable data in multiple output formats.

Apache-2.0pure Python · 3.10+
13.4Mdownloads / mo
jusText With conditions
PyPI · HTML · released Feb 2025

jusText removes boilerplate content (navigation, headers, footers) from HTML pages while preserving text with full sentences, useful for extracting clean content for linguistic analysis and web corpora.

However, maintenance is aging (535 days since last release), so it is best suited for established use cases where the algorithm is known to work well for your content…

BSD-3-Clausepure Pythonaging
11.7Mdownloads / mo
types-html5lib With conditions
PyPI · HTML · released May 2026

Provides type hints for the html5lib HTML parser, enabling static type checkers like mypy and pyright to validate code that uses html5lib.

Apache-2.0pure Python · 3.10+
10.2Mdownloads / mo
sgmllib3k Skip
PyPI · HTML · released Aug 2010

A Python 3 port of the deprecated stdlib sgmllib module for parsing SGML and HTML documents using an event-driven interface.

Install only if you are maintaining legacy code with a hard dependency on sgmllib3k and cannot refactor to a maintained alternative.

BSD-3-Clausebuilds from sourceabandoned
10.1Mdownloads / mo
markdown2 Worth it
PyPI · HTML · released Mar 2026

Converts Markdown text to HTML using a fast, complete Python implementation of the Markdown specification.

Install it if you need reliable Markdown rendering without external dependencies.

permissive licensepure Python
9.7Mdownloads / mo
cssutils With conditions
PyPI · HTML · released Apr 2026

cssutils parses and builds CSS stylesheets as a DOM structure without rendering—it reads, modifies, and serializes CSS according to W3C specifications.

LGPL-3.0-or-laterpure Python · 3.10+
9.4Mdownloads / mo
pdfkit With conditions
PyPI · HTML · released Nov 2021

Python wrapper for wkhtmltopdf that converts HTML to PDF using the Webkit rendering engine, supporting URLs, files, and HTML strings as input.

permissive licensepure Pythondormant2 known vulnerabilities
7.8Mdownloads / mo
RTFDE With conditions
PyPI · HTML · released Dec 2025

Extracts encapsulated HTML and plain text content from RTF bodies in .msg email files, reversing the RTF encapsulation that Microsoft Exchange applies.

LGPL-3.0-onlypure Python · 3.8+aging
6.6Mdownloads / mo
selectolax Worth it
PyPI · HTML · released Jul 2026

selectolax is a fast HTML5 parser with CSS selector support, written in Cython and backed by either the Modest or Lexbor C parsing engines.

MITcompiled wheel
6.1Mdownloads / mo
types-beautifulsoup4 With conditions
PyPI · HTML · released May 2025

Provides type hints for beautifulsoup4 code via PEP 561 stubs, enabling static type checkers to validate code that uses beautifulsoup4.

Install only if your project targets beautifulsoup4 4.12; uninstall if you upgrade to 4.13.0 or later, which includes native type annotations.

Apache-2.0pure Python · 3.9+
5.7Mdownloads / mo
parsel Worth it
PyPI · HTML · released Jan 2026

Parsel extracts data from HTML, JSON, and XML documents using CSS selectors, XPath expressions, JMESPath queries, and regular expressions.

Install it if you need to extract data from HTML, XML, or JSON documents in a Python application.

BSD-3-Clausepure Python · 3.10+
4.9Mdownloads / mo
latex2mathml Worth it
PyPI · HTML · released Apr 2026

Converts LaTeX mathematical expressions to MathML format, available as a Python library and command-line tool.

Install it if you need to convert LaTeX math to MathML; the main unknown is the breadth of LaTeX syntax it handles, which you should verify against your specific use…

permissive licensepure Python · 3.10+
4.7Mdownloads / mo
xhtml2pdf With conditions
PyPI · HTML · released Feb 2025

Converts HTML and CSS to PDF documents using Python, enabling developers with web skills to generate PDF templates without learning specialized PDF libraries.

However, the aging maintenance status (last release 537 days ago) warrants caution in production: verify that its rendering quality and feature set meet your specific…

Apache-2.0pure Python · 3.8+aging
4.3Mdownloads / mo
djlint Worth it
PyPI · HTML · released Aug 2026

djlint formats and lints HTML templates with embedded template syntax (Django, Jinja, Twig, Nunjucks, Handlebars, Liquid, Go templates, and others), fixing indentation, tag case, spacing, and catching structural issues that generic HTML tools miss.

GPL-3.0-or-laterpure Python · 3.10+
3.6Mdownloads / mo
css-inline Worth it
PyPI · HTML · released Aug 2026

Inlines CSS from style and link tags directly into HTML element style attributes, transforming external stylesheets into inline styles suitable for email and embedded HTML contexts.

MITcompiled wheel · 3.10+
3.1Mdownloads / mo
pagefind Worth it
PyPI · HTML · released Apr 2026

Provides an async Python API to index and search HTML content, enabling full-text search indexing of static sites and custom content.

Install it if you need to index HTML or custom content for search—particularly valuable for static site generators and documentation platforms where you want search…

MITpure Python · 3.9+
2.7Mdownloads / mo
ansi2html Worth it
PyPI · HTML · released Jun 2024

Converts terminal output with ANSI color codes to HTML or LaTeX, preserving colors and formatting for display in browsers or documents.

Install it if you need to convert ANSI-colored terminal output to HTML or LaTeX.

LGPL-3.0-or-laterpure Python · 3.7+
2.3Mdownloads / mo
dominate Worth it
PyPI · HTML · released Dec 2023

Dominate is a Python library for writing HTML documents programmatically using a DOM API, letting you generate HTML pages in pure Python without learning a template language.

Install it if you prefer writing HTML in Python over templates or string manipulation.

LGPL-3.0-onlypure Python · 3.4+
2.1Mdownloads / mo
pyquery Worth it
PyPI · HTML · released Jul 2026

pyquery lets you query and manipulate XML and HTML documents using a jQuery-like API, built on lxml for fast parsing and transformation.

permissive licensepure Python
2.0Mdownloads / mo