Skip to main content

Powerful and Pythonic XML processing library combining libxml2/libxslt with the ElementTree API.

Project 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. To the same end, running easy_install lxml==dev will install lxml from https://github.com/lxml/lxml/tarball/master#egg=lxml-dev if you have an appropriate version of Cython installed.

After an official release of a new stable series, bug fixes may become available at https://github.com/lxml/lxml/tree/lxml-5.0 . Running easy_install lxml==5.0bugfix will install the unreleased branch state from https://github.com/lxml/lxml/tarball/lxml-5.0#egg=lxml-5.0bugfix as soon as a maintenance branch has been established. Note that this requires Cython to be installed at an appropriate version for the build.

5.0.1 (2024-01-05)

Bugs fixed

  • LP#2046208: Parsing non-BMP Python Unicode strings could fail on macOS.

  • LP#2044225: When incrementally parsing broken HTML, reporting start events on missing structural tags failed and could lead to subsequent exceptions.

  • LP#2045435: Some (not all) issues with stricter C compilers were resolved.

  • The binary wheels in the 5.0.0 release did not validate cleanly (but installed ok).

Release history Release notifications | RSS feed

This version

5.0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lxml-5.0.1.tar.gz (3.9 MB view hashes)

Uploaded Source

Built Distributions

lxml-5.0.1-pp310-pypy310_pp73-win_amd64.whl (3.5 MB view hashes)

Uploaded PyPy Windows x86-64

lxml-5.0.1-pp310-pypy310_pp73-manylinux_2_28_x86_64.whl (6.4 MB view hashes)

Uploaded PyPy manylinux: glibc 2.28+ x86-64

lxml-5.0.1-pp310-pypy310_pp73-macosx_11_0_x86_64.whl (4.1 MB view hashes)

Uploaded PyPy macOS 11.0+ x86-64

lxml-5.0.1-pp39-pypy39_pp73-win_amd64.whl (3.6 MB view hashes)

Uploaded PyPy Windows x86-64

lxml-5.0.1-pp39-pypy39_pp73-manylinux_2_28_x86_64.whl (6.4 MB view hashes)

Uploaded PyPy manylinux: glibc 2.28+ x86-64

