armodel 1.3.0__py3-none-any.whl → 1.4.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. armodel/cli/connector2xlsx_cli.py +75 -0
  2. armodel/cli/connector_update_cli.py +70 -0
  3. armodel/cli/swc_list_cli.py +2 -2
  4. armodel/lib/__init__.py +1 -1
  5. armodel/lib/data_analyzer.py +1 -1
  6. armodel/lib/sw_component.py +34 -0
  7. armodel/models/__init__.py +6 -1
  8. armodel/models/ar_object.py +39 -0
  9. armodel/models/ar_package.py +35 -1
  10. armodel/models/ar_ref.py +12 -2
  11. armodel/models/bsw_module_template.py +3 -2
  12. armodel/models/calibration.py +16 -0
  13. armodel/models/common_structure.py +92 -0
  14. armodel/models/communication.py +8 -0
  15. armodel/models/datatype.py +23 -5
  16. armodel/models/general_structure.py +48 -3
  17. armodel/models/global_constraints.py +40 -0
  18. armodel/models/m2_msr.py +76 -2
  19. armodel/models/port_prototype.py +21 -16
  20. armodel/models/sw_component.py +47 -18
  21. armodel/models/unit.py +14 -0
  22. armodel/parser/arxml_parser.py +552 -120
  23. armodel/parser/excel_parser.py +0 -0
  24. armodel/report/__init__.py +1 -0
  25. armodel/report/connector_xls_report.py +76 -0
  26. armodel/report/excel_report.py +42 -0
  27. armodel/tests/__init__.py +0 -0
  28. armodel/tests/test_armodel/__init__.py +0 -0
  29. armodel/tests/test_armodel/models/__init__.py +0 -0
  30. armodel/tests/test_armodel/models/test_ar_package.py +294 -0
  31. armodel/tests/test_armodel/models/test_ar_ref.py +74 -0
  32. armodel/tests/test_armodel/models/test_bsw_module_template.py +46 -0
  33. armodel/tests/test_armodel/models/test_common_structure.py +73 -0
  34. armodel/tests/test_armodel/models/test_data_dictionary.py +29 -0
  35. armodel/tests/test_armodel/models/test_data_prototype.py +86 -0
  36. armodel/tests/test_armodel/models/test_datatype.py +239 -0
  37. armodel/tests/test_armodel/models/test_general_structure.py +50 -0
  38. armodel/tests/test_armodel/models/test_m2_msr.py +77 -0
  39. armodel/tests/test_armodel/models/test_port_interface.py +198 -0
  40. armodel/tests/test_armodel/models/test_port_prototype.py +14 -0
  41. armodel/tests/test_armodel/parser/__init__.py +0 -0
  42. armodel/tests/test_armodel/parser/test_parse_bswmd.py +168 -0
  43. armodel/writer/__init__.py +1 -0
  44. armodel/writer/arxml_writer.py +641 -0
  45. {armodel-1.3.0.dist-info → armodel-1.4.0.dist-info}/METADATA +38 -5
  46. armodel-1.4.0.dist-info/RECORD +60 -0
  47. {armodel-1.3.0.dist-info → armodel-1.4.0.dist-info}/WHEEL +1 -1
  48. armodel-1.4.0.dist-info/entry_points.txt +5 -0
  49. armodel-1.3.0.dist-info/RECORD +0 -31
  50. armodel-1.3.0.dist-info/entry_points.txt +0 -4
  51. {armodel-1.3.0.dist-info → armodel-1.4.0.dist-info}/LICENSE +0 -0
  52. {armodel-1.3.0.dist-info → armodel-1.4.0.dist-info}/top_level.txt +0 -0
@@ -1,13 +1,12 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: armodel
3
- Version: 1.3.0
3
+ Version: 1.4.0
4
4
  Summary: the python arxml parser
5
5
  Home-page: http://github.com/melodypapa/py-armodel
6
6
  Author: melodypapa
7
7
  Author-email: melodypapa@outlook.com
8
8
  License: MIT
9
9
  Keywords: AUTOSAR ARXML
10
- Platform: UNKNOWN
11
10
  Classifier: Development Status :: 1 - Planning
12
11
  Classifier: Environment :: Console
13
12
  Classifier: Programming Language :: Python :: 3
@@ -15,7 +14,10 @@ Classifier: License :: OSI Approved :: MIT License
15
14
  Classifier: Operating System :: OS Independent
16
15
  Requires-Python: >=3.5
17
16
  Description-Content-Type: text/markdown
