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-4.1 . Running easy_install lxml==4.1bugfix will install the unreleased branch state from https://github.com/lxml/lxml/tarball/lxml-4.1#egg=lxml-4.1bugfix as soon as a maintenance branch has been established. Note that this requires Cython to be installed at an appropriate version for the build.
4.1.0 (2017-10-13)
Features added
ElementPath supports text predicates for current node, like “[.=’text’]”.
ElementPath allows spaces in predicates.
Custom Element classes and XPath functions can now be registered with a decorator rather than explicit dict assignments.
Static Linux wheels are now built with link time optimisation (LTO) enabled. This should have a beneficial impact on the overall performance by providing a tighter compiler integration between lxml and libxml2/libxslt.
Bugs fixed
LP#1722776: Requesting non-Element objects like comments from a document with PythonElementClassLookup could fail with a TypeError.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for lxml-4.1.0-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d2c121f5f77bed1e1eddeee23ee76fee8a3d48fa7a3aab589d12942f87778a9e |
|
MD5 | 39968c1fe9bbfa0e9f0c4a69a257fe00 |
|
BLAKE2b-256 | 1226c06aa2bb0c342400e268abfe2229d90252f1f96aed785d5575c62ae83e68 |
Hashes for lxml-4.1.0-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93df9805146980e83834ea9320baa6a56d8aea45f63d7d3cc721f71eb1a1bac6 |
|
MD5 | c289c71c7d57da0c35703e055f0d96dd |
|
BLAKE2b-256 | c83e340c17661a81656dfe96f87aa04b6ed5421673a5d2e59eb13649533f00ad |
Hashes for lxml-4.1.0-cp36-cp36m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd7c22bf890d266e72c5e5c8c44555ffbfe4ca2a329da785e7d8b1972fc3ff74 |
|
MD5 | b55a1ea5c868a4188d61213621f60d71 |
|
BLAKE2b-256 | a6d503e9fab02f5044e5bf55670cd5c85ed41bfac33a912c99f62c089a5ad660 |
Hashes for lxml-4.1.0-cp36-cp36m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d42a5182d4b0953d02e5f46c9f0dc304be736fbaa1c0d2f11326182b9684b5f4 |
|
MD5 | cd3b6f964f671cae3c763acb8bb3b405 |
|
BLAKE2b-256 | dd65803ae5fc38c12089ac44933ac6f809f9207001836001ef49c01dcfd8e76d |
Hashes for lxml-4.1.0-cp35-cp35m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c10ad53216d5af2b3ba63e65db793cb7dd7e598e17826938045e32f38b0e4814 |
|
MD5 | 05399c575e69874e6b55ab0e8ab99335 |
|
BLAKE2b-256 | 86194329e5f1f955c2796e0576255fed9b6bff98a8519c1932c928fa86c7d0c9 |
Hashes for lxml-4.1.0-cp35-cp35m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 10399bececdb67f0d9251ecf2dda2abf6ddeee6096741754356f1a3715c8c830 |
|
MD5 | af88168d1c6255408f7acee2c7bfb2bd |
|
BLAKE2b-256 | 2ee34e277f42c740d7261d9977a5117a1bce267742560d3eeb634ce73a6dcca8 |
Hashes for lxml-4.1.0-cp35-cp35m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb816595494ce21191764572215f56edfbc6d9fbebd1491c8466502892989689 |
|
MD5 | 5974c14cc8a31cfecd6194dfcad990fe |
|
BLAKE2b-256 | 6dcff6ce95e9a79515703eefbbff6aa9b0d113aa5d5ae4b8083aa87f6c0c56b2 |
Hashes for lxml-4.1.0-cp35-cp35m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5caec9b174dbf927034d588669c62d2a9d0ce447365b20a3463f4daab1e4f03b |
|
MD5 | ea072f245405744262491ec41fd7f5c9 |
|
BLAKE2b-256 | 38efc17279d77345ed8ba1aca71a2b5ff2f9c386b94705871beb20aa7e25d44b |
Hashes for lxml-4.1.0-cp34-cp34m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 307d325ee143b60b9c82912e96e9f4345200c33c8ae00b04b001e4c85fb5f146 |
|
MD5 | 2d04ecc93f79a6d20f8450a3911f5fce |
|
BLAKE2b-256 | 277bd3c58104e1fcf579395941b21c2601814331c1c93a2623cfc817323973c6 |
Hashes for lxml-4.1.0-cp34-cp34m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4433655219b84a360dbdf2c34d9625c3988a272e6fc028222d528ad5902f6a2 |
|
MD5 | eaf7fc9cb57d237df5c33d6b7de4a249 |
|
BLAKE2b-256 | 0bb53c34e713fea16d205f2901eef9e41e802464de12bd9c7eb7936677543e57 |
Hashes for lxml-4.1.0-cp34-cp34m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | feb2144c2ae4035ad57165dd22bdc93b1389158a985c0497a096d39e2b2cd67b |
|
MD5 | ec0ca3f1b98e9fa5cc9fc74ac60c4282 |
|
BLAKE2b-256 | 9bff02675bf77bc92905606a2b16d76e2420f427a0e4fd787af47f458f3b4150 |
Hashes for lxml-4.1.0-cp34-cp34m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e92af0fd08c7d2176ad4be4a7c47fd800d6ee05046b41e36ed579c01fb106c25 |
|
MD5 | 8006a55604cbf354865ca45fc3edf10e |
|
BLAKE2b-256 | 6c5028641e63023174be7a146d88ee90cc0ffc686960637f680662ae9e78793e |
Hashes for lxml-4.1.0-cp33-cp33m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3d5a0ecf0c2c31c404246b6706b2e477159ee07b73be5102389ab250dd67701 |
|
MD5 | da4949a9ae8a1d4eea8fadf49996db8a |
|
BLAKE2b-256 | 6ab631e06fdca1adb223d62150d28518d43329d610eb94b481f3a2d38e05b2d3 |
Hashes for lxml-4.1.0-cp33-cp33m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cfbf0b956f33cda3af2a1438a2541549b69a7a240e71de7d8ca819b8f1547aac |
|
MD5 | aecb07c69ef78b9ff3763a953924ebb6 |
|
BLAKE2b-256 | 3a5aaab7ab1d623bf314a2c1937599b7d8c4908430f31da33fb33d9bc6c1cf00 |
Hashes for lxml-4.1.0-cp33-cp33m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9007da6fb1b96fb1c9d7bd65e97bbbad60295abc19833d7e67e05314c1868f58 |
|
MD5 | b4934bd849838336497884a309374745 |
|
BLAKE2b-256 | 2f5f3e62087a94acbf617c43905488a331bd574a97cfaeef24b62347a0a04659 |
Hashes for lxml-4.1.0-cp33-cp33m-macosx_10_6_x86_64.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fafeb4b190bd63ba2bcee2496d99cb7345fafbace6b999403010abdff8c05b72 |
|
MD5 | ec8e87620605c0cb8bcd5c87625bb01a |
|
BLAKE2b-256 | 21c68884ddfecda2cced05e875429c1745516fdd623dbb0de1a605c1298909d3 |
Hashes for lxml-4.1.0-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5da6f5b31ea2b573cb20e88aefc6b49d849d07588ba60871342cae42f569b0d7 |
|
MD5 | 2f55eb719bf40786341be90154d494eb |
|
BLAKE2b-256 | 4c8cc2f29798a3238de79d5951c3faa80ddb18ad84e8408f7d9b5bae09409996 |
Hashes for lxml-4.1.0-cp27-cp27mu-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1548247ea3b50014a3ea55ad9446108df191b6a6e51aa8f5953c95b663f382ff |
|
MD5 | e9dca394eaf0a2082c00efd4bd74a4ce |
|
BLAKE2b-256 | 42dd96e63cf6a7a0a8afe8e713db832c8beb7248ec259e3dbe7b99c6933ac669 |
Hashes for lxml-4.1.0-cp27-cp27m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b9e1735918fc1e83c522b9f1048e6bc5af38af958e4efc843046e4b0075a021b |
|
MD5 | 0cd00e9c85f86dd1bc59be8cbf18cf43 |
|
BLAKE2b-256 | b2b062707ab99b1784689698b14f98bbf238610edeaf9ecd3f9955740fbfee7f |
Hashes for lxml-4.1.0-cp27-cp27m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1deacd52638da2d7fcb864c3949f0285638ec10e6aace93ce15c6a2e0ed91b95 |
|
MD5 | d84b2d4855e26c6ad71304e2ccdce58c |
|
BLAKE2b-256 | 4e821b6e1d1fd049eec6d6300928be63b852c49e25fdbd805e173b94b8d49173 |
Hashes for lxml-4.1.0-cp27-cp27m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3a98dda9831a37ef7f55c5e69c0d276c278f24978f5b36b9fad7eac05a22bfc |
|
MD5 | 7210987867eeffeaac474eefc49a0297 |
|
BLAKE2b-256 | c441482711d48fec992ac5b94df59dbf09e1e27fe3ba2285811a555cd50964a6 |
Hashes for lxml-4.1.0-cp27-cp27m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a8715539adb41c78129983ba69d852e0102a3f51d559eeb91dce1f6290c4ad0 |
|
MD5 | 29224ab3aaaf51be1571c1fcd06a93b8 |
|
BLAKE2b-256 | 3c5247a0c8b2b33c408d0379279b8636e50c98f5d58a1ea832ace8b76ce16de2 |