XMLStarlet Toolkit: Python CFFI bindings
- Free software: MIT license
- Documentation (this package): https://xmlstarlet.readthedocs.io.
- Original XMLStarlet Documentation: http://xmlstar.sourceforge.net/doc/UG/
Supports all XMLStarlet commands from Python, just import xmlstarlet:
- edit(*args): Edit/Update XML document(s)
- select(*args): Select data or query XML document(s) (XPATH, etc)
- transform(*args): Transform XML document(s) using XSLT
- validate(*args): Validate XML document(s) (well-formed/DTD/XSD/RelaxNG)
- format(*args): Format XML document(s)
- elements(*args): Display element structure of XML document
- canonicalize(*args): XML canonicalization
- listdir(*args): List directory as XML (NOT supported on Windows)
- escape(*args): Escape special XML characters
- unescape(*args): Unescape special XML characters
- pyx(*args): Convert XML into PYX format (based on ESIS - ISO 8879)
- depyx(*args): Convert PYX into XML
For some examples, have a look at tests/test_xmlstarlet.py.
Kudos to XMLStarlet and its maintainers and users (original sources on SourceForge)!
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
Binary wheels built via GitHub Actions by cibuildwheel