To support AUTOSAR model with python
- AUTOSAR_TPS_XMLSchemaProductionRules.pdf
- AUTOSAR_TPS_ARXMLSerializationRules.pdf
Version | Documentation | Travis CI | Coverage Status | Pypi |
---|---|---|---|---|
- Run
python setup.py bdist_wheel
to generate distribution - Run
twine check dist/*
to check the validation of distribution - Run
twine upload dist/*
to upload to pypi repository - Check the website https://pypi.org/project/armodel/ to find out it works or not
And more details can be found at https://packaging.python.org/
- Run
pip install pytest pytest-cov
to install pytest. - Run
pytest --cov=armodel --cov-report term-missing
to verify all the functionality.
- Run
python setup.py sdist bdist_wheel --universal
- Run
pip install sphinx
to install the necessary document
- ARObject
- Referrable
- MultilanguageReferrable
- Identifiable
- PackageableElement
- ARElement
- AtpType
- AutosarDataType
- PortInterface
- DataInterface
- NvDataInterface
- ParameterInterface
- SenderReceiverInterface
- BswModuleEntry
- Implementation
- BswImplementation
- AtpFeature
- AtpPrototype
- AtpPrototype
- DataPrototype
- AutosarDataPrototype
- VariableDataPrototype
- ApplicationCompositeElementDataPrototype
- ApplicationArrayElement
- ApplicationRecordElement
- AtpStructureElement
- BswModuleDescription
- ExecutableEntity
- SwcBswMapping
- ValueSpecification
- ConstantReference
Dump all the arxml data to screen
arxml-dump --arxml arg -h
--arxml arg The file name of arxml data -h show the help information
Dump the arxml data from test1.arxml and test2.arxml
$arxml-dump --arxml test1.arxml --arxml test2.arxml
List all the SwComponentType in the autosar model
usage: swc-list [-h] [-v] [-f FORMAT] [--filter FILTER] Input [Input ...]
-h, --help show the help message and exit -v, --verbose Print debug information -f FORMAT, --format FORMAT Specify the short or long name of Sw-C. short : only print the short name of SWComponentType long : print the SWComponentType with ARPackage names --filter FILTER Set the filter condition. CompositionSwComponent : Print the CompositionSwComponent only.
$swc-list <arxml_folder>
$swc-list --format long --filter CompositionSwComponent <arxml_folder>
ARXMLParser(options={"warning": True})
Version 0.1.1
Add the ARRAY category support for ImplementationDataType
Version 0.1.2
Add the AsynchronousServerCallPoint support for ARXML
Version 0.1.3
Fix the attribute intervalType of Limit is empty issue.
Version 1.0.0
- Add the logging support
- Add the option to disable exception raised.
- Add the BswMD support
Version 1.1.0
- Add the InitEvent support. (Issue #5)
- Add the DataReceiveEvent support. (Issue #5)
- Add the SwcModeSwitchEvent support. (Issue #5)
Version 1.2.0
- Add the SwcImplementation support (Issue #9)
- Add the integer value for memory section alignment (Issue #9)
- Remove the required attributes for the Implementation according to the AUTOSAR standard 23R-11. (Issue #9)
- Change the START-ON-EVENT-REF to optional according to the AUTOSAR standard 23R-11. (Issue #9)
- Change the HANDLE-OUT-OF-RANGE to optional according to the AUTOSAR standard 23R-11. (Issue #9)
- Add the SensorActuatorSwComponentType support (Issue #9)
- Change the CATEGORY of COMPU-METHOD to optional.
- Change the CAN-BE-INVOKED-CONCURRENTLY to optional.
Version 1.3.0
- List all the SwComponentType (Issue #11)