Skip to main content

Power Toys for the ARXML

Project description

arxml_toys

1. Purpose

One power toys to help to manage the AUTOSAR ARXML file.

2. How to

2.1. How to create the distribution and upload to pypi

  1. Run python setup.py bdist_wheel to generate distribution
  2. Run twine check dist/* to check the validation of distribution
  3. Run twine upload dist/* to upload to pypi repository
  4. 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/

2.2. How to perform Unit test

  • Run pip install pytest pytest-cov to install pytest.
  • Run pytest --cov=armodel --cov-report term-missing to verify all the functionality.

2.3. How to create a distribution and wheel

  • Run python setup.py sdist bdist_wheel --universal

3. Remove or update the UUID from ARXML

3.1. Usage

$ arxml_uuid

arxml_uuid [-a|--arxml name][--remove][-h|-help]
Remove or update the uuid from the specific arxml
   -a|--arxml name : The filename of arxml
   --remove        : Remove the UUID
   -h|--help       : Show the help information.
   

3.2. Update the UUID

Update the test.arxml with the new generated UUID

Example:

arxml_uuid -a test.arxml

3.3. Remove the UUID

remove all UUID from test.arxml

Example:

arxml_uuid -a test.arxml --remove

4. Remove the timestamp from ARXML

4.1. Usage

$ arxml_timestamp

arxml_timestamp [-a|--arxml name][-h|-help]
Remove the timestamp from the specific arxml
   -a|--arxml name : The filename of arxml
   -h|--help       : Show the help information.

4.2. Turn off the timestamp in AUTOSAR builder

Uncheck the "Auto update object's timestamp if its model is modified" option.

4.3. Remove the timestamp

remove all timestamp attributes from test.arxml

Example:

arxml_timestamp -a test.arxml

5. Convert the ARXML to XML

5.1. Usage

arxml2xml [-a|--arxml name][-x|--xml name][-h|-help]
Remove or update the uuid from the specific arxml
   -a|--arxml name : The filename of arxml
   -x|--xml name   : The filename of SWC xml
   -h|--help       : Show the help information.

Example:

arxml2xml -a test.arxml -x test.xml

6. Change Notes

6.1. Version 1.0.1 (Apr 16th 2022)

Convert the ARXML to XML for other model-base tools

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

arxml_toys-1.0.1-py3-none-any.whl (11.6 kB view details)

Uploaded Python 3

File details

Details for the file arxml_toys-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: arxml_toys-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 11.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.64.0 importlib-metadata/4.8.1 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.6.2

File hashes

Hashes for arxml_toys-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c4fa191dc111422051451f7e97d1255f7f1bce58000643466e40eb83290d92f0
MD5 a369a3872c6229a1b6f3c98216f3a27f
BLAKE2b-256 51ad979e85cb38668709add1187e1ce74c8cff2ab084b74ed19d945485ef9502

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page