$npx skillfedfor your agent

XML packages

47 packages · page 1 of 2

Packages

beautifulsoup4 Worth it
PyPI · XML · 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 · XML · 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
defusedxml Worth it
PyPI · XML · released Mar 2021

Defusedxml hardens Python's standard XML libraries against XML bomb attacks and entity expansion exploits by providing drop-in replacements that disable dangerous parsing features by default.

Install it if your application parses any XML from untrusted sources.

permissive licensepure Pythondormant
241.2Mdownloads / mo
docutils With conditions
PyPI · XML · 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
xmltodict Worth it
PyPI · XML · released Feb 2026

Converts XML to Python dictionaries and back, treating XML parsing and generation like working with JSON.

MITpure Python · 3.9+
127.1Mdownloads / mo
Sphinx Worth it
PyPI · XML · 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
feedparser Worth it
PyPI · XML · released Jul 2026

Parses Atom and RSS feeds (including RSS 0.9x, RSS 1.0, RSS 2.0, CDF, Atom 0.3, and Atom 1.0) into Python data structures.

Install it if you need to consume RSS or Atom feeds.

permissive licensepure Python · 3.10+
20.3Mdownloads / mo
trafilatura Worth it
PyPI · XML · 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
xmlsec With conditions
PyPI · XML · released Nov 2025

Python bindings for XML Security Library, enabling cryptographic signing and verification of XML documents.

MITcompiled wheel · 3.9+
12.0Mdownloads / mo
elementpath Worth it
PyPI · XML · released Aug 2026

Provides XPath 1.0, 2.0, 3.0, and 3.1 selectors for querying ElementTree and lxml XML data structures using standard XPath expressions.

Install it if you need to query XML with XPath expressions beyond version 1.0.

MITpure Python · 3.10+
8.9Mdownloads / mo
xmlschema Worth it
PyPI · XML · released Jun 2026

Validates XML documents against XSD schemas and converts XML to/from Python data structures and JSON.

MITpure Python · 3.10+
8.5Mdownloads / mo
pdfkit With conditions
PyPI · XML · 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
svglib Worth it
PyPI · XML · released Aug 2026

Svglib reads SVG files and converts them to ReportLab Drawing objects, which can then be rendered to PDF, bitmap, or other formats supported by ReportLab.

LGPL-3.0-or-laterpure Python · 3.9+
5.9Mdownloads / mo
parsel Worth it
PyPI · XML · 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
xhtml2pdf With conditions
PyPI · XML · 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
xsdata Worth it
PyPI · XML · released Feb 2026

xsdata generates Python dataclasses from XML schemas, WSDL, DTD, and JSON documents, then parses and serializes XML and JSON data using those generated models.

MITpure Python · 3.10+
3.5Mdownloads / mo
pydantic-xml Worth it
PyPI · XML · released Aug 2026

Pydantic-xml adds XML serialization and deserialization to pydantic models, letting you bind model fields to XML attributes, elements, and text content, then convert between Python objects and XML documents.

permissive licensepure Python · 3.8+
2.5Mdownloads / mo
doclang Worth it
PyPI · XML · released Jul 2026

DocLang is a reference toolkit for validating and packaging documents in DocLang format, an AI-native markup designed to preserve structure and semantics while mapping cleanly to LLM tokens.

Apache-2.0pure Python · 3.10+
2.3Mdownloads / mo
pybtex Worth it
PyPI · XML · released Apr 2026

Pybtex reads bibliography data from BibTeX, BibTeXML, or YAML files and generates formatted bibliographies in LaTeX, HTML, markdown, or plain text, supporting both BibTeX style files and Python-based custom styles.

Install it if you need to process BibTeX files programmatically, generate bibliographies in multiple formats, or integrate bibliography handling into a Python workflow.

MITpure Python · 3.8+
1.9Mdownloads / mo
python-benedict Worth it
PyPI · XML · released Jul 2026

A dict subclass that adds dot-notation access, keypath queries, and normalized I/O for formats like JSON, YAML, CSV, XML, and others.

Install it if you work frequently with nested dicts, multi-format data loading, or want cleaner syntax for accessing deeply nested values—the keypath and I/O features…

MITpure Python
1.5Mdownloads / mo
dict2xml Worth it
PyPI · XML · released Jan 2026

Converts Python dictionaries into XML strings with configurable formatting, wrapping, and tag behavior.

Install it if you need straightforward dictionary-to-XML conversion.

MITpure Python · 3.5+aging
1.1Mdownloads / mo
xmlunittest With conditions
PyPI · XML · released Jul 2024

Extends Python's unittest framework to compare XML documents structurally using XPath expressions and lxml, rather than comparing raw XML strings.

MITpure Python · 3.8+dormant
1.0Mdownloads / mo
pybtex-docutils With conditions
PyPI · XML · released Aug 2023

Integrates BibTeX citations into docutils-generated documentation, enabling bibliography rendering in reStructuredText documents without Sphinx.

However, maintenance is aging (last release 1088 days ago); verify compatibility with your docutils version before relying on it in production.

MITpure Python · 3.7+aging
884.5Kdownloads / mo
MarkupPy Worth it
PyPI · XML · released Mar 2025

MarkupPy generates HTML and XML markup from Python code using an intuitive, pythonic API without external dependencies.

Install it if you need to build markup from Python code without external dependencies or template syntax overhead.

