Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zariiii9003/arxml-parse
ARXML parsing using xsdata code generator
https://github.com/zariiii9003/arxml-parse
Last synced: about 1 month ago
JSON representation
ARXML parsing using xsdata code generator
- Host: GitHub
- URL: https://github.com/zariiii9003/arxml-parse
- Owner: zariiii9003
- License: mit
- Created: 2024-11-23T00:01:07.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2024-11-26T05:14:59.000Z (about 2 months ago)
- Last Synced: 2024-11-26T06:19:26.210Z (about 2 months ago)
- Language: Python
- Size: 1.49 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# arxml-parse
[![PyPI - Version](https://img.shields.io/pypi/v/arxml-parse.svg)](https://pypi.org/project/arxml-parse)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/arxml-parse.svg)](https://pypi.org/project/arxml-parse)The dataclasses in this library are created from xml schema files with the help
of the [xsdata](https://github.com/tefra/xsdata/) code generator.
As such, the library is fully compliant with `mypy --strict` type checking.The `arxml_parse.io` module contains functions to parse arxml files and return
the xml root object (e.g. `arxml_parse.autosar_00042.autosar_00042.Autosar`).## Installation
Install the library via `pip`::
```shell
pip install arxml-parse
```## Example
```python
from pathlib import Pathimport arxml_parse.io
# parse arxml file
arxml_path = Path("random.arxml")
arxml_root_obj = arxml_parse.io.parse_arxml(arxml_path)# serialize arxml
arxml_string = arxml_parse.io.serialize_arxml(arxml_root_obj)
```