Skip to main content

An implementation of lxml.xmlfile for the standard library

Project description

et_xmlfile is a low memory library for creating large XML files.

It is based upon the xmlfile module from lxml with the aim of allowing code to be developed that will work with both libraries. It was developed initially for the openpyxl project but is now a standalone module.

The code was written by Elias Rabel as part of the Python Düsseldorf openpyxl sprint in September 2014.

Note on performance

The code was not developed with performance in mind but turned out to be faster than the existing SAX-based implementation but is significantly slower than lxml’s xmlfile. There is one area where an optimisation for lxml will negatively affect the performance of et_xmfile and that is when using the .element() method on an xmlfile context manager. It is, therefore, recommended not to use this, though the method is provided for code compatibility.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

et_xmlfile_2021-1.0.2.tar.gz (9.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

et_xmlfile_2021-1.0.2-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file et_xmlfile_2021-1.0.2.tar.gz.

File metadata

  • Download URL: et_xmlfile_2021-1.0.2.tar.gz
  • Upload date:
  • Size: 9.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.1

File hashes

Hashes for et_xmlfile_2021-1.0.2.tar.gz
Algorithm Hash digest
SHA256 2a06d4ff357107d0549aaab05bb20f1a51b70140e11fe5407a2ef2539af3f848
MD5 29f7388cdacd6035728cdeead3274b62
BLAKE2b-256 3f1cdb924362ca569be1122036516319c3da7e106b921c70bd41eaf03ae1bec2

See more details on using hashes here.

File details

Details for the file et_xmlfile_2021-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: et_xmlfile_2021-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 8.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.1

File hashes

Hashes for et_xmlfile_2021-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3c9c5efd982b74cd8135bd708441fecededdab92bda887ea160b1b9578d6ef5f
MD5 8edd9019ce5360699ff42d2b6c0c9e7d
BLAKE2b-256 e8f0c1a6f64a49a98e3534ce850845e0097307b5dd80d91644e64a210224f240

See more details on using hashes here.

Supported by

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