Skip to main content

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.7 . Running easy_install lxml==3.7bugfix will install the unreleased branch state from https://github.com/lxml/lxml/tarball/lxml-3.7#egg=lxml-3.7bugfix 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.7.0 (2016-12-10)

Features added

  • GH#217: XMLSyntaxError now behaves more like its SyntaxError baseclass. Patch by Philipp A.

  • GH#216: HTMLParser() now supports the same collect_ids parameter as XMLParser(). Patch by Burak Arslan.

  • GH#210: Allow specifying a serialisation method in xmlfile.write(). Patch by Burak Arslan.

  • GH#203: New option default_doctype in HTMLParser that allows disabling the automatic doctype creation. Patch by Shadab Zafar.

  • GH#201: Calling the method .set('attrname') without value argument (or None) on HTML elements creates an attribute without value that serialises like <div attrname></div>. Patch by Daniel Holth.

  • GH#197: Ignore form input fields in form_values() when they are marked as disabled in HTML. Patch by Kristian Klemon.

Bugs fixed

  • GH#206: File name and line number were missing from XSLT error messages. Patch by Marcus Brinkmann.

Other changes

  • Log entries no longer allow anything but plain string objects as message text and file name.

  • zlib is included in the list of statically built libraries.

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

lxml-3.7.0.tar.gz (3.8 MB view details)

Uploaded Source

Built Distributions

lxml-3.7.0.win-amd64-py3.4.exe (3.6 MB view details)

Uploaded Source

lxml-3.7.0.win-amd64-py3.3.exe (3.6 MB view details)

Uploaded Source

lxml-3.7.0.win-amd64-py3.2.exe (3.7 MB view details)

Uploaded Source

lxml-3.7.0.win-amd64-py2.7.exe (3.7 MB view details)

Uploaded Source

lxml-3.7.0.win32-py3.4.exe (3.4 MB view details)

Uploaded Source

lxml-3.7.0.win32-py3.3.exe (3.4 MB view details)

Uploaded Source

lxml-3.7.0.win32-py3.2.exe (3.4 MB view details)

Uploaded Source

lxml-3.7.0.win32-py2.7.exe (3.4 MB view details)

Uploaded Source

File details

Details for the file lxml-3.7.0.tar.gz.

File metadata

  • Download URL: lxml-3.7.0.tar.gz
  • Upload date:
  • Size: 3.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for lxml-3.7.0.tar.gz
Algorithm Hash digest
SHA256 9c62eb2a1862e1ae285d7e7e3b7dc8772d387b19258086afcec143c6b7b8a5c9
MD5 b78e6f7e859c2ff57add7f63a5e387b7
BLAKE2b-256 145161462e59ab58575fe0d679ab2d31ec73cd49b26182c6ece3d9379faccfd7

See more details on using hashes here.

File details

Details for the file lxml-3.7.0.win-amd64-py3.4.exe.

File metadata

File hashes

Hashes for lxml-3.7.0.win-amd64-py3.4.exe
Algorithm Hash digest
SHA256 e52002eb4d0e561851c585bff73884b6ccdecc327cab6fe8692a488744ead905
MD5 c623a2f22eac2260d29a59effeb44993
BLAKE2b-256 5f2ea620f53103b015747ba03e0e1909cf14852eae0891b6eb656992191338ff

See more details on using hashes here.

File details

Details for the file lxml-3.7.0.win-amd64-py3.3.exe.

File metadata

File hashes

Hashes for lxml-3.7.0.win-amd64-py3.3.exe
Algorithm Hash digest
SHA256 4f682ed367fbe445ce9b1cfbb815cae54f4d01b2bcfb7fda2b48fb8f5ed2a1dc
MD5 4e2c1cd25e7427a7d911b433fa871f93
BLAKE2b-256 80cfb6d8a77abd25b836c5e74f7cb6c0512c5529e6e17312e31f658c0fa738ff

See more details on using hashes here.

File details

Details for the file lxml-3.7.0.win-amd64-py3.2.exe.

File metadata

File hashes

Hashes for lxml-3.7.0.win-amd64-py3.2.exe
Algorithm Hash digest
SHA256 48303be076a7e68f86c92941c7376576823bb46f47c4db73416de8bc33d286f6
MD5 362df310c069b3c46ad853e44973945e
BLAKE2b-256 67f7d2d61f5b6ec578496c80553547ccdb2e697b228c6ea9edc9fefe7bc77604

See more details on using hashes here.

File details

Details for the file lxml-3.7.0.win-amd64-py2.7.exe.

File metadata

File hashes

Hashes for lxml-3.7.0.win-amd64-py2.7.exe
Algorithm Hash digest
SHA256 1d79ad62a4e7024f2ebf8868a95bb3959cde8fb0720eb3fb33c76e8b0b315b9c
MD5 7d7305cbf527c765a7d73482a01a6f31
BLAKE2b-256 c6c9aeb5674a4355a796806a4759001a15c44250671155c1fc55e4d70bfeb6f3

See more details on using hashes here.

File details

Details for the file lxml-3.7.0.win32-py3.4.exe.

File metadata

  • Download URL: lxml-3.7.0.win32-py3.4.exe
  • Upload date:
  • Size: 3.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for lxml-3.7.0.win32-py3.4.exe
Algorithm Hash digest
SHA256 efa658c87daafaa6a3bb78ff90fc028c9f99e3f73a5f752182c45bcfe646571f
MD5 00869af3e0977632e394e642d9e3bdb8
BLAKE2b-256 c6764df77796146511779131dc4cf9260cb045d19e1504234f7e93ff298a9057

See more details on using hashes here.

File details

Details for the file lxml-3.7.0.win32-py3.3.exe.

File metadata

  • Download URL: lxml-3.7.0.win32-py3.3.exe
  • Upload date:
  • Size: 3.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for lxml-3.7.0.win32-py3.3.exe
Algorithm Hash digest
SHA256 d5f930bc946c68ab19cf7bda8f0599b02b07041c296469f5057d05becdfc08b2
MD5 d5742ca933cd4e18e3cf25a5bda9d6b6
BLAKE2b-256 288813f81054b2c2252cf2108184910aaca9f907f8a17b27d9251dff88e56d46

See more details on using hashes here.

File details

Details for the file lxml-3.7.0.win32-py3.2.exe.

File metadata

  • Download URL: lxml-3.7.0.win32-py3.2.exe
  • Upload date:
  • Size: 3.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for lxml-3.7.0.win32-py3.2.exe
Algorithm Hash digest
SHA256 f26db65b38bfa6e062d0f64f1ba897b8ef8f7f63e26dfe7d30d0f215c1ddf1d3
MD5 fc52ec14e544cfbf25efda7395b2343e
BLAKE2b-256 a2f7851acafbc76df0e8920fc89b5c9aba3a46d82f0239ffabf6b7eb019473a0

See more details on using hashes here.

File details

Details for the file lxml-3.7.0.win32-py2.7.exe.

File metadata

  • Download URL: lxml-3.7.0.win32-py2.7.exe
  • Upload date:
  • Size: 3.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for lxml-3.7.0.win32-py2.7.exe
Algorithm Hash digest
SHA256 e0b260fd94ac253d710c12158302dff5c4b9990b8e995267715bc22e3f161ba1
MD5 ffc3b5b1cf53343d5cc440cdf299c90e
BLAKE2b-256 8b815e01a7a58f601ebaf40fa1320d68e10c6df83fd4b2083ee10c394a3b9f51

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page