lxml-5.0.1-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_24_x86_64.whl (6.1 MB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ x86-64 manylinux: glibc 2.24+ x86-64

lxml-5.0.1-pp39-pypy39_pp73-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_24_i686.whl (6.2 MB view hashes)

Uploaded PyPy manylinux: glibc 2.12+ i686 manylinux: glibc 2.24+ i686

lxml-5.0.1-pp39-pypy39_pp73-macosx_11_0_x86_64.whl (4.1 MB view hashes)

Uploaded PyPy macOS 11.0+ x86-64

lxml-5.0.1-pp38-pypy38_pp73-win_amd64.whl (3.6 MB view hashes)

Uploaded PyPy Windows x86-64

lxml-5.0.1-pp38-pypy38_pp73-manylinux_2_28_x86_64.whl (6.1 MB view hashes)

Uploaded PyPy manylinux: glibc 2.28+ x86-64

lxml-5.0.1-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_24_x86_64.whl (5.7 MB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ x86-64 manylinux: glibc 2.24+ x86-64

lxml-5.0.1-pp38-pypy38_pp73-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_24_i686.whl (5.9 MB view hashes)

Uploaded PyPy manylinux: glibc 2.12+ i686 manylinux: glibc 2.24+ i686

lxml-5.0.1-pp38-pypy38_pp73-macosx_11_0_x86_64.whl (4.1 MB view hashes)

Uploaded PyPy macOS 11.0+ x86-64

lxml-5.0.1-cp312-cp312-win_amd64.whl (3.9 MB view hashes)

Uploaded CPython 3.12 Windows x86-64

lxml-5.0.1-cp312-cp312-win32.whl (3.6 MB view hashes)

Uploaded CPython 3.12 Windows x86

lxml-5.0.1-cp312-cp312-musllinux_1_1_x86_64.whl (8.0 MB view hashes)

Uploaded CPython 3.12 musllinux: musl 1.1+ x86-64

lxml-5.0.1-cp312-cp312-musllinux_1_1_aarch64.whl (7.7 MB view hashes)

Uploaded CPython 3.12 musllinux: musl 1.1+ ARM64

lxml-5.0.1-cp312-cp312-manylinux_2_28_x86_64.whl (8.1 MB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.28+ x86-64

lxml-5.0.1-cp312-cp312-manylinux_2_28_aarch64.whl (7.8 MB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.28+ ARM64

lxml-5.0.1-cp312-cp312-macosx_11_0_universal2.whl (8.8 MB view hashes)

Uploaded CPython 3.12 macOS 11.0+ universal2 (ARM64, x86-64)

lxml-5.0.1-cp311-cp311-win_amd64.whl (3.9 MB view hashes)

Uploaded CPython 3.11 Windows x86-64

lxml-5.0.1-cp311-cp311-win32.whl (3.6 MB view hashes)

Uploaded CPython 3.11 Windows x86

lxml-5.0.1-cp311-cp311-musllinux_1_1_x86_64.whl (7.9 MB view hashes)

Uploaded CPython 3.11 musllinux: musl 1.1+ x86-64

lxml-5.0.1-cp311-cp311-musllinux_1_1_aarch64.whl (7.8 MB view hashes)

Uploaded CPython 3.11 musllinux: musl 1.1+ ARM64

lxml-5.0.1-cp311-cp311-manylinux_2_28_x86_64.whl (8.2 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.28+ x86-64

lxml-5.0.1-cp311-cp311-manylinux_2_28_aarch64.whl (7.9 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.28+ ARM64

lxml-5.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_24_x86_64.whl (7.2 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64 manylinux: glibc 2.24+ x86-64

lxml-5.0.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_24_aarch64.whl (6.8 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ ARM64 manylinux: glibc 2.24+ ARM64

lxml-5.0.1-cp311-cp311-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_24_i686.whl (7.2 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.12+ i686 manylinux: glibc 2.24+ i686

lxml-5.0.1-cp311-cp311-macosx_11_0_universal2.whl (8.8 MB view hashes)

Uploaded CPython 3.11 macOS 11.0+ universal2 (ARM64, x86-64)

lxml-5.0.1-cp310-cp310-win_amd64.whl (3.9 MB view hashes)

Uploaded CPython 3.10 Windows x86-64

lxml-5.0.1-cp310-cp310-win32.whl (3.6 MB view hashes)

Uploaded CPython 3.10 Windows x86

lxml-5.0.1-cp310-cp310-musllinux_1_1_x86_64.whl (7.8 MB view hashes)

Uploaded CPython 3.10 musllinux: musl 1.1+ x86-64

lxml-5.0.1-cp310-cp310-musllinux_1_1_aarch64.whl (7.6 MB view hashes)

Uploaded CPython 3.10 musllinux: musl 1.1+ ARM64

lxml-5.0.1-cp310-cp310-manylinux_2_28_x86_64.whl (8.0 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.28+ x86-64

lxml-5.0.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_24_x86_64.whl (7.1 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64 manylinux: glibc 2.24+ x86-64

lxml-5.0.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_24_aarch64.whl (6.8 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ ARM64 manylinux: glibc 2.24+ ARM64

lxml-5.0.1-cp310-cp310-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_24_i686.whl (7.2 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.12+ i686 manylinux: glibc 2.24+ i686

lxml-5.0.1-cp310-cp310-macosx_11_0_x86_64.whl (4.8 MB view hashes)

Uploaded CPython 3.10 macOS 11.0+ x86-64

lxml-5.0.1-cp39-cp39-win_amd64.whl (4.0 MB view hashes)

Uploaded CPython 3.9 Windows x86-64

lxml-5.0.1-cp39-cp39-win32.whl (3.6 MB view hashes)

Uploaded CPython 3.9 Windows x86

lxml-5.0.1-cp39-cp39-musllinux_1_1_x86_64.whl (7.8 MB view hashes)

Uploaded CPython 3.9 musllinux: musl 1.1+ x86-64

lxml-5.0.1-cp39-cp39-musllinux_1_1_aarch64.whl (7.6 MB view hashes)

Uploaded CPython 3.9 musllinux: musl 1.1+ ARM64

lxml-5.0.1-cp39-cp39-manylinux_2_28_x86_64.whl (8.0 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.28+ x86-64

lxml-5.0.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_24_x86_64.whl (7.1 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64 manylinux: glibc 2.24+ x86-64

lxml-5.0.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_24_aarch64.whl (6.8 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ ARM64 manylinux: glibc 2.24+ ARM64

lxml-5.0.1-cp39-cp39-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_24_i686.whl (7.2 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.12+ i686 manylinux: glibc 2.24+ i686

lxml-5.0.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl (5.7 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.5+ x86-64

lxml-5.0.1-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.whl (5.5 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.5+ i686

lxml-5.0.1-cp39-cp39-macosx_11_0_x86_64.whl (4.8 MB view hashes)

Uploaded CPython 3.9 macOS 11.0+ x86-64

lxml-5.0.1-cp38-cp38-win_amd64.whl (4.0 MB view hashes)

Uploaded CPython 3.8 Windows x86-64

lxml-5.0.1-cp38-cp38-win32.whl (3.6 MB view hashes)

Uploaded CPython 3.8 Windows x86

lxml-5.0.1-cp38-cp38-musllinux_1_1_x86_64.whl (7.9 MB view hashes)

Uploaded CPython 3.8 musllinux: musl 1.1+ x86-64

lxml-5.0.1-cp38-cp38-musllinux_1_1_aarch64.whl (7.6 MB view hashes)

Uploaded CPython 3.8 musllinux: musl 1.1+ ARM64

lxml-5.0.1-cp38-cp38-manylinux_2_28_x86_64.whl (8.0 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.28+ x86-64

lxml-5.0.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_24_x86_64.whl (7.1 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64 manylinux: glibc 2.24+ x86-64

lxml-5.0.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_24_aarch64.whl (6.8 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ ARM64 manylinux: glibc 2.24+ ARM64

lxml-5.0.1-cp38-cp38-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_24_i686.whl (7.2 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.12+ i686 manylinux: glibc 2.24+ i686

lxml-5.0.1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl (5.7 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.5+ x86-64

lxml-5.0.1-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.whl (5.6 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.5+ i686

lxml-5.0.1-cp37-cp37m-win_amd64.whl (4.0 MB view hashes)

Uploaded CPython 3.7m Windows x86-64

lxml-5.0.1-cp37-cp37m-win32.whl (3.5 MB view hashes)

Uploaded CPython 3.7m Windows x86

lxml-5.0.1-cp37-cp37m-musllinux_1_1_x86_64.whl (7.2 MB view hashes)

Uploaded CPython 3.7m musllinux: musl 1.1+ x86-64

lxml-5.0.1-cp37-cp37m-musllinux_1_1_aarch64.whl (7.0 MB view hashes)

Uploaded CPython 3.7m musllinux: musl 1.1+ ARM64

lxml-5.0.1-cp37-cp37m-manylinux_2_28_x86_64.whl (7.4 MB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.28+ x86-64

lxml-5.0.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_24_x86_64.whl (6.6 MB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.17+ x86-64 manylinux: glibc 2.24+ x86-64

lxml-5.0.1-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_24_aarch64.whl (6.2 MB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.17+ ARM64 manylinux: glibc 2.24+ ARM64

lxml-5.0.1-cp37-cp37m-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_24_i686.whl (6.7 MB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.12+ i686 manylinux: glibc 2.24+ i686

lxml-5.0.1-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl (5.8 MB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.5+ x86-64

lxml-5.0.1-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.whl (5.6 MB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.5+ i686

lxml-5.0.1-cp36-cp36m-win_amd64.whl (4.0 MB view hashes)

Uploaded CPython 3.6m Windows x86-64

lxml-5.0.1-cp36-cp36m-win32.whl (3.6 MB view hashes)

Uploaded CPython 3.6m Windows x86

lxml-5.0.1-cp36-cp36m-musllinux_1_1_x86_64.whl (7.0 MB view hashes)

Uploaded CPython 3.6m musllinux: musl 1.1+ x86-64

lxml-5.0.1-cp36-cp36m-musllinux_1_1_aarch64.whl (6.8 MB view hashes)

Uploaded CPython 3.6m musllinux: musl 1.1+ ARM64

lxml-5.0.1-cp36-cp36m-manylinux_2_28_x86_64.whl (7.2 MB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.28+ x86-64

lxml-5.0.1-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_24_x86_64.whl (6.5 MB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.17+ x86-64 manylinux: glibc 2.24+ x86-64

lxml-5.0.1-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (6.9 MB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.17+ ARM64

lxml-5.0.1-cp36-cp36m-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_24_i686.whl (6.6 MB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.12+ i686 manylinux: glibc 2.24+ i686

lxml-5.0.1-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl (5.7 MB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.5+ x86-64

lxml-5.0.1-cp36-cp36m-manylinux_2_5_i686.manylinux1_i686.whl (5.6 MB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.5+ i686

lxml-5.0.1-cp36-cp36m-macosx_11_0_x86_64.whl (4.7 MB view hashes)

Uploaded CPython 3.6m macOS 11.0+ x86-64

lxml-5.0.1-cp35-cp35m-manylinux_2_5_x86_64.manylinux1_x86_64.whl (5.6 MB view hashes)

Uploaded CPython 3.5m manylinux: glibc 2.5+ x86-64

lxml-5.0.1-cp35-cp35m-manylinux_2_5_i686.manylinux1_i686.whl (5.5 MB view hashes)

Uploaded CPython 3.5m manylinux: glibc 2.5+ i686

lxml-5.0.1-cp27-cp27mu-manylinux_2_5_x86_64.manylinux1_x86_64.whl (5.6 MB view hashes)

Uploaded CPython 2.7mu manylinux: glibc 2.5+ x86-64

lxml-5.0.1-cp27-cp27mu-manylinux_2_5_i686.manylinux1_i686.whl (5.5 MB view hashes)

Uploaded CPython 2.7mu manylinux: glibc 2.5+ i686

lxml-5.0.1-cp27-cp27m-win_amd64.whl (3.9 MB view hashes)

Uploaded CPython 2.7m Windows x86-64

lxml-5.0.1-cp27-cp27m-win32.whl (3.5 MB view hashes)

Uploaded CPython 2.7m Windows x86

lxml-5.0.1-cp27-cp27m-manylinux_2_5_x86_64.manylinux1_x86_64.whl (5.6 MB view hashes)

Uploaded CPython 2.7m manylinux: glibc 2.5+ x86-64

lxml-5.0.1-cp27-cp27m-manylinux_2_5_i686.manylinux1_i686.whl (5.5 MB view hashes)

Uploaded CPython 2.7m manylinux: glibc 2.5+ i686

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page