jimbraun / XCDF

XCDF: eXplicitly Compacted Data Format. See documentation at Read the Docs:
https://xcdf.readthedocs.io/en/latest/
Other
14 stars 8 forks source link

Add support for writing from Python3 #99

Closed HealthyPear closed 1 year ago

HealthyPear commented 1 year ago

This Pull Request expands the current bindings based on pybind11 with basic writing API.

The exposed API are the definitions and allocations of fields for unsigned and signed integers and floating point data.

A new unit test for writing has been added to the pytest suite.

The documentation has been improved with more docstrings and example code for writing and reading from/to Python3 which is automatically executed at build time with the sphinx-exec-code extension for Sphinx.

Related issues

I am not sure if the contribution in this PR covers all use cases; currently what I can see is,