17
+ License-File: LICENSE
18
18
  Requires-Dist: colorama
19
+ Requires-Dist: openpyxl
20
+ Requires-Dist: lxml
19
21
  Provides-Extra: pytest
20
22
  Requires-Dist: pytest-cov ; extra == 'pytest'
21
23
 
@@ -86,6 +88,11 @@ And more details can be found at https://packaging.python.org/
86
88
  - BswModuleDescription
87
89
  - ExecutableEntity
88
90
  - SwcBswMapping
91
+ - PortPrototype
92
+ - AbstractProvidedPortPrototype
93
+ - PPortPrototype
94
+ - AbstractRequiredPortPrototype
95
+ - RPortPrototype
89
96
  - ValueSpecification
90
97
  - ConstantReference
91
98
  ```
@@ -110,7 +117,7 @@ And more details can be found at https://packaging.python.org/
110
117
  $arxml-dump --arxml test1.arxml --arxml test2.arxml
111
118
  ```
112
119
 
113
- ### 1.8.2. swc-list
120
+ ### 1.8.2. arxml-swc
114
121
 
115
122
  **List all the SwComponentType in the autosar model**
116
123
 
@@ -129,13 +136,21 @@ usage: swc-list [-h] [-v] [-f FORMAT] [--filter FILTER] Input [Input ...]
129
136
  #### 1.8.2.1. List all the SW-Components in the specific path
130
137
 
131
138
  ```
132
- $swc-list <arxml_folder>
139
+ $arxml-swc <arxml_folder>
133
140
  ```
134
141
 
135
142
  #### 1.8.2.2. List all the CompositionSwComponent with the long name
136
143
 
137
144
  ```
138
- $swc-list --format long --filter CompositionSwComponent <arxml_folder>
145
+ $arxml-swc --format long --filter CompositionSwComponent <arxml_folder>
146
+ ```
147
+
148
+ ### 1.8.3. connector2xlsx
149
+
150
+ **Export all the SwConnector (AssemblySwConnector, DelegationSwConnector) to excel file**
151
+
152
+ ```
153
+ $connector2xlsx <arxml_folder> connector.xlsx
139
154
  ```
140
155
 
141
156
  ## 1.9. API
@@ -183,3 +198,21 @@ Fix the attribute intervalType of **Limit** is empty issue.
183
198
  7. Change the CATEGORY of COMPU-METHOD to optional.
184
199
  8. Change the CAN-BE-INVOKED-CONCURRENTLY to optional.
185
200
 
