Powerful and Pythonic XML processing library combining libxml2/libxslt with the ElementTree API.
Project description
lxml is a Pythonic 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.
1.1alpha (2006-06-27)
Features added
Module level iterwalk() function as ‘iterparse’ for trees
ElementTree compatible iterparse() module function
Element.nsmap property returns a mapping of all namespace prefixes known at the Element to their namespace URI
Reentrant threading support in RelaxNG, XMLSchema and XSLT
Threading support in parsers and serializers:
All in-memory operations (tostring, parse(StringIO), etc.) free the GIL
File operations (on file names) free the GIL
Reading from file-like objects frees the GIL and reacquires it for reading
Serialisation to file-like objects is single-threaded (high lock overhead)
Element iteration over XPath axes:
Element.iterdescendants() iterates over the descendants of an element
Element.iterancestors() iterates over the ancestors of an element (from parent to parent)
Element.itersiblings() iterates over either the following or preceding siblings of an element
Element.iterchildren() iterates over the children of an element in either direction
All iterators support the tag keyword argument to restrict the generated elements
Element.getnext() and Element.getprevious() return the direct siblings of an element
Bugs fixed
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-1.1alpha.win32-static-py2.4.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d6f48c8af2b3f4f3aa9ebe868aedcafdcd106df0ab1025a2a2ccfaac16d90c7 |
|
MD5 | fa2129c2fc66cf31201f07b674da4611 |
|
BLAKE2b-256 | 1681cd894ec7367df268dcbd28e596c2f4fcdfe858185cab49db8cdb2433395e |
Hashes for lxml-1.1alpha-py2.4-static-win32.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83d6e0d35b85ddbe9613dfc4da51bf1e1c45e3d2044eaa6eb441a67fbcda215b |
|
MD5 | 9b6deaca93684ab6bdad909e133a4442 |
|
BLAKE2b-256 | 50380dd9c35351a54b2b217efea619f164938ba847929a5bb641d76b5f7e5cb6 |
Hashes for lxml-1.1alpha-py2.4-linux-x86_64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | e841c55ce4af918f38541cbb7022fa86571bc1ee19fc488ffdb070a910648879 |
|
MD5 | 74c7003ce4143f9eb832a1f03c13e2bd |
|
BLAKE2b-256 | 6c1119d7cafd7b0a95bf8cdfdd4ba81696f8c225a0d5725d25e234aad7f3e2a5 |
Hashes for lxml-1.1alpha-py2.4-linux-i686.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c28998a566c7e361e30948f5c3372fda095624d1c950360df0bf014d7982680 |
|
MD5 | eacea3444ded3a1d2d1bd02d10608562 |
|
BLAKE2b-256 | bce45ce9926ece1be57856d7ef5d9d4765b7fa6e3453cb1f70e3f2a6e09578f1 |
Hashes for lxml-1.1alpha-py2.4-freebsd-6.1-RELEASE-i386.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | f940aa26200b97ccf7fa50538b247331c9a224ee576db43c2760a9bc6a7185d0 |
|
MD5 | 82f26b68b63def856d8e0e242e831927 |
|
BLAKE2b-256 | 0e4afdf28926d28eab1d8cb0ecac3d36f5af57192283ca525d1e05bffa67a71c |
Hashes for lxml-1.1alpha-py2.3-linux-i686.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c06f0cecb385f1431fc76df90e98d4a9a8aa439bc9a48c7f948ec1abb36dc4c |
|
MD5 | 3773f28d0004fed92b8eac68166d1d3d |
|
BLAKE2b-256 | 978de91bac7ccf08f0ef0ded160f4e670e0de475478152ad2ff4cdcadbdba29b |