Skip to main content

Python SAX parser to extract xml

Project description

SaxTract Documentation Status Updates

Python SAX parser to extract xml


Uses a SAXParser to maintain a fix memory footprint to parse and ‘extract’ tags from an xml file and push it to an output stream.

With performance tests on a trimmed down to 10k records from the dbpl dataset, SaxTrack ran in about half the time and half the memory footprint

python tests/ --filename test.xml --tag authors --runs 5

SaxTrack run took ~0.05381571219999999s
DOM Parser run took ~0.09159613900000001s


allow xsd/dtd input for validation


This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

The main parser code was copied from tutorialspoint


0.1.0 (2021-02-26)

  • First release on PyPI.

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

saxtract-0.1.0.tar.gz (11.8 kB view hashes)

Uploaded source

Built Distribution

saxtract-0.1.0-py2.py3-none-any.whl (5.2 kB view hashes)

Uploaded py2 py3

Supported by

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