MITpure Python · 2.7+
818.4Kdownloads / mo
prettierfier Skip
PyPI · XML · released Jul 2019

Reformats HTML and XML strings with intelligent inline-tag handling, avoiding the excessive line breaks that tools like BeautifulSoup.prettify() introduce between tags that should stay on the same line.

MITpure Pythonabandoned
615.0Kdownloads / mo
imgkit With conditions
PyPI · XML · released Feb 2023

imgkit wraps the wkhtmltoimage command-line tool to convert HTML (from URLs, files, or strings) into image files using the Webkit rendering engine.

However, do not use it in production without understanding that no upstream maintenance is available—if wkhtmltoimage itself breaks or you encounter bugs in imgkit,…

MITpure Pythonabandoned
598.5Kdownloads / mo
xmltojson With conditions
PyPI · XML · released Oct 2024

Converts XML documents to JSON format via a Python library or command-line tool, using xmltodict as its underlying parser.

Apache-2.0pure Pythondormant
583.4Kdownloads / mo
junos-eznc Worth it
PyPI · XML · released Jun 2026

Junos PyEZ is a Python library for remotely managing and automating Junos devices via NETCONF, enabling both interactive scripting and programmatic control without requiring deep Junos XML API knowledge.

Install it if you need to programmatically manage Junos devices; skip it if you have no Junos devices or prefer CLI-only management.

Apache-2.0pure Python · 3.8+
519.9Kdownloads / mo
xmldiff Worth it
PyPI · XML · released Jun 2026

xmldiff compares two XML files or trees and produces a human-readable diff that accounts for the hierarchical structure of XML, rather than treating it as flat text.

MITpure Python · 3.8+
374.3Kdownloads / mo
mechanize With conditions
PyPI · XML · released Apr 2024

Automate programmatic interaction with HTTP web servers by simulating a stateful browser—fill forms, follow links, manage history, and parse HTML without a GUI.

However, consider that maintenance is aging—last release was 840 days ago—so evaluate whether the package meets your Python version and modern web compatibility needs…

BSD-3-Clausepure Pythonaging
364.6Kdownloads / mo
PyXB-X With conditions
PyPI · XML · released Jul 2026

PyXB-X generates Python classes from XMLSchema definitions, enabling bidirectional conversion between XML documents and Python objects with a Pythonic interface.

Apache-2.0pure Python
349.7Kdownloads / mo
feedgen With conditions
PyPI · XML · released Dec 2023

Generates web feeds in ATOM and RSS formats, with support for extensions including podcast feeds.

BSD-3-Clausebuilds from sourcedormant
336.3Kdownloads / mo
xsdata-pydantic Worth it
PyPI · XML · released May 2024

Generates pydantic models from XML and JSON schemas, then parses and serializes XML/JSON documents as typed Python objects using those models.

MITpure Python · 3.8+
313.2Kdownloads / mo
arelle-release Worth it
PyPI · XML · released Aug 2026

Arelle is an end-to-end XBRL processor that validates, parses, and transforms financial reporting documents in XBRL format, accessible via GUI, CLI, Python API, and web service.

Install it if you need to validate, parse, or transform XBRL financial reports—especially for SEC, EU, or other regulatory filings.

Apache-2.0pure Python · 3.10+
295.1Kdownloads / mo
Genshi With conditions
PyPI · XML · released May 2026

Genshi is a Python library for parsing, generating, and processing HTML, XML, and other textual content, with a built-in template language inspired by Kid for web output generation.

However, verify Python version support for your target runtime, as classifiers list both Python 2 and 3 without specifying which versions are actually supported.

BSD-3-Clausepure Python
290.0Kdownloads / mo
fastkml Worth it
PyPI · XML · released Nov 2025

Reads, writes, and manipulates KML files—an XML-based geospatial data format—using a simple Python API with support for geometry objects and date/time handling.

copyleftpure Python · 3.9+
280.7Kdownloads / mo
jxmlease With conditions
PyPI · XML · released May 2020

Converts XML to Python data structures (lists, dicts, strings) that preserve XML metadata, and converts Python objects back to XML.

However, do not use it for new projects requiring active maintenance, security updates, or support for modern Python versions beyond 3.5.

MITpure Pythonabandoned
205.8Kdownloads / mo
ultimate-sitemap-parser Worth it
PyPI · XML · released Jun 2026

Parses and crawls sitemaps in multiple formats (XML, RSS, Atom, plain text, Google News/Image) and extracts URLs efficiently without loading entire trees into memory.

GPL-3.0-or-laterpure Python · 3.10+
198.4Kdownloads / mo
Sickle With conditions
PyPI · XML · released May 2020

Sickle is a lightweight Python client library for harvesting metadata from OAI-PMH (Open Archives Initiative Protocol for Metadata Harvesting) compliant repositories, handling all six OAI verbs and automatically deserializing Dublin Core metadata.

However, verify that your target repositories still use OAI-PMH and that you are comfortable with no future updates or support for newer Python versions.

BSD-3-Clausepure Pythonabandoned
165.7Kdownloads / mo
bioc With conditions
PyPI · XML · released Aug 2023

Reads and writes biomedical text annotation formats—BioC XML/JSON, Brat standoff, and PubTator—with a marshal/pickle-like API.

Install only if you are confident the format specifications and your dependencies will remain compatible, or if you plan to maintain a fork yourself.

MITpure Python · 3.6+abandoned
165.7Kdownloads / mo