201
+ **Version 1.3.0**
202
+
203
+ 1. List all the SwComponentType (Issue #11)
204
+ 2. Support to parse the DelegationSwConnector (Issue #12)
205
+ 3. Correct the class definitions of PPortInCompositionInstanceRef and RPortInCompositionInstanceRef. (Issue #12)
206
+
207
+ **Version 1.4.0**
208
+
209
+ 1. Support to write the AUTOSAR model to arxml file (Issue #17)
210
+ * ARPackage
211
+ * CompositionSwComponent
212
+ * CompuMethod
213
+ * DataConstr
214
+ * Unit
215
+ 2. Support to read the AUTOSAR model from arxml file (Issue #17)
216
+ * ConstantSpecification
217
+ * DataConstr
218
+ * Unit
@@ -0,0 +1,60 @@
1
+ armodel/__init__.py,sha256=K_KHb3O2T21uteIe0wac-tb3kI2xWHTnwV9ShaXesAU,54
2
+ armodel/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
+ armodel/cli/arxml_dump_cli.py,sha256=SELbIKJMN65Lzfuze-q_XPBme-KTPrpb2yDl3fLctc8,9932
4
+ armodel/cli/connector2xlsx_cli.py,sha256=bPxJ53znVpluabEbjqN58RX8a9dvlf-cF5o7ncjqTyw,2125
5
+ armodel/cli/connector_update_cli.py,sha256=apbTgWluMxKsp2adjap93jcTgRHcrCkRIhHbPX1pGc0,2070
6
+ armodel/cli/swc_list_cli.py,sha256=NUyOuIYhXsbSzQl1CjWdgdP83CkeAkXS_kWY4zs-XKU,2414
7
+ armodel/lib/__init__.py,sha256=d6Zc24rVcVb5-TvPEdaJ7vx_7UJ37z9rLjXtpAzVBwU,93
8
+ armodel/lib/cli_args_parser.py,sha256=WiTC3wy_fZYloA1AjPqCvvOA_26V_y5toun0qfV51cw,1207
9
+ armodel/lib/data_analyzer.py,sha256=gIe52MuD90y32ygyyr-K7Nl88SkzEZtMvLyXmssJCBs,1177
10
+ armodel/lib/sw_component.py,sha256=y4ViEGPi_xRKD7hw1ptkGl0_UfhnNdgNzf2YjbOhpjM,1159
11
+ armodel/models/__init__.py,sha256=_T2emjzKbFAiyCR4Zu1c3FVghTzOSjlFKgmg3tTrppc,542
12
+ armodel/models/ar_object.py,sha256=GsTiPaN0lAh87pbsfU_fPfg7WQ_vMuia4ILWHBesDb8,1363
13
+ armodel/models/ar_package.py,sha256=0gY8Vl_eVmxehdi5wECGBzDsKL5KK7HDqS9ISorbUcI,14830
14
+ armodel/models/ar_ref.py,sha256=8QkTAJeJun8TMA39O4PjLYq3N4E7J19gB-DaJwZWpEQ,4075
15
+ armodel/models/bsw_module_template.py,sha256=cGSY2A5L0WmXJSaptCfX41CkmNsgJWDTPM7uQoRVmcs,11822
16
+ armodel/models/calibration.py,sha256=htYFZNCuqcCPIlQDMRt_euTZEyaGKKSzBqZ6tfpZH6s,405
17
+ armodel/models/common_structure.py,sha256=xRfRw7lD7WqJxhS-W2LO-OCXUmKbN7NPQzoa3qI-EZk,10056
18
+ armodel/models/communication.py,sha256=xcHEotwCLCzZm5OB0Opyxc3ODYRxSBPrEfrJ2eWquXg,183
19
+ armodel/models/data_dictionary.py,sha256=xSQzXkLQyOJiLIsczlAzGBnrrvHFVv2_-OfVyN6_MSE,867
20
+ armodel/models/data_prototype.py,sha256=pyIahyJh4KaikMfHikHiKzbGai1JnkrzDZpkVLvb6iU,2096
21
+ armodel/models/datatype.py,sha256=R3XKP3_ocar0uVsIBpOoKubkyIN7Jl9fY7-tgiXYbMg,6453
22
+ armodel/models/ecuc_parameter_def_template.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
23
+ armodel/models/general_structure.py,sha256=lomWyNcRLZAcOCwWocSBfCWdfyQ4_X4HdCZ61MxM-kU,5575
24
+ armodel/models/global_constraints.py,sha256=HeQNrDLNweHeqd6u_G7Jhf-CLVZiYTilU9Mqd-bZFUo,1280
25
+ armodel/models/implementation.py,sha256=jfatA90Ww51kMqnUsbx6q4JRRRIRFCQXVg88J44RNoA,3850
26
+ armodel/models/m2_msr.py,sha256=PqwPzLKrc0RWlaHYoX0ftQmSZGxXFIE9ZRp--UtkpOE,4944
27
+ armodel/models/port_interface.py,sha256=UDCvj78k3sfG4IJX4FWQj6LUV2mWw6Nt0plMnLsQfZk,6026
28
+ armodel/models/port_prototype.py,sha256=upFQ5xUR97aQy4FgKil0V85MgqK-GiABWeX8uJUcyZA,7683
29
+ armodel/models/sw_component.py,sha256=yoAw0C86oWgzWsaCSiQ-QCC-Y-hzSRVg7Ju6ReNcsgs,22340
30
+ armodel/models/unit.py,sha256=uTAHK2LzmQimlQKcWFFrFJJhYAcAlOcsMtvLEQ42EE8,397
31
+ armodel/parser/__init__.py,sha256=whzCLvAstuSlm6scgcCId7AUxSX8z8PV8AIKSNWMkGo,37
32
+ armodel/parser/arxml_parser.py,sha256=UVAgUeYCZ_BcXqyHUB2iY3ft3If-HgDDkgZThQy7cWs,83878
33
+ armodel/parser/excel_parser.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
34
+ armodel/report/__init__.py,sha256=EId0Ph3qYyzkKHKplJrs00ToxHeSjQVvhLwrSoV-SBw,52
35
+ armodel/report/connector_xls_report.py,sha256=7GsvFWo_lfZRKCLAV-a17kC8-3KKSMAR1wGOnp9Cqlo,3876
36
+ armodel/report/excel_report.py,sha256=Iome8wALpOFZyZkMCG5DPSAFkfv4pU0y_BZXHVSdonc,1412
37
+ armodel/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
38
+ armodel/tests/test_armodel/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
39
+ armodel/tests/test_armodel/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
40
+ armodel/tests/test_armodel/models/test_ar_package.py,sha256=LqxArs6g5ePASiBJb70veGDLPTUdP12WLlhwrU90AW0,14520
41
+ armodel/tests/test_armodel/models/test_ar_ref.py,sha256=2zayiW9gKnNJc3c8no3fPQ3B5m5GvQ5FHFSxXU-yUXo,3260
42
+ armodel/tests/test_armodel/models/test_bsw_module_template.py,sha256=ZmJ9_8omFtbf9_O_OHa0B1v2bP6cdhCzW4oJkuicZYY,2061
43
+ armodel/tests/test_armodel/models/test_common_structure.py,sha256=R9QkOvae_4NDD8bYxhnG4kaZwVUQWUwlUoBCYF2SMGA,3448
44
+ armodel/tests/test_armodel/models/test_data_dictionary.py,sha256=sNqJz5XWme9fR3j49xqoxGDgJHx0dIaS7Vhw3jN1Zgk,1077
45
+ armodel/tests/test_armodel/models/test_data_prototype.py,sha256=P66QDxw7Q9xwCJF0BYjH8c4zPz9OnwZVrskHY_YBbhA,4219
46
+ armodel/tests/test_armodel/models/test_datatype.py,sha256=PAIN4fQBa9gM5JvFN6a8rZOzgkiR_ByQ3V_DPL6Joos,11811
47
+ armodel/tests/test_armodel/models/test_general_structure.py,sha256=pkmeJIUfYJqRzXiczL3ZKRcBlI9zbWBjHGGNuLYgOSA,2221
48
+ armodel/tests/test_armodel/models/test_m2_msr.py,sha256=hnh4qJiDlAp70-B7q_A-UqJi2sDllwErMvzOhafTSUk,2656
49
+ armodel/tests/test_armodel/models/test_port_interface.py,sha256=JUeAOTOH8Sq7CLW0lDhvflC7h47anFTLgrZzHMfacX8,9099
50
+ armodel/tests/test_armodel/models/test_port_prototype.py,sha256=wV_QjAg4fb9MfeiwDWldzJiHeNpAcZq5vPZ4rWB2Pn0,494
51
+ armodel/tests/test_armodel/parser/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
52
+ armodel/tests/test_armodel/parser/test_parse_bswmd.py,sha256=Ik_9zWe1ElR4rY4PBK80avf6ljSajQyqbtauUa8wvGA,8572
53
+ armodel/writer/__init__.py,sha256=eXr3qhGzFIvHNBin22x-Tk2JM6QwRgx1jwrluDKAlzQ,37
54
+ armodel/writer/arxml_writer.py,sha256=VHJn2Kd3oZTVvke8HLCNjb4qrPc2wtKOVf2p8BbDKQI,37664
55
+ armodel-1.4.0.dist-info/LICENSE,sha256=rceTpGhsmmN1M0k1KO0HRS11iCjen-2y56ZEqgo43wo,1088
56
+ armodel-1.4.0.dist-info/METADATA,sha256=coHAolnfyiS2fpMu6YeU3oVp7eBSUfG19_EG5M1zjWM,6877
57
+ armodel-1.4.0.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
58
+ armodel-1.4.0.dist-info/entry_points.txt,sha256=tKrWpjYL9k4GVknwAyGDmPRcUMkqOdh6q4PUulLmXC4,219
59
+ armodel-1.4.0.dist-info/top_level.txt,sha256=AEATYsqAuRpr0XGa_ThW7-o4WLlA5e3PEgD0QJhzmoA,8
60
+ armodel-1.4.0.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.41.2)
2
+ Generator: bdist_wheel (0.43.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -0,0 +1,5 @@
1
+ [console_scripts]
2
+ arxml-dump = armodel.cli.arxml_dump_cli:cli_main
3
+ arxml-swc = armodel.cli.swc_list_cli:main
4
+ connector-update = armodel.cli.connector_update_cli:main
5
+ connector2xlsx = armodel.cli.connector2xlsx_cli:main
@@ -1,31 +0,0 @@
1
- armodel/__init__.py,sha256=K_KHb3O2T21uteIe0wac-tb3kI2xWHTnwV9ShaXesAU,54
2
- armodel/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
- armodel/cli/arxml_dump_cli.py,sha256=SELbIKJMN65Lzfuze-q_XPBme-KTPrpb2yDl3fLctc8,9932
4
- armodel/cli/swc_list_cli.py,sha256=9dgW-5Gn1TFqbq5wQd_EFpe9IDLJhPBlYcWRi3m5x84,2414
5
- armodel/lib/__init__.py,sha256=1i7vjCwcVMUrTrN7mRgQsIN6eP-8gsIKSLDh6YXjNe8,94
6
- armodel/lib/cli_args_parser.py,sha256=WiTC3wy_fZYloA1AjPqCvvOA_26V_y5toun0qfV51cw,1207
7
- armodel/lib/data_analyzer.py,sha256=y4ViEGPi_xRKD7hw1ptkGl0_UfhnNdgNzf2YjbOhpjM,1159
8
- armodel/models/__init__.py,sha256=ijDu-Ra2ZjEJNy88Y5ZsPqxAt05_reQsQti-_X4gD3o,402
9
- armodel/models/ar_object.py,sha256=-XM0LFxXJovY7ANh-enGmAFu8yhkj9YzFFyCY7ffO8U,371
10
- armodel/models/ar_package.py,sha256=OPoNGaAhTBf30elxc1dvJMyU6CpMUmvs0SUwaYoEtVs,13275
11
- armodel/models/ar_ref.py,sha256=RZT6URQ91YgmRk1oUTC-0UPnwn61MgEzmII7UKwQXUM,3548
12
- armodel/models/bsw_module_template.py,sha256=k_CZWtTipKtVFjIx08uRqadSubVtBJ-NhUlocfoA0a0,11778
13
- armodel/models/common_structure.py,sha256=DSnuhhYdpDW-klOCZNg8zULuhFBdk7k601YQsPg5IT4,6745
14
- armodel/models/data_dictionary.py,sha256=xSQzXkLQyOJiLIsczlAzGBnrrvHFVv2_-OfVyN6_MSE,867
15
- armodel/models/data_prototype.py,sha256=pyIahyJh4KaikMfHikHiKzbGai1JnkrzDZpkVLvb6iU,2096
16
- armodel/models/datatype.py,sha256=BEc8y3mcQZEvwteFUtJyPYBIwnHJcs9fIyxLgnMK5rk,5802
17
- armodel/models/ecuc_parameter_def_template.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
18
- armodel/models/general_structure.py,sha256=syJTAAo3DIBE6O0nB8Whm4OEnNyN4uVIAJZPA8t3ukY,4480
19
- armodel/models/implementation.py,sha256=jfatA90Ww51kMqnUsbx6q4JRRRIRFCQXVg88J44RNoA,3850
20
- armodel/models/m2_msr.py,sha256=Gk-h-4jSnOkWlfJJcI1-1YvSQvBqkUJZxlzikwgAsec,2165
21
- armodel/models/port_interface.py,sha256=UDCvj78k3sfG4IJX4FWQj6LUV2mWw6Nt0plMnLsQfZk,6026
22
- armodel/models/port_prototype.py,sha256=Pqp5euv_RDfTlsEqvBkpAreBFMJlovuU49cJsYD4d3Q,7215
23
- armodel/models/sw_component.py,sha256=ix6LP1-TLN1r7YEl3CrUoo_ZGfvNGj5q8p3XNPUbabU,20583
24
- armodel/parser/__init__.py,sha256=whzCLvAstuSlm6scgcCId7AUxSX8z8PV8AIKSNWMkGo,37
25
- armodel/parser/arxml_parser.py,sha256=LPSj4BxO9fV9pIXVhzMjJmOIC4YUSbDi3H6I11McXOM,56759
26
- armodel-1.3.0.dist-info/LICENSE,sha256=rceTpGhsmmN1M0k1KO0HRS11iCjen-2y56ZEqgo43wo,1088
27
- armodel-1.3.0.dist-info/METADATA,sha256=eael0JbJhlKXRebYA2EHb83ccoqjtCd-Z6zVzx51SJk,5932
28
- armodel-1.3.0.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
29
- armodel-1.3.0.dist-info/entry_points.txt,sha256=U-GD6do9I0ZRKENiIdmJMbsLHbtBX2Q7CWIldbNFrc0,109
30
- armodel-1.3.0.dist-info/top_level.txt,sha256=AEATYsqAuRpr0XGa_ThW7-o4WLlA5e3PEgD0QJhzmoA,8
31
- armodel-1.3.0.dist-info/RECORD,,
@@ -1,4 +0,0 @@
1
- [console_scripts]
2
- arxml-dump = armodel.cli.arxml_dump_cli:cli_main
3
- swc-list = armodel.cli.swc_list_cli:main
4
-