
Product
Rust Support Now in Beta
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
.. image:: https://img.shields.io/pypi/v/saxtract.svg :target: https://pypi.python.org/pypi/saxtract
.. image:: https://img.shields.io/travis/danwald/saxtract.svg :target: https://travis-ci.com/danwald/saxtract
.. image:: https://readthedocs.org/projects/saxtract/badge/?version=latest :target: https://saxtract.readthedocs.io/en/latest/?badge=latest :alt: Documentation Status
.. image:: https://pyup.io/repos/github/danwald/saxtract/shield.svg :target: https://pyup.io/repos/github/danwald/saxtract/ :alt: 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 <tests/perf_tests.py>
_ on a trimmed down to 10k records from the dbpl <https://dblp.org/xml/>
_ dataset, SaxTrack ran in about half the time and half the memory footprint <https://pypi.org/project/memory-profiler/>
_
.. code-block:: bash
python tests/perf_tests.py --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.
.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _audreyr/cookiecutter-pypackage
: https://github.com/audreyr/cookiecutter-pypackage
The main parser code was copied from tutorialspoint <https://www.tutorialspoint.com/python3/python_xml_processing.htm>
_
FAQs
Python SAX parser to extract xml
We found that saxtract demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.