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.2 . Running easy_install lxml==4.2bugfix will install the unreleased branch state from https://github.com/lxml/lxml/tarball/lxml-4.2#egg=lxml-4.2bugfix 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.2.0 (2018-03-13)
Features added
GH#255: SelectElement.value returns more standard-compliant and browser-like defaults for non-multi-selects. If no option is selected, the value of the first option is returned (instead of None). If multiple options are selected, the value of the last one is returned (instead of that of the first one). If no options are present (not standard-compliant) SelectElement.value still returns None.
GH#261: The HTMLParser() now supports the huge_tree option. Patch by stranac.
Bugs fixed
LP#1551797: Some XSLT messages were not captured by the transform error log.
LP#1737825: Crash at shutdown after an interrupted iterparse run with XMLSchema validation.
Other changes
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.2.0-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf63f590090404c52f179b7ceacb7cd549de3a1697bcfe2f79be180b2801d109 |
|
MD5 | bd3fa7b27cc3c4036472d424da052059 |
|
BLAKE2b-256 | df49e0c50c96060e183bf0d0fe64ed848e24d0b02f593a4ea41783927fdd58e2 |
Hashes for lxml-4.2.0-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cef79715f2335bfc1ef7082bcb8b2bac87271431653455221a9127fde146208c |
|
MD5 | 01776ee632133f6c9ae5134dfb14976e |
|
BLAKE2b-256 | 1689d7934c0194113ba411861f6019f79b48717468c3bf4d133de7f149196e8d |
Hashes for lxml-4.2.0-cp36-cp36m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 95b82fdfdaac71640b281da6b9a2c3700177ba5190a786881b184de744ad55de |
|
MD5 | b9cf8677299a9c537b85a328afe867a7 |
|
BLAKE2b-256 | f78ff7ed1f675c6447e01c1925985ac3aa78ea731dba7f7b2a03d03931207ef8 |
Hashes for lxml-4.2.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 | c18f316cad969111b1ff9e84c82fbc9ae6f25f35701118182d384585940cdf80 |
|
MD5 | 2872dc58048dfca493e2d267040b4128 |
|
BLAKE2b-256 | 788b2b5fa20b26405b279a042c129e2193fbe7bbd74055b81cb0f78fc3056b36 |
Hashes for lxml-4.2.0-cp35-cp35m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f52c4c8f1cf15419193026e731f34a3260a3ce7977b875ba1eb2517b8a3f660 |
|
MD5 | a71c5acc01122074482a11ea4da02046 |
|
BLAKE2b-256 | 24b85b7e06a23d1578f777892afeaabe02d65fb24d18fecce4d64b5de8e46ad0 |
Hashes for lxml-4.2.0-cp35-cp35m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b46f31e806f6884bd1053ad1d78ecaca6d1bc5dd94a1b783a6ff0bb4b3a60962 |
|
MD5 | 69104fa7619e603c61f54c3e96393a5a |
|
BLAKE2b-256 | cb0b4cb642f1b82232d5ad2b1558f2a77f235c5d22b7d0bde5eec83f6f5145e4 |
Hashes for lxml-4.2.0-cp35-cp35m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e08918b744b89d30750eca8598f37ae75b16202870db678fde970d85afed3e3 |
|
MD5 | 855338d213ef93620ec7e0b9e211c940 |
|
BLAKE2b-256 | fff0511ede2827f31a1493b4708608fbd39df9ed898fba5ddf728291398564e9 |
Hashes for lxml-4.2.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 | 0cddc6cde79e1932efc71d9974a4418184ad0b8ca46c633ad772b2c5eaf36b3c |
|
MD5 | 56d8af85c7bf0a2e3cb857830ae3fdba |
|
BLAKE2b-256 | 9cd1dccd3b398f55ed27b50ee9779e75b2979d850bda75d75d22c12523db4d67 |
Hashes for lxml-4.2.0-cp34-cp34m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d06260e6102b2f18dbee3736185cd6a2e1c88c0fad782bf8e9d7a7a1b24e02b0 |
|
MD5 | b6ef5a792cf0cbc08628357ed6645bcc |
|
BLAKE2b-256 | ead4870434cd6feb4dd305991733db1402830ce6bf0c2ddef2c262e9f19726af |
Hashes for lxml-4.2.0-cp34-cp34m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 124a9d529eec5e10f307eb237df3efc43dd1fb7ebdb5da5e480c4ed372648b6b |
|
MD5 | 658b8e5047dd6dda2bcf0ed8c5604716 |
|
BLAKE2b-256 | fcce66835a55be5f8f35744e7efeca1e6c07e77a030539a39c5fb48e400ea9cd |
Hashes for lxml-4.2.0-cp34-cp34m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2812bc45a7f53f366217b76a1c53e6728fbfa7f7524d16a321ea8f7131428bd1 |
|
MD5 | a06bc9f1d630cd7577ef96a5c611b530 |
|
BLAKE2b-256 | 6f493edf12a2cda759f5ac483e3775cfab813dc14aa252c2655c88610e10537c |
Hashes for lxml-4.2.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 | 88583c6565c9299f617238a500f1a47510bac54daff7872d6a343f13361b659e |
|
MD5 | 0a831113b3ed3e91dbb8cb0ea33911a1 |
|
BLAKE2b-256 | 50c08ecc8485fa5da738ebeca238fbe57d9119b8a605f681ba6dfdd995751197 |
Hashes for lxml-4.2.0-cp33-cp33m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71ac6dac6835de75aaf531cae9ffa447dae0783ba1f43bf6eaccfad3680a5b9c |
|
MD5 | 5cf3a240da19bf3de44d08999b5a869a |
|
BLAKE2b-256 | 7db52b153d64ca9d3cd11cb146e4c049f58eef878b0fa4d5824114045380146d |
Hashes for lxml-4.2.0-cp33-cp33m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c21d7304d37715e6aed756e4d0c374c99c9bb1fa8d64f546b95474b17ac23de |
|
MD5 | 392c6ab49a00fd09a601ba24dffdd009 |
|
BLAKE2b-256 | 256566eac319c8f7990b93dfb6149cf277d61583ec1f4915d9431e102d498a3c |
Hashes for lxml-4.2.0-cp33-cp33m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7769ac9203ebe6d8db16904c54d57d77360fcc1926ed7afaa86b04050e4afa5b |
|
MD5 | 57bce5769901f6f2277aace0d99df480 |
|
BLAKE2b-256 | 320e392d235170eaf1415a1ef6a4f10d0e2093c198f6865f19e1cfa0d3113c7a |
Hashes for lxml-4.2.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 | d0dc3e5737adcc9a23fd3d3d3072b887fefb48143309563f412ef7b0ebdfdb30 |
|
MD5 | 8f5f8e7776a864f15620615d391d901b |
|
BLAKE2b-256 | cff742b3e4ea0d575639d372963bf33673a49f8018ca5f5aa4c1959cc15fb36f |
Hashes for lxml-4.2.0-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 988d55112f196e12341b7c5138841c2b4f21f871eaa8f138c6ac4c46f28899f9 |
|
MD5 | a94678f027d3c0b04f9b9e26a7e23366 |
|
BLAKE2b-256 | 294483894398f9899f679c8ff95c8fb47b07699ef2f96ee22586af485b23e113 |
Hashes for lxml-4.2.0-cp27-cp27mu-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29697224b2df76edf7c2de9bcd90a26dd28fe85c5fd7f0171cae84f8383b227e |
|
MD5 | 7e5930c445e83997676e32afc81b172f |
|
BLAKE2b-256 | 4bdf14b7884cc8ff8c0ceb47118d894b1f141d39a82f1258347ae081e18964f8 |
Hashes for lxml-4.2.0-cp27-cp27m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36ffb216e2f361a5a0a7e219aea6cd44da11c64061baed273944aae21223186c |
|
MD5 | dc1524d318b7b4efce739fd88dd839e9 |
|
BLAKE2b-256 | 679aa5e5ad2959b0e28a37d4c626fa7c78fdfc4fc34a7f0a1124d9fbb9fff447 |
Hashes for lxml-4.2.0-cp27-cp27m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d1e45584353e4d563685874707fc8c85cdd11b0ef3b79d77bb38046134d68a9 |
|
MD5 | d6f66381570ecc75541e072f8e837cc0 |
|
BLAKE2b-256 | 76781a99e76ee5740f8f39a17d5edf1e96b607c19b4700b7adc32ce25367f43e |
Hashes for lxml-4.2.0-cp27-cp27m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62bfcd0629991e1c1257ffd28df2ab31a5c44da4c06823c26ec0f472723a84ca |
|
MD5 | f354c479e409930ca02835c100e2403f |
|
BLAKE2b-256 | 8c3c45f64dc93b82dcb869cadb8092dee9a87f3ba5bb2e93309fe65178c8b632 |
Hashes for lxml-4.2.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 | 0af9c9267b1257319d49e9c1e9abbf92a99f965bee3c4733e0f0f7578985182d |
|
MD5 | 36132028cd5e9ed11dcf72d6045c7d9d |
|
BLAKE2b-256 | a4f071dd82bfea733a8b07fa48ff13e118c259aa6f238ec335e4ceb3c759f044 |