python-lxml
Port variant v15
Summary Binding to libxml2 and libxslt libraries (3.15)
Package version 6.2.1
Homepage https://lxml.de/
Keywords python
Maintainer Python Automaton
License Not yet specified
Other variants v14
Ravenports Buildsheet | History
Ravensource Port Directory | History
Last modified 29 NOV 2026, 19:04:41 UTC
Port created 01 APR 2018, 16:48:53 UTC
Subpackage Descriptions
single 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.2 . Running ``pip install https://github.com/lxml/lxml/archive/refs/heads/lxml-6.2.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.2.1 (2026-11-29) ================== This release fixes regressions in lxml 6.2.0 and covers more edge cases for its security fixes. Upgrading is recommended. Bugs fixed ---------- * GH#620: Pull parsers with a parser target failed on comments and processing instructions when collecting comment or pi events since lxml 6.2.0. Patch by Pierre-Yves Le Borgne. * LP#2178248: The parser target's ``.start()`` callback method stopped receiving a namespace mapping dict in lxml 6.2.0 if no ``.end_ns()`` method was also provided. * GHSA-59qx-3jjv-x996, GH#619: The fix in lxml 6.2.0 did not work with libxml2 < 2.13, which parses entities in a separate parser context. ``iterparse() and XMLPullParser`` could still crash with it on entities that fail to parse, but also on comments and PIs in entities and on entities that are referenced more than once. Patch by Pierre-Yves Le Borgne. * GHSA-59qx-3jjv-x996, GH#619: The fix in lxml 6.2.0 did not cover parsers with ``resolve_entities=False``. libxml2 also parses the internal entities that it does not substitute, and ``iterparse() and XMLPullParser`` could still crash on such entities that fail to parse. Patch by Pierre-Yves Le Borgne. * GHSA-59qx-3jjv-x996, GH#619: An XMLPullParser that was fed again after a parse error reported left-over events of the failed document, which could refer to elements that were already freed. Patch by Pierre-Yves Le Borgne. * LP#2178276: The sdist was missing from the Github release upload.
Configuration Switches (platform-specific settings discarded)
PY314 OFF Build using Python 3.14 PY315 ON Build using Python 3.15
Package Dependencies by Type
Build (only) python-Cython:single:v15
zlib:dev:std
libxml2:dev:std
libxslt:dev:std
python315:dev:std
python-pip:single:v15
python-setuptools:single:v15
python-wheel:single:v15
python-build:single:v15
python-installer:single:v15
autoselect-python:single:std
Build and Runtime zlib:primary:std
libxml2:primary:std
libxslt:primary:std
python315:primary:std
Download groups
main mirror://PYPI/l/lxml
Distribution File Information
6cb01e7459e7a99d0e446ef323ec4e2c50549407d606756d1ed5f3e0dc82b8c6 4483231 python-src/lxml-6.2.1.tar.gz
Ports that require python-lxml:v15
python-afdko:v15 Adobe Font Development Kit for OpenType (3.15)
python-exhale:v15 C++ library API documentation generator (3.15)
python-junos-eznc:v15 Junos 'EZ' automation for non-programmers (3.15)
python-napalm:v15 Vendor-agnostic router interaction libary (3.15)
python-ncclient:v15 Python library for NETCONF clients (3.15)
python-netbox-fusioninventory-plugin:v15 Fusion inventory agent device import plugin (3.15)
python-premailer:v15 Turns CSS blocks into style attributes (3.15)
python-pyquery:v15 Jquery-like library for python (3.15)
python-relatorio:v15 Templating library for odt and pdf files (3.15)
python-trytond:v15 Tryton server (3.15)
python-xml2rfc:v15 Request For Comment authoring with XML (3.15)