py_canoe 3.0.4__py3-none-any.whl → 26.0.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.
- py_canoe/__init__.py +2 -1
- py_canoe/canoe.py +910 -0
- py_canoe/core/__init__.py +0 -0
- py_canoe/core/application.py +170 -0
- py_canoe/core/bus.py +301 -0
- py_canoe/core/capl.py +59 -0
- py_canoe/core/child_elements/__init__.py +0 -0
- py_canoe/core/child_elements/application_model.py +24 -0
- py_canoe/core/child_elements/application_model_file.py +21 -0
- py_canoe/core/child_elements/application_model_files.py +22 -0
- py_canoe/core/child_elements/application_model_setup.py +15 -0
- py_canoe/core/child_elements/application_models.py +22 -0
- py_canoe/core/child_elements/application_socket.py +11 -0
- py_canoe/core/child_elements/application_specific_module.py +24 -0
- py_canoe/core/child_elements/application_specific_modules.py +16 -0
- py_canoe/core/child_elements/audio_interface.py +28 -0
- py_canoe/core/child_elements/available_modules.py +22 -0
- py_canoe/core/child_elements/basic_module.py +19 -0
- py_canoe/core/child_elements/basic_modules.py +16 -0
- py_canoe/core/child_elements/c_libraries.py +28 -0
- py_canoe/core/child_elements/c_library.py +33 -0
- py_canoe/core/child_elements/can_controller.py +74 -0
- py_canoe/core/child_elements/capl_function.py +17 -0
- py_canoe/core/child_elements/ccp_setup.py +15 -0
- py_canoe/core/child_elements/channel.py +20 -0
- py_canoe/core/child_elements/channels.py +19 -0
- py_canoe/core/child_elements/communication_setup.py +23 -0
- py_canoe/core/child_elements/compile_result.py +22 -0
- py_canoe/core/child_elements/configured_channel.py +48 -0
- py_canoe/core/child_elements/configured_channels.py +21 -0
- py_canoe/core/child_elements/configured_module.py +82 -0
- py_canoe/core/child_elements/configured_modules.py +61 -0
- py_canoe/core/child_elements/connected_modules.py +14 -0
- py_canoe/core/child_elements/data_source.py +42 -0
- py_canoe/core/child_elements/data_source_file.py +21 -0
- py_canoe/core/child_elements/data_source_files.py +22 -0
- py_canoe/core/child_elements/data_source_issue.py +22 -0
- py_canoe/core/child_elements/data_source_issues.py +16 -0
- py_canoe/core/child_elements/data_source_setup.py +17 -0
- py_canoe/core/child_elements/data_sources.py +27 -0
- py_canoe/core/child_elements/database_setup.py +62 -0
- py_canoe/core/child_elements/device.py +34 -0
- py_canoe/core/child_elements/devices.py +13 -0
- py_canoe/core/child_elements/diagnostic.py +22 -0
- py_canoe/core/child_elements/diagnostic_request.py +59 -0
- py_canoe/core/child_elements/diagnostic_response.py +34 -0
- py_canoe/core/child_elements/diagnostic_responses.py +13 -0
- py_canoe/core/child_elements/diagnostics_setup.py +254 -0
- py_canoe/core/child_elements/distributed_mode.py +74 -0
- py_canoe/core/child_elements/encoding.py +27 -0
- py_canoe/core/child_elements/encodings.py +13 -0
- py_canoe/core/child_elements/environment_array.py +13 -0
- py_canoe/core/child_elements/environment_group.py +22 -0
- py_canoe/core/child_elements/environment_info.py +14 -0
- py_canoe/core/child_elements/environment_variable.py +55 -0
- py_canoe/core/child_elements/fdx_files.py +50 -0
- py_canoe/core/child_elements/file_group_data_source.py +17 -0
- py_canoe/core/child_elements/general_setup.py +66 -0
- py_canoe/core/child_elements/macros_setup.py +52 -0
- py_canoe/core/child_elements/mc_ecus.py +428 -0
- py_canoe/core/child_elements/measurement_setup.py +269 -0
- py_canoe/core/child_elements/modules.py +87 -0
- py_canoe/core/child_elements/most_disassembler.py +21 -0
- py_canoe/core/child_elements/most_network_interface.py +4 -0
- py_canoe/core/child_elements/namespace.py +21 -0
- py_canoe/core/child_elements/namespaces.py +19 -0
- py_canoe/core/child_elements/network.py +18 -0
- py_canoe/core/child_elements/network_adapters.py +13 -0
- py_canoe/core/child_elements/nodes.py +119 -0
- py_canoe/core/child_elements/open_configuration_result.py +0 -0
- py_canoe/core/child_elements/panel_setup.py +97 -0
- py_canoe/core/child_elements/participant.py +17 -0
- py_canoe/core/child_elements/participants.py +22 -0
- py_canoe/core/child_elements/ports.py +81 -0
- py_canoe/core/child_elements/replay_collection.py +56 -0
- py_canoe/core/child_elements/security_configuration.py +20 -0
- py_canoe/core/child_elements/security_setup.py +31 -0
- py_canoe/core/child_elements/signals.py +39 -0
- py_canoe/core/child_elements/simulation_setup.py +0 -0
- py_canoe/core/child_elements/single_file_data_source.py +13 -0
- py_canoe/core/child_elements/snippet_setup.py +68 -0
- py_canoe/core/child_elements/standalone_mode.py +0 -0
- py_canoe/core/child_elements/start_value_list.py +0 -0
- py_canoe/core/child_elements/symbol_mappings.py +0 -0
- py_canoe/core/child_elements/tcp_ip_stack_setting.py +0 -0
- py_canoe/core/child_elements/test_configurations.py +0 -0
- py_canoe/core/child_elements/test_environment.py +64 -0
- py_canoe/core/child_elements/test_environments.py +26 -0
- py_canoe/core/child_elements/test_module.py +213 -0
- py_canoe/core/child_elements/test_modules.py +23 -0
- py_canoe/core/child_elements/test_setup.py +16 -0
- py_canoe/core/child_elements/test_setup_folder_ext.py +36 -0
- py_canoe/core/child_elements/test_setup_folders.py +25 -0
- py_canoe/core/child_elements/user_files.py +0 -0
- py_canoe/core/child_elements/variable.py +144 -0
- py_canoe/core/child_elements/variable_events.py +14 -0
- py_canoe/core/child_elements/variables.py +29 -0
- py_canoe/core/child_elements/variables_file.py +15 -0
- py_canoe/core/child_elements/variables_files.py +19 -0
- py_canoe/core/child_elements/visual_sequence_setup.py +46 -0
- py_canoe/core/child_elements/vt_system.py +83 -0
- py_canoe/core/child_elements/vtt_sut_import_result.py +21 -0
- py_canoe/core/child_elements/write.py +71 -0
- py_canoe/core/child_elements/xcp_setup.py +12 -0
- py_canoe/core/configuration.py +509 -0
- py_canoe/core/environment.py +59 -0
- py_canoe/core/measurement.py +149 -0
- py_canoe/core/networks.py +103 -0
- py_canoe/core/performance.py +21 -0
- py_canoe/core/simulation.py +53 -0
- py_canoe/core/system.py +164 -0
- py_canoe/core/ui.py +53 -0
- py_canoe/core/version.py +54 -0
- py_canoe/helpers/__init__.py +0 -0
- py_canoe/helpers/common.py +78 -0
- {py_canoe-3.0.4.dist-info → py_canoe-26.0.0.dist-info}/METADATA +332 -322
- py_canoe-26.0.0.dist-info/RECORD +118 -0
- py_canoe-26.0.0.dist-info/WHEEL +4 -0
- py_canoe/py_canoe.py +0 -2586
- py_canoe/py_canoe_utils/logging_collection.py +0 -345
- py_canoe/py_canoe_utils/py_canoe_logger.py +0 -29
- py_canoe-3.0.4.dist-info/LICENSE +0 -21
- py_canoe-3.0.4.dist-info/RECORD +0 -8
- py_canoe-3.0.4.dist-info/WHEEL +0 -4
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
class Encoding:
|
|
2
|
+
def __init__(self, encoding):
|
|
3
|
+
self.com_object = encoding
|
|
4
|
+
|
|
5
|
+
@property
|
|
6
|
+
def factor(self) -> float:
|
|
7
|
+
return self.com_object.Factor
|
|
8
|
+
|
|
9
|
+
@property
|
|
10
|
+
def lower_bound(self) -> int:
|
|
11
|
+
return self.com_object.LowerBound
|
|
12
|
+
|
|
13
|
+
@property
|
|
14
|
+
def offset(self) -> float:
|
|
15
|
+
return self.com_object.Offset
|
|
16
|
+
|
|
17
|
+
@property
|
|
18
|
+
def text(self) -> str:
|
|
19
|
+
return self.com_object.Text
|
|
20
|
+
|
|
21
|
+
@property
|
|
22
|
+
def unit(self) -> str:
|
|
23
|
+
return self.com_object.Unit
|
|
24
|
+
|
|
25
|
+
@property
|
|
26
|
+
def upper_bound(self) -> int:
|
|
27
|
+
return self.com_object.UpperBound
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
from py_canoe.core.child_elements.encoding import Encoding
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class Encodings:
|
|
5
|
+
def __init__(self, encodings):
|
|
6
|
+
self.com_object = encodings
|
|
7
|
+
|
|
8
|
+
@property
|
|
9
|
+
def count(self):
|
|
10
|
+
return self.com_object.Count
|
|
11
|
+
|
|
12
|
+
def item(self, index: int) -> 'Encoding':
|
|
13
|
+
return Encoding(self.com_object.Item(index))
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
from py_canoe.core.child_elements.environment_variable import EnvironmentVariable
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class EnvironmentArray:
|
|
5
|
+
def __init__(self, com_object):
|
|
6
|
+
self.com_object = com_object
|
|
7
|
+
|
|
8
|
+
@property
|
|
9
|
+
def count(self) -> int:
|
|
10
|
+
return self.com_object.Count
|
|
11
|
+
|
|
12
|
+
def item(self, index: int) -> 'EnvironmentVariable':
|
|
13
|
+
return EnvironmentVariable(self.com_object.Item(index))
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
from py_canoe.core.child_elements.environment_array import EnvironmentArray
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class EnvironmentGroup:
|
|
5
|
+
def __init__(self, com_object):
|
|
6
|
+
self.com_object = com_object
|
|
7
|
+
|
|
8
|
+
@property
|
|
9
|
+
def array(self) -> 'EnvironmentArray':
|
|
10
|
+
return EnvironmentArray(self.com_object.Array)
|
|
11
|
+
|
|
12
|
+
def add(self, variable):
|
|
13
|
+
self.com_object.Add(variable)
|
|
14
|
+
|
|
15
|
+
def get_values(self):
|
|
16
|
+
return self.com_object.GetValues()
|
|
17
|
+
|
|
18
|
+
def remove(self, variable):
|
|
19
|
+
self.com_object.Remove(variable)
|
|
20
|
+
|
|
21
|
+
def set_values(self, values: list):
|
|
22
|
+
self.com_object.SetValues(values)
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
class EnvironmentInfo:
|
|
2
|
+
def __init__(self, com_object):
|
|
3
|
+
self.com_object = com_object
|
|
4
|
+
|
|
5
|
+
@property
|
|
6
|
+
def read(self) -> bool:
|
|
7
|
+
return self.com_object.Read
|
|
8
|
+
|
|
9
|
+
@property
|
|
10
|
+
def write(self) -> bool:
|
|
11
|
+
return self.com_object.Write
|
|
12
|
+
|
|
13
|
+
def get_info(self) -> list:
|
|
14
|
+
return self.com_object.GetInfo()
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
from typing import Union
|
|
2
|
+
|
|
3
|
+
from py_canoe.helpers.common import DoEventsUntil
|
|
4
|
+
|
|
5
|
+
ENV_VAR_CHANGE_TIMEOUT = 1
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class EnvironmentVariable:
|
|
9
|
+
def __init__(self, com_object):
|
|
10
|
+
self.com_object = com_object
|
|
11
|
+
self.VALUE_TABLE_NOTIFICATION_TYPE = {
|
|
12
|
+
0: "cValue",
|
|
13
|
+
1: "cValueAndTime",
|
|
14
|
+
2: "cValueAndTimeU"
|
|
15
|
+
}
|
|
16
|
+
self.VALUE_TABLE_TYPE = {
|
|
17
|
+
0: "INTEGER",
|
|
18
|
+
1: "FLOAT",
|
|
19
|
+
2: "STRING",
|
|
20
|
+
3: "DATA"
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@property
|
|
24
|
+
def handle(self) -> int:
|
|
25
|
+
return self.com_object.Handle
|
|
26
|
+
|
|
27
|
+
@handle.setter
|
|
28
|
+
def handle(self, value: int):
|
|
29
|
+
self.com_object.Handle = value
|
|
30
|
+
|
|
31
|
+
@property
|
|
32
|
+
def notification_type(self) -> int:
|
|
33
|
+
return self.com_object.NotificationType
|
|
34
|
+
|
|
35
|
+
@notification_type.setter
|
|
36
|
+
def notification_type(self, value: int):
|
|
37
|
+
self.com_object.NotificationType = value
|
|
38
|
+
|
|
39
|
+
@property
|
|
40
|
+
def type(self) -> int:
|
|
41
|
+
return self.com_object.Type
|
|
42
|
+
|
|
43
|
+
@property
|
|
44
|
+
def value(self) -> Union[str, int, float]:
|
|
45
|
+
return self.com_object.Value
|
|
46
|
+
|
|
47
|
+
@value.setter
|
|
48
|
+
def value(self, value: Union[str, int, float]):
|
|
49
|
+
self.com_object.Value = value
|
|
50
|
+
DoEventsUntil(lambda: self._check_value_updated(value), ENV_VAR_CHANGE_TIMEOUT, "Environment Variable Change")
|
|
51
|
+
|
|
52
|
+
def _check_value_updated(self, value) -> bool:
|
|
53
|
+
set_value = value
|
|
54
|
+
get_value = self.value if self.type != 3 else tuple(self.value)
|
|
55
|
+
return get_value == set_value
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import win32com.client
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class FDXFiles:
|
|
5
|
+
"""
|
|
6
|
+
The FDXFiles object represents the collection of FDX files in a CANoe configuration.
|
|
7
|
+
"""
|
|
8
|
+
def __init__(self, com_object):
|
|
9
|
+
self.com_object = com_object
|
|
10
|
+
|
|
11
|
+
@property
|
|
12
|
+
def count(self) -> int:
|
|
13
|
+
return self.com_object.Count
|
|
14
|
+
|
|
15
|
+
def item(self, index: int) -> 'FDXFile':
|
|
16
|
+
return FDXFile(self.com_object.Item(index))
|
|
17
|
+
|
|
18
|
+
def add(self, file: str) -> 'FDXFile':
|
|
19
|
+
return FDXFile(self.com_object.Add(file))
|
|
20
|
+
|
|
21
|
+
def remove(self, index: int):
|
|
22
|
+
self.com_object.Remove(index)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
class FDXFile:
|
|
26
|
+
"""
|
|
27
|
+
The FDXFile object represents a single FDX file in a CANoe configuration.
|
|
28
|
+
"""
|
|
29
|
+
def __init__(self, com_object):
|
|
30
|
+
self.com_object = win32com.client.Dispatch(com_object)
|
|
31
|
+
|
|
32
|
+
@property
|
|
33
|
+
def enabled(self) -> bool:
|
|
34
|
+
return self.com_object.Enabled
|
|
35
|
+
|
|
36
|
+
@enabled.setter
|
|
37
|
+
def enabled(self, value: bool):
|
|
38
|
+
self.com_object.Enabled = value
|
|
39
|
+
|
|
40
|
+
@property
|
|
41
|
+
def full_name(self) -> str:
|
|
42
|
+
return self.com_object.FullName
|
|
43
|
+
|
|
44
|
+
@property
|
|
45
|
+
def name(self) -> str:
|
|
46
|
+
return self.com_object.Name
|
|
47
|
+
|
|
48
|
+
@property
|
|
49
|
+
def path(self) -> str:
|
|
50
|
+
return self.com_object.Path
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
from py_canoe.core.child_elements.data_source_files import DataSourceFiles
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class FileGroupDataSource:
|
|
5
|
+
"""
|
|
6
|
+
Represents a group data source that can import multiple files simultaneously.
|
|
7
|
+
"""
|
|
8
|
+
def __init__(self, com_object) -> None:
|
|
9
|
+
self.com_object = com_object
|
|
10
|
+
|
|
11
|
+
@property
|
|
12
|
+
def name(self) -> str:
|
|
13
|
+
return self.com_object.Name
|
|
14
|
+
|
|
15
|
+
@property
|
|
16
|
+
def source_files(self) -> 'DataSourceFiles':
|
|
17
|
+
return DataSourceFiles(self.com_object.SourceFiles)
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import win32com.client
|
|
2
|
+
|
|
3
|
+
from py_canoe.core.child_elements.ccp_setup import CCPSetup
|
|
4
|
+
from py_canoe.core.child_elements.can_controller import CanController
|
|
5
|
+
from py_canoe.core.child_elements.database_setup import DatabaseSetup
|
|
6
|
+
from py_canoe.core.child_elements.diagnostics_setup import DiagnosticsSetup
|
|
7
|
+
from py_canoe.core.child_elements.macros_setup import MacrosSetup
|
|
8
|
+
from py_canoe.core.child_elements.panel_setup import PanelSetup
|
|
9
|
+
from py_canoe.core.child_elements.security_setup import SecuritySetup
|
|
10
|
+
from py_canoe.core.child_elements.snippet_setup import SnippetSetup
|
|
11
|
+
from py_canoe.core.child_elements.visual_sequence_setup import VisualSequenceSetup
|
|
12
|
+
from py_canoe.core.child_elements.xcp_setup import XCPSetup
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class GeneralSetup:
|
|
16
|
+
"""
|
|
17
|
+
The MeasurementSetup object rRepresents the general settings of a CANoe configuration.
|
|
18
|
+
"""
|
|
19
|
+
def __init__(self, com_object):
|
|
20
|
+
self.com_object = com_object
|
|
21
|
+
|
|
22
|
+
@property
|
|
23
|
+
def ccp_setup(self) -> 'CCPSetup':
|
|
24
|
+
return CCPSetup(self.com_object.CCPSetup)
|
|
25
|
+
|
|
26
|
+
def get_channels_count(self, bust_type: int) -> int:
|
|
27
|
+
return self.com_object.Channels(bust_type)
|
|
28
|
+
|
|
29
|
+
def set_channels_count(self, bust_type: int, channel: int):
|
|
30
|
+
self.com_object.SetChannels(bust_type, channel)
|
|
31
|
+
|
|
32
|
+
@property
|
|
33
|
+
def controller_setup(self, bust_type: int, channel: int) -> 'CanController':
|
|
34
|
+
return CanController(self.com_object.ControllerSetup(bust_type, channel))
|
|
35
|
+
|
|
36
|
+
@property
|
|
37
|
+
def database_setup(self) -> 'DatabaseSetup':
|
|
38
|
+
return DatabaseSetup(self.com_object.DatabaseSetup)
|
|
39
|
+
|
|
40
|
+
@property
|
|
41
|
+
def diagnostics_setup(self) -> 'DiagnosticsSetup':
|
|
42
|
+
return DiagnosticsSetup(self.com_object.DiagnosticsSetup)
|
|
43
|
+
|
|
44
|
+
@property
|
|
45
|
+
def macros_setup(self) -> 'MacrosSetup':
|
|
46
|
+
return MacrosSetup(self.com_object.MacrosSetup)
|
|
47
|
+
|
|
48
|
+
@property
|
|
49
|
+
def panel_setup(self) -> 'PanelSetup':
|
|
50
|
+
return PanelSetup(self.com_object.PanelSetup)
|
|
51
|
+
|
|
52
|
+
@property
|
|
53
|
+
def security_setup(self) -> 'SecuritySetup':
|
|
54
|
+
return SecuritySetup(self.com_object.SecuritySetup)
|
|
55
|
+
|
|
56
|
+
@property
|
|
57
|
+
def snippet_setup(self) -> 'SnippetSetup':
|
|
58
|
+
return SnippetSetup(self.com_object.SnippetSetup)
|
|
59
|
+
|
|
60
|
+
@property
|
|
61
|
+
def visual_sequence_setup(self) -> 'VisualSequenceSetup':
|
|
62
|
+
return VisualSequenceSetup(self.com_object.VisualSequenceSetup)
|
|
63
|
+
|
|
64
|
+
@property
|
|
65
|
+
def xcp_setup(self) -> 'XCPSetup':
|
|
66
|
+
return XCPSetup(self.com_object.XCPSetup)
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import win32com.client
|
|
2
|
+
|
|
3
|
+
class MacrosSetup:
|
|
4
|
+
"""
|
|
5
|
+
The MacrosSetup object represents the macros settings of a CANoe configuration.
|
|
6
|
+
"""
|
|
7
|
+
def __init__(self, com_object) -> None:
|
|
8
|
+
self.com_object = com_object
|
|
9
|
+
|
|
10
|
+
@property
|
|
11
|
+
def macros(self) -> 'Macros':
|
|
12
|
+
return Macros(self.com_object.Macros)
|
|
13
|
+
|
|
14
|
+
def play(self, macro_file: str):
|
|
15
|
+
self.com_object.Play(macro_file)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class Macros:
|
|
19
|
+
def __init__(self, com_object) -> None:
|
|
20
|
+
self.com_object = com_object
|
|
21
|
+
|
|
22
|
+
@property
|
|
23
|
+
def count(self) -> int:
|
|
24
|
+
return self.com_object.Count
|
|
25
|
+
|
|
26
|
+
def item(self, index: int) -> 'Macro':
|
|
27
|
+
return Macro(self.com_object.Item(index))
|
|
28
|
+
|
|
29
|
+
def add_ex(self, file_name: str, full_name: str) -> 'Macro':
|
|
30
|
+
return Macro(self.com_object.AddEx(file_name, full_name))
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
class Macro:
|
|
34
|
+
def __init__(self, com_object) -> None:
|
|
35
|
+
self.com_object = win32com.client.Dispatch(com_object)
|
|
36
|
+
|
|
37
|
+
@property
|
|
38
|
+
def name(self) -> str:
|
|
39
|
+
return self.com_object.Name
|
|
40
|
+
|
|
41
|
+
@property
|
|
42
|
+
def path(self) -> str:
|
|
43
|
+
return self.com_object.Path
|
|
44
|
+
|
|
45
|
+
def is_running(self) -> bool:
|
|
46
|
+
return self.com_object.IsRunning()
|
|
47
|
+
|
|
48
|
+
def start(self):
|
|
49
|
+
self.com_object.Start()
|
|
50
|
+
|
|
51
|
+
def stop(self):
|
|
52
|
+
self.com_object.Stop()
|