python-lxml
Port variant v12
Summary Binding to libxml2 and libxslt libraries (3.12)
Package version 6.0.0
Homepage https://lxml.de/
Keywords python
Maintainer Python Automaton
License Not yet specified
Other variants v13
Ravenports Buildsheet | History
Ravensource Port Directory | History
Last modified 27 JUN 2025, 04:25:22 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.0 . Running ``pip install https://github.com/lxml/lxml/archive/refs/heads/lxml-6.0.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.0.0 (2025-06-26) ================== Features added -------------- * GH#463: ``lxml.html.diff`` is faster and provides structurally better diffs. Original patch by Steven Fernandez. * GH#405: The factories Element and ElementTree can now be used in type hints. * GH#448: Parsing from memoryview and other buffers is supported to allow zero-copy parsing. * GH#437: ``lxml.html.builder`` was missing several HTML5 tag names. Patch by Nick Tarleton. * GH#458: CDATA can now be written into the incremental ``xmlfile()`` writer. Original patch by Lane Shaw. * A new parser option ``decompress=False`` was added that controls the automatic input decompression when using libxml2 2.15.0 or later. Disabling this option by default will effectively prevent decompression bombs when handling untrusted input. Code that depends on automatic decompression must enable this option. Note that libxml2 2.15.0 was not released yet, so this option currently has no effect but can already be used. * The set of compile time / runtime supported libxml2 feature names is available as ``etree.LIBXML_COMPILED_FEATURES and etree.LIBXML_FEATURES``. This currently includes catalog, ftp, html, http, iconv, icu, lzma, regexp, schematron, xmlschema, xpath, zlib. Bugs fixed ---------- * GH#353: Predicates in ``.find*()`` could mishandle tag indices if a default namespace is provided. Original patch by Luise K. * GH#272: The head and body properties of ``lxml.html`` elements failed if no such element was found. They now return None instead. Original patch by FVolral. * Tag names provided by code (API, not data) that are longer than INT_MAX could be truncated or mishandled in other ways. * ``.text_content() on lxml.html`` elements accidentally returned a "smart string" without additional information. It now returns a plain string. * LP#2109931: When building lxml with coverage reporting, it now disables the ``sys.monitoring`` support due to the lack of support in https://github.com/nedbat/coveragepy/issues/1790 Other changes ------------- * Support for Python < 3.8 was removed. * Parsing directly from zlib (or lzma) compressed data is now considered an optional feature in lxml. It may get removed from libxml2 at some point for security reasons
Configuration Switches (platform-specific settings discarded)
PY312 ON Build using Python 3.12 PY313 OFF Build using Python 3.13
Package Dependencies by Type
Build (only) python-Cython:single:v12
zlib:dev:std
libxml2:dev:std
libxslt:dev:std
python312:dev:std
python-pip:single:v12
python-setuptools:single:v12
python-wheel:single:v12
python-build:single:v12
python-installer:single:v12
autoselect-python:single:std
Build and Runtime zlib:primary:std
libxml2:primary:std
libxslt:primary:std
python312:primary:std
Download groups
main mirror://PYPI/l/lxml
Distribution File Information
032e65120339d44cdc3efc326c9f660f5f7205f3a535c1fdbf898b29ea01fb72 4096938 python-src/lxml-6.0.0.tar.gz
Ports that require python-lxml:v12
kf6-breeze-icons:std Breeze icon theme for KDE
libreoffice:std Free Software Productivity Suite
python-exhale:v12 C++ library API documentation generator (3.12)
python-junos-eznc:v12 Junos 'EZ' automation for non-programmers (3.12)
python-napalm:v12 Vendor-agnostic router interaction libary (3.12)
python-ncclient:v12 Python library for NETCONF clients (3.12)
python-netbox-fusioninventory-plugin:v12 Fusion inventory agent device import plugin (3.12)
python-patchman:v12 Django based patch status monitoring tool (3.12)
python-premailer:v12 Turns CSS blocks into style attributes (3.12)
python-pyquery:v12 Jquery-like library for python (3.12)
python-relatorio:v12 Templating library for odt and pdf files (3.12)
python-trytond:v12 Tryton server (3.12)
python-xml2rfc:v12 Request For Comment authoring with XML (3.12)