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-3.8 . Running easy_install lxml==3.8bugfix will install the unreleased branch state from https://github.com/lxml/lxml/tarball/lxml-3.8#egg=lxml-3.8bugfix as soon as a maintenance branch has been established. Note that this requires Cython to be installed at an appropriate version for the build.
3.8.0 (2017-06-03)
Features added
ElementTree.write() has a new option doctype that writes out a doctype string before the serialisation, in the same way as tostring().
GH#220: xmlfile allows switching output methods at an element level. Patch by Burak Arslan.
LP#1595781, GH#240: added a PyCapsule Python API and C-level API for passing externally generated libxml2 documents into lxml.
GH#244: error log entries have a new property path with an XPath expression (if known, None otherwise) that points to the tree element responsible for the error. Patch by Bob Kline.
The namespace prefix mapping that can be used in ElementPath now injects a default namespace when passing a None prefix.
Bugs fixed
GH#238: Character escapes were not hex-encoded in the xmlfile serialiser. Patch by matejcik.
GH#229: fix for externally created XML documents. Patch by Theodore Dubois.
LP#1665241, GH#228: Form data handling in lxml.html no longer strips the option values specified in form attributes but only the text values. Patch by Ashish Kulkarni.
LP#1551797: revert previous fix for XSLT error logging as it breaks multi-threaded XSLT processing.
LP#1673355, GH#233: fromstring() html5parser failed to parse byte strings.
Other changes
The previously undocumented docstring option in ElementTree.write() produces a deprecation warning and will eventually be removed.
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-3.8.0-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e66a62e84cdea052a17a5e2a896cd79a9a53ec570681f3bc32d012863e02acb0 |
|
MD5 | 2fc35a48d6004f8f278361f713b85bf1 |
|
BLAKE2b-256 | 6d1e261f9bcf1aff1024fca885c64a307298d8033ef4fcef398f84f97b6cd376 |
Hashes for lxml-3.8.0-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9374c9399c1d8479b2b93295abf5997ebaa6d9c5e21a3dc03d1c18b61247cfae |
|
MD5 | 0cf2148ff4e6e65bf9f0bb0c97733f2f |
|
BLAKE2b-256 | 0a75d54af657adc8625aa950ae7be4e4f33ef2b5014380556790fc6c7b7d095d |
Hashes for lxml-3.8.0-cp36-cp36m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3d66246c9b41e495ca02a7c33f6ca415febd06e1e9e1cc5842592881c327987 |
|
MD5 | e52f53c5dfcbaf52494fb26d78b0f796 |
|
BLAKE2b-256 | 49c6fe97992468d252b05b4fc35099f5d0757401deaee5f313c3c4cc70869704 |
Hashes for lxml-3.8.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 | 5c321ab3b310f0342f5369be7279fcfc0366eb8c8b47bd8fa31b1a3c063b6586 |
|
MD5 | 003ede9321170de6d7df05f9d6a42b41 |
|
BLAKE2b-256 | 9d50f41b3d37eaa4db8bb9d2ce2b04d2d3f229b787cb83281df0c8ee33d6c3e9 |
Hashes for lxml-3.8.0-cp35-cp35m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0da0a0711b8aa3161cf263ced74f736990952e44f1d0183c5248f16a1dc1f133 |
|
MD5 | 556def2649f4b18551e8fd83c7c35fb3 |
|
BLAKE2b-256 | 5a5c4ad3a22c558279188f1e76585a6b130afc9d0f76c7cd6f0134d3c9974d82 |
Hashes for lxml-3.8.0-cp35-cp35m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e32fb013ff5b7bd06b1899fe027d46d5b4b2e684ff9159146841bfaaa6b3866 |
|
MD5 | 2d72d0a2a4189a89d0a6619f33d42c48 |
|
BLAKE2b-256 | 233e0b8d8e1a8244159f82d06a14734045e1f2eff199e1f20046214902857b73 |
Hashes for lxml-3.8.0-cp35-cp35m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 52c4bf8871a1e91958a0cb9ec30dbc268298efd0e59660ceebc8277d61b36be2 |
|
MD5 | 8d94d36d6f1123e75eb644bf1e5131e9 |
|
BLAKE2b-256 | b1e0f759ed5db71786a82c1c303e8c92c595e613bfed1a92c0fc8124c2f9fa9e |
Hashes for lxml-3.8.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 | a61a7a4286d8fc450a32a148fced8d3ac71fa55afd922a4043e13cb86eb6d797 |
|
MD5 | 93beea8d5afa0600bae2d454747ee8e4 |
|
BLAKE2b-256 | f310afdf4e12dde7665977909c2671649e8f42268e2927aadb0db5f6c21f87bd |
Hashes for lxml-3.8.0-cp34-cp34m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef4945f9c9e32e68669109e2b009becc71f3ca57b9de79b604b820ca8de2b85c |
|
MD5 | b20c34b6b8190e50c8d2f9b1227713be |
|
BLAKE2b-256 | b65605e71686ce2756cfff443f511d38f73d64e714910b798a82e73ae4c79f94 |
Hashes for lxml-3.8.0-cp34-cp34m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 420e91c29fb6c3f920a4d7b74864721f57cfc5ebe4bef980a2de268de3805f10 |
|
MD5 | c81ed34c677ff6b201cf084547075421 |
|
BLAKE2b-256 | 65165b2ac46abf31ae77cd690d0d17557423b167745fa6f4fd787b96b6a5a580 |
Hashes for lxml-3.8.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 | 13ec5a016e588b2e0ec2c46e0091b1b639b0eb6e428c108f0695f2bff1bafae8 |
|
MD5 | 55b8d005c8395083add2ffa8ae5611ec |
|
BLAKE2b-256 | ec1127daac8da15ce974d8d263d7ddee4c3f618196be0489019b038e622ea2ad |
Hashes for lxml-3.8.0-cp33-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c4ad32804abf0d872776f44bf4e4a5181ed37b3de77a87f6d7b2a1d42620cbd |
|
MD5 | b4d5b8490c1d7a4c7b2d659a26fadf73 |
|
BLAKE2b-256 | e7000095ae762a67a09284db3909204a0bb3b31210190541379cbbb42f1b18fa |
Hashes for lxml-3.8.0-cp33-cp33m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e779d9da6a3f4f8cd75bb31b5aef9bfdf5dcd415847c4eca8891847108861bc |
|
MD5 | 0ab0a38b9210efa1a86350ee663c2ad7 |
|
BLAKE2b-256 | 9d855af30b7172a4901aa39b0e18ac0e5cce079c51f9b71462450a8faec6e0e9 |
Hashes for lxml-3.8.0-cp33-cp33m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a55955329cc8a406458a7eb112c78290c9bc7e2311750ac1d70314a10246a15 |
|
MD5 | 2b88a20b3f4256bf01ee62695323a833 |
|
BLAKE2b-256 | 30a58dd5be3b42b8482fca3c33fb670d77a7af32e480d7b55cb260881e57da26 |
Hashes for lxml-3.8.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 | 50bd89e62f730614beb7ac85c78d948c470a1bfff4728ff67a178fda7e3c5192 |
|
MD5 | 91190b8d07a515c1d1df5b59aef0558a |
|
BLAKE2b-256 | be7ba537821f7e5a754ff24c0d365d759b9afaba8a31da04fa280fd29255894f |
Hashes for lxml-3.8.0-cp32-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 13e5a6373168ffad39facbba98d35a8bdbc6248dbaa61c9c9470c39906c1b8f1 |
|
MD5 | 4705b8805dab520445b634278bc1bb6b |
|
BLAKE2b-256 | 88a87f573145db475c02a48918e0d2566c5b1420d5523bf80a2c297bf67b6bc6 |
Hashes for lxml-3.8.0-cp27-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d5d46ff5465241e6100f0a023e8afcbd75119f598e94c444246bb7f4cbd23f6 |
|
MD5 | fcf248809f2a73f92fc121a9453901d4 |
|
BLAKE2b-256 | 307f3093c23bdfed1ecb4bd634b80e712fa3c4735a9000d1c049475a90d0fa89 |
Hashes for lxml-3.8.0-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1cb088a961cf093b73c7b9460fa43a3afff385c1f1bc306fc3b8819819c2d24 |
|
MD5 | 2ab7288c05fe8a4c224fa48d4456e8f5 |
|
BLAKE2b-256 | 1be8ce25c547daf9b84cafea605eb8a5709524fb53e1b3bb5ef6884e561b9d34 |
Hashes for lxml-3.8.0-cp27-cp27mu-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 372de0c373710c3114b10b20580d880b2e0b71f045092278a63aa15412336a7f |
|
MD5 | bbac80cd82a5ddf66798bd3196de2928 |
|
BLAKE2b-256 | 3561d56b416b30090cb00918f6d3145f52ecb1442ffaea4e4df83d88b6b7ca45 |
Hashes for lxml-3.8.0-cp27-cp27m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54325c7eae22211c0a577b2ca4f10f47b4d352aaff468909209af543a57eb08e |
|
MD5 | 8ed33b83ee58c090908dc48533a52c9c |
|
BLAKE2b-256 | 62b7aafdcf0c0ad0cf36a0835adde50f4a7e18241440b9897a88c80f520d0c76 |
Hashes for lxml-3.8.0-cp27-cp27m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93081f9c87fa520447a191152c7d89cf687c5c8e6fef06493ba809e3196ca35e |
|
MD5 | 5535c411fa2195ac2d014692943b9de0 |
|
BLAKE2b-256 | 0bcf64d2b1675f821b7e192accd5fe994104ed080c13391335e1d5f0831cb5d3 |
Hashes for lxml-3.8.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 | e54ca8cdd70079e7a3e2c061ef3703b2a43159462c1dbd17c11f3ea1fb3601e7 |
|
MD5 | 6c309d382267ef466e341bbd125adc97 |
|
BLAKE2b-256 | 8c460c76a36951b02fa4f016d40d5570b777c9de74399948a36b99b68aa0f9b0 |
Hashes for lxml-3.8.0-cp26-cp26mu-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd9f07e9aef9ff12f3a07d0a084001e983f4c32ea5b1143e1804762a58d22271 |
|
MD5 | 4ced5d4ef3a4ccf48a4e8499ed514588 |
|
BLAKE2b-256 | cde78f763dc22384d32981f8e5b22c35789f95b107ffec48351919fd3064dbfe |