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.
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-2.3-py2.7-macosx-10.6-intel.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 24665ecfda59fce651631ffbc5fbe143b9fd665b5c016ddb6f8575269ca67a28 |
|
MD5 | 52322e4698d68800c6b6aedb0dbe5f34 |
|
BLAKE2b-256 | 41c837c2723c7585362e51179095e3b440c1cf967f72786b71ee4da764bf2d24 |
Hashes for lxml-2.3-py2.7-macosx-10.3-fat.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 547138948b83898486bb6d7441f3717395465287fd2a90b46503edf743751612 |
|
MD5 | a420c9f2e0106a2c9c836174eb261897 |
|
BLAKE2b-256 | 81f7492028622a32b8e4b2519e3707c1a9234301be8e433566006a90206b57b1 |
Hashes for lxml-2.3-py2.6-macosx-10.3-fat.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 600eba1dc95a1b0aca5dc951145e21948bdd22bd12bfd5ab9f86aa0836b1d79b |
|
MD5 | 592cf7613f84b623b05642bb033c709c |
|
BLAKE2b-256 | babd1c37cf9afc90bd11b99c3ee9411db40dd8080aef891ec5385cf5f7a87957 |
Hashes for lxml-2.3-py2.5-macosx-10.3-ppc.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6174465ea8e11a9bebe2b14abcc1e5eeadeffbcb3547421ec330ee2798ba0956 |
|
MD5 | 9242c307922e9bb50cc054396567b1ca |
|
BLAKE2b-256 | 0b6e7acec149b2c5a55d629a6aec15c133b76a48c49959a70485badddfdc8c6f |
Hashes for lxml-2.3-py2.5-macosx-10.3-i386.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f8fc7b3fd1922cad8a5968b010fc465186daa9b7758bcfc17a86cfa667dc768 |
|
MD5 | 94192ff14448c86f33398d0ba24ade4b |
|
BLAKE2b-256 | c565c563e9113bd9c505ef9bba6005863fddc3b5db744000da2c0c15ffefa4e3 |