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 subversion 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

Features added

  • When looking for children, lxml.objectify takes ‘{}tag’ as meaning an empty namespace, as opposed to the parent namespace.

Bugs fixed

  • When finished reading from a file-like object, the parser immediately calls its .close() method.

  • When finished parsing, iterparse() immediately closes the input file.

  • Work-around for libxml2 bug that can leave the HTML parser in a non-functional state after parsing a severly broken document (fixed in libxml2 2.7.8).

  • marque tag in HTML cleanup code is correctly named marquee.

Other changes

  • Some public functions in the Cython-level C-API have more explicit return types.

Release history Release notifications | RSS feed

This version

2.3

Download files

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

Source Distribution

lxml-2.3.tar.gz (3.2 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

lxml-2.3.win-amd64-py3.2.exe (1.7 MB view details)

Uploaded Source

lxml-2.3.win-amd64-py3.1.exe (1.7 MB view details)

Uploaded Source

lxml-2.3.win-amd64-py2.7.exe (1.7 MB view details)

Uploaded Source

lxml-2.3.win-amd64-py2.6.exe (1.7 MB view details)

Uploaded Source

lxml-2.3.win32-py3.2.exe (2.7 MB view details)

Uploaded Source

lxml-2.3.win32-py3.1.exe (2.7 MB view details)

Uploaded Source

lxml-2.3.win32-py2.7.exe (2.7 MB view details)

Uploaded Source

lxml-2.3.win32-py2.6.exe (2.7 MB view details)

Uploaded Source

lxml-2.3-py3.2-win-amd64.egg (1.6 MB view details)

Uploaded Egg

lxml-2.3-py3.2-win32.egg (2.6 MB view details)

Uploaded Egg

lxml-2.3-py3.1-win-amd64.egg (1.6 MB view details)

Uploaded Egg

lxml-2.3-py3.1-win32.egg (2.6 MB view details)

Uploaded Egg

lxml-2.3-py2.7-win-amd64.egg (1.6 MB view details)

Uploaded Egg

lxml-2.3-py2.7-win32.egg (2.6 MB view details)

Uploaded Egg

lxml-2.3-py2.7-macosx-10.6-intel.egg (4.0 MB view details)

Uploaded Egg

lxml-2.3-py2.7-macosx-10.3-fat.egg (4.8 MB view details)

Uploaded Egg

lxml-2.3-py2.6-win-amd64.egg (1.6 MB view details)

Uploaded Egg

lxml-2.3-py2.6-win32.egg (2.6 MB view details)

Uploaded Egg

lxml-2.3-py2.6-macosx-10.3-fat.egg (4.8 MB view details)

Uploaded Egg

lxml-2.3-py2.5-macosx-10.3-ppc.egg (4.8 MB view details)

Uploaded Egg

lxml-2.3-py2.5-macosx-10.3-i386.egg (4.8 MB view details)

Uploaded Egg

File details

Details for the file lxml-2.3.tar.gz.

File metadata

  • Download URL: lxml-2.3.tar.gz
  • Upload date:
  • Size: 3.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for lxml-2.3.tar.gz
Algorithm Hash digest
SHA256 eea1b8d29532739c1383cb4794c5eacd6176f0972b59e8d29348335b87ff2e66
MD5 a245a015fd59b63e220005f263e1682a
BLAKE2b-256 eaf8c62f5857ca8274d89932696cb0876dab40385e2293a709a359f92793141e

See more details on using hashes here.

File details

Details for the file lxml-2.3.win-amd64-py3.2.exe.

File metadata

File hashes

Hashes for lxml-2.3.win-amd64-py3.2.exe
Algorithm Hash digest
SHA256 0a73daf28f01c0584c5182fe3023e6b07f3d4d196c2b2d64b7a2d0ef1bfdddfb
MD5 bc0d4a88245a5387a39aafe42bef1bad
BLAKE2b-256 9a017f4964da7fcba72361ddee50456a54d36112247db9cdf2ffa0b5d4f905a7

See more details on using hashes here.

File details

Details for the file lxml-2.3.win-amd64-py3.1.exe.

File metadata

File hashes

Hashes for lxml-2.3.win-amd64-py3.1.exe
Algorithm Hash digest
SHA256 f591b4851e88b1912f484c9d0ed4b02d32849169586e4fcb07a266b8d6bb0423
MD5 8bb4d983f019e064c77eb61ce5f03aaa
BLAKE2b-256 468df879402a8401f0f10d1cbedbcdd99f0b22af93f5d507bab9c05b4b13fd2d

See more details on using hashes here.

File details

Details for the file lxml-2.3.win-amd64-py2.7.exe.

File metadata

File hashes

Hashes for lxml-2.3.win-amd64-py2.7.exe
Algorithm Hash digest
SHA256 e3f6aead2ca76c97351d7ca852330972f00fb20eae105b89c7d614f4884ea407
MD5 3db458d2127e68c49d6694d409322d96
BLAKE2b-256 3a017b0b7fdf5aceb45d2f51d6b4f229b5d856a03716a13f89f7456afc209014

See more details on using hashes here.

File details

Details for the file lxml-2.3.win-amd64-py2.6.exe.

File metadata

File hashes

Hashes for lxml-2.3.win-amd64-py2.6.exe
Algorithm Hash digest
SHA256 02aff8dfc37485c97f3b816297cef3aab6665c793d4849508bc0f5c9b2137f88
MD5 5244c30b0a6fc535004a7a53cac37465
BLAKE2b-256 c9098bb61b9a6d67e57f1cc8e02ebd697f2ca5e3ccb3b686848b0222d2a82f58

See more details on using hashes here.

File details

Details for the file lxml-2.3.win32-py3.2.exe.

File metadata

  • Download URL: lxml-2.3.win32-py3.2.exe
  • Upload date:
  • Size: 2.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for lxml-2.3.win32-py3.2.exe
Algorithm Hash digest
SHA256 3bfdec3dc54ef6ac28aee47b4385661c60fd441a581c9f40f7695e11bbfc5feb
MD5 d20af7a1a2b47433fbbc549ee5b635f4
BLAKE2b-256 18c0ce50496ce5dc131d0303d95ab64d3f230d9ffe329a287951cc9829e74b9e

See more details on using hashes here.

File details

Details for the file lxml-2.3.win32-py3.1.exe.

File metadata

  • Download URL: lxml-2.3.win32-py3.1.exe
  • Upload date:
  • Size: 2.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for lxml-2.3.win32-py3.1.exe
Algorithm Hash digest
SHA256 bcc6a11422a913758c22917cf54dc212f53c3ec2d27a55b0b686bdf3fbad2538
MD5 9ca46d61dbb5df77271c1d07af3ab9d6
BLAKE2b-256 8dd778d4560f9528fe32200cb1749c591d66b9406268b727ea82f1a434976269

See more details on using hashes here.

File details

Details for the file lxml-2.3.win32-py2.7.exe.

File metadata

  • Download URL: lxml-2.3.win32-py2.7.exe
  • Upload date:
  • Size: 2.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for lxml-2.3.win32-py2.7.exe
Algorithm Hash digest
SHA256 f826d25df6db6b030ce19af66efd3204b836f2b1d0034b89b1cf1d7683c18cd4
MD5 9c02aae672870701377750121f5a6f84
BLAKE2b-256 3deeaffbc53073a951541b82a0ba2a70de266580c00f94dd768a60f125b04fca

See more details on using hashes here.

File details

Details for the file lxml-2.3.win32-py2.6.exe.

File metadata

  • Download URL: lxml-2.3.win32-py2.6.exe
  • Upload date:
  • Size: 2.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for lxml-2.3.win32-py2.6.exe
Algorithm Hash digest
SHA256 9c8a8d7695d0ea315c57ae22c1761d28670e74fb128595cd68053a7be67b55b0
MD5 4135a4ac2abe3cb1ef0fa9f198fe3c51
BLAKE2b-256 12a9f729a8dd8b2e8a78b6159b85fc90a44f47d28fed1af273b290ae824e4c02

See more details on using hashes here.

File details

Details for the file lxml-2.3-py3.2-win-amd64.egg.

File metadata

File hashes

Hashes for lxml-2.3-py3.2-win-amd64.egg
Algorithm Hash digest
SHA256 e7b0d4170859aa8ab2d24318f7f55df285c65fe86a9db33378d2b31c9967720b
MD5 5d4cadd6609cf181cf2426478693a2ef
BLAKE2b-256 81f326a227dcc4ec7de8a17773a3e0e8a77aaf26a1e4db203b07625388fc4afe

See more details on using hashes here.

File details

Details for the file lxml-2.3-py3.2-win32.egg.

File metadata

  • Download URL: lxml-2.3-py3.2-win32.egg
  • Upload date:
  • Size: 2.6 MB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for lxml-2.3-py3.2-win32.egg
Algorithm Hash digest
SHA256 92f1dacaeccda9a0d51974ef915c069ac7470846d6ad89500db77dcfd60920c8
MD5 0c8d03cad1eaf5f0146474c09d5dfda2
BLAKE2b-256 89a6a21f1c0dd58ddc633466165bf3eb16bc28e04ed6977f02e15e8e8ac9a260

See more details on using hashes here.

File details

Details for the file lxml-2.3-py3.1-win-amd64.egg.

File metadata

File hashes

Hashes for lxml-2.3-py3.1-win-amd64.egg
Algorithm Hash digest
SHA256 e33d8757ff29ce2dffc73b04cce7b9ab9b224355ea33ba622ad7eb65f6667de9
MD5 9025c6ad371a6bb230f20ec2c4720f91
BLAKE2b-256 65f4f717b8a1e85e30cbc22f3b00fe5ce15757bcf603b22b952664cbd7a96b32

See more details on using hashes here.

File details

Details for the file lxml-2.3-py3.1-win32.egg.

File metadata

  • Download URL: lxml-2.3-py3.1-win32.egg
  • Upload date:
  • Size: 2.6 MB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for lxml-2.3-py3.1-win32.egg
Algorithm Hash digest
SHA256 dd525649a4454444d5bd9cc72363226bbb5e513fa395e48b8257a3bf8346fa86
MD5 84f5d7d34176c2433abb2c7e833cf309
BLAKE2b-256 37876502c85b2d344c5a5e0e60d0680fdd96a7fcad8e8182652fa188852c3a7a

See more details on using hashes here.

File details

Details for the file lxml-2.3-py2.7-win-amd64.egg.

File metadata

File hashes

Hashes for lxml-2.3-py2.7-win-amd64.egg
Algorithm Hash digest
SHA256 85829f320d294d0cf23cace2f0bad66b106392b9bd5cf96379e49e6cd47be102
MD5 be755607b5318f6ed998e5ef58e849f0
BLAKE2b-256 bd113919a3aa3b5adb26ef836957bb3d8b84440ebc5036db3128321d7551301d

See more details on using hashes here.

File details

Details for the file lxml-2.3-py2.7-win32.egg.

File metadata

  • Download URL: lxml-2.3-py2.7-win32.egg
  • Upload date:
  • Size: 2.6 MB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for lxml-2.3-py2.7-win32.egg
Algorithm Hash digest
SHA256 64e56a0d38683c5c1eceecb8d559444f95a2305ad115a777439eb0d89a9c7cdb
MD5 607f701d0961834667abe737b3206215
BLAKE2b-256 d4fae4e0c7a8fe971b10e275cdc20efd16f553a225e700c400c11da25276e4f4

See more details on using hashes here.

File details

Details for the file lxml-2.3-py2.7-macosx-10.6-intel.egg.

File metadata

File hashes

Hashes for lxml-2.3-py2.7-macosx-10.6-intel.egg
Algorithm Hash digest
SHA256 24665ecfda59fce651631ffbc5fbe143b9fd665b5c016ddb6f8575269ca67a28
MD5 52322e4698d68800c6b6aedb0dbe5f34
BLAKE2b-256 41c837c2723c7585362e51179095e3b440c1cf967f72786b71ee4da764bf2d24

See more details on using hashes here.

File details

Details for the file lxml-2.3-py2.7-macosx-10.3-fat.egg.

File metadata

File hashes

Hashes for lxml-2.3-py2.7-macosx-10.3-fat.egg
Algorithm Hash digest
SHA256 547138948b83898486bb6d7441f3717395465287fd2a90b46503edf743751612
MD5 a420c9f2e0106a2c9c836174eb261897
BLAKE2b-256 81f7492028622a32b8e4b2519e3707c1a9234301be8e433566006a90206b57b1

See more details on using hashes here.

File details

Details for the file lxml-2.3-py2.6-win-amd64.egg.

File metadata

File hashes

Hashes for lxml-2.3-py2.6-win-amd64.egg
Algorithm Hash digest
SHA256 3d5539e869b375d463c03b566a39a2347534297332c09e669a5bb5a4cd6ab144
MD5 6fa50c6588061e8e2bd1658367d6f999
BLAKE2b-256 4a5a51ef95329f599d174a35e35ffeb8709198bd77ec24502078810dbffa855c

See more details on using hashes here.

File details

Details for the file lxml-2.3-py2.6-win32.egg.

File metadata

  • Download URL: lxml-2.3-py2.6-win32.egg
  • Upload date:
  • Size: 2.6 MB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for lxml-2.3-py2.6-win32.egg
Algorithm Hash digest
SHA256 7fd5bc37d196e4afdee424329954be0d6d8b35574b4e9fda6109b641871c8cae
MD5 450a455c9ec8d348e1cb05cf7df80ab3
BLAKE2b-256 b7e0a64645b8eb9a713400451f71f0411d31bce3627750db52b388d69a080a9d

See more details on using hashes here.

File details

Details for the file lxml-2.3-py2.6-macosx-10.3-fat.egg.

File metadata

File hashes

Hashes for lxml-2.3-py2.6-macosx-10.3-fat.egg
Algorithm Hash digest
SHA256 600eba1dc95a1b0aca5dc951145e21948bdd22bd12bfd5ab9f86aa0836b1d79b
MD5 592cf7613f84b623b05642bb033c709c
BLAKE2b-256 babd1c37cf9afc90bd11b99c3ee9411db40dd8080aef891ec5385cf5f7a87957

See more details on using hashes here.

File details

Details for the file lxml-2.3-py2.5-macosx-10.3-ppc.egg.

File metadata

File hashes

Hashes for lxml-2.3-py2.5-macosx-10.3-ppc.egg
Algorithm Hash digest
SHA256 6174465ea8e11a9bebe2b14abcc1e5eeadeffbcb3547421ec330ee2798ba0956
MD5 9242c307922e9bb50cc054396567b1ca
BLAKE2b-256 0b6e7acec149b2c5a55d629a6aec15c133b76a48c49959a70485badddfdc8c6f

See more details on using hashes here.

File details

Details for the file lxml-2.3-py2.5-macosx-10.3-i386.egg.

File metadata

File hashes

Hashes for lxml-2.3-py2.5-macosx-10.3-i386.egg
Algorithm Hash digest
SHA256 6f8fc7b3fd1922cad8a5968b010fc465186daa9b7758bcfc17a86cfa667dc768
MD5 94192ff14448c86f33398d0ba24ade4b
BLAKE2b-256 c565c563e9113bd9c505ef9bba6005863fddc3b5db744000da2c0c15ffefa4e3

See more details on using hashes here.

Supported by

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