--- id: lxml version: "6.1.1" license: BSD-3-Clause license_treatment: permissive maintenance: active --- # lxml — Powerful and Pythonic XML processing library combining libxml2/libxslt with the ElementTree API. License: permissive · Maintenance: active · Popularity: top 1,000 on PyPI ## Install pip install lxml uv add lxml poetry add lxml ## Description lxml is a Pythonic, mature binding for the libxml2 and libxslt libraries. It provides safe and convenient access to these libraries using the ElementTree API. It extends the ElementTree API significantly to offer support for XPath, RelaxNG, XML Schema, XSLT, C14N and much more. To contact the project, go to the `project home page `_ or see our bug tracker at https://launchpad.net/lxml In case you want to use the current in-development version of lxml, you can get it from the github repository at https://github.com/lxml/lxml . Note that this requires Cython to build the sources, see the build instructions on the project home page. After an official release of a new stable series, bug fixes may become available at https://github.com/lxml/lxml/tree/lxml-6.1 . Running ``pip install https://github.com/lxml/lxml/archive/refs/heads/lxml-6.1.tar.gz`` will install the unreleased branch state as soon as a maintenance branch has been established. Note that this requires Cython to be installed at an appropriate version for the build. 6.1.1 (2026-05-18) ================== Bugs fixed ---------- * The known link attributes in ``lxml.html.defs.link_attrs`` were... ## AI interpretation — verify before relying lxml is a Pythonic binding for libxml2 and libxslt that provides XML and HTML processing with support for XPath, XSLT, XML Schema, and RelaxNG validation through the ElementTree API. Verdict: lxml is a production-stable, actively maintained XML/HTML processing library with broad platform coverage and no known vulnerabilities. Medium install friction is offset by wheel availability and strong maintenance signals. Suitable for production use in XML-heavy applications. [View on SkillFed](https://skillfed.io/packages/lxml) · [View on PyPI](https://pypi.org/project/lxml/)