XMLStarlet CFFI

https://img.shields.io/pypi/v/xmlstarlet.svg cibuildwheel Documentation Status

XMLStarlet Toolkit: Python CFFI bindings

Features

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.

Credits

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