Skip to main content

XMLStarlet Toolkit: Python CFFI bindings

Project description

XMLStarlet CFFI cibuildwheel Documentation Status

XMLStarlet Toolkit: Python CFFI bindings


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/


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


1.6.8 (2022-04-30)

  • Added Python 3.10 support.
  • Fixed issue #199 (pending confirmation) - upgraded libxml2 and libxslt versions to fix CVEs
  • Upgraded development and build-time dependencies.
  • Now using latest cibuildwheel 2.5.0, which supports more architectures and builds.
  • Started to improve the documentation - added better usage examples.
  • Formatting and linting fixes

1.6.7 (2020-12-24)

  • Fixed MacOS binary wheel builds

1.6.6 (2020-10-04)

  • Simplified and automated building source and binary wheels for Linux, MacOS, and Windows via GitHub actions + cibuildwheel.
  • Improved documentation and local development workflow.
  • Fixes issue #51 (previously closed as “hard to fix”, but now reopened).
  • Completely rewritten native Windows build process, based on libxslt.
  • Windows port does not support ls (and conversely listdir()).

1.6.5 (2020-09-29)

  • No changes from previous release except up-to-date dependencies and some build fixes.
  • Fixes issue #118 (awaiting confirmation).

1.6.3 (2019-10-29)

  • First working release on PyPI, based on xmlstarlet-1.6.1 source tarball.

1.6.2 (2019-10-28)

  • Second (failed) release on PyPI, based on XMLStarlet master branch.

1.6.1 (2019-10-23)

  • First (incomplete) release on PyPI, based on XMLStarlet master branch.

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

xmlstarlet-1.6.8.tar.gz (715.3 kB view hashes)

Uploaded source

Built Distributions

xmlstarlet-1.6.8-cp310-cp310-win_amd64.whl (669.8 kB view hashes)

Uploaded cp310

xmlstarlet-1.6.8-cp310-cp310-win32.whl (552.5 kB view hashes)

Uploaded cp310

xmlstarlet-1.6.8-cp39-cp39-win_amd64.whl (669.8 kB view hashes)

Uploaded cp39

xmlstarlet-1.6.8-cp39-cp39-win32.whl (552.5 kB view hashes)

Uploaded cp39

xmlstarlet-1.6.8-cp38-cp38-win_amd64.whl (669.8 kB view hashes)

Uploaded cp38

xmlstarlet-1.6.8-cp38-cp38-win32.whl (552.5 kB view hashes)

Uploaded cp38

xmlstarlet-1.6.8-cp37-cp37m-win_amd64.whl (669.8 kB view hashes)

Uploaded cp37

xmlstarlet-1.6.8-cp37-cp37m-win32.whl (552.5 kB view hashes)

Uploaded cp37

xmlstarlet-1.6.8-cp36-cp36m-win_amd64.whl (680.2 kB view hashes)

Uploaded cp36

xmlstarlet-1.6.8-cp36-cp36m-win32.whl (557.7 kB view hashes)

Uploaded cp36

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page