Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

saxtract

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

saxtract

Python SAX parser to extract xml

  • 0.1.0
  • PyPI
  • Socket score

Maintainers
1

======== SaxTract

.. 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

Features

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

Todo's

allow xsd/dtd input for validation

Credits

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>_

======= History

0.1.0 (2021-02-26)

  • First release on PyPI.

Keywords

FAQs


Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc