py-teststand 0.1.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_teststand/__init__.py +289 -0
- py_teststand/adapters/__init__.py +37 -0
- py_teststand/adapters/activex.py +657 -0
- py_teststand/adapters/adapter.py +695 -0
- py_teststand/adapters/cvi.py +290 -0
- py_teststand/adapters/dll.py +476 -0
- py_teststand/adapters/dotnet.py +987 -0
- py_teststand/adapters/htbasic.py +142 -0
- py_teststand/adapters/labview.py +1553 -0
- py_teststand/adapters/labview_nxg.py +835 -0
- py_teststand/adapters/python.py +484 -0
- py_teststand/adapters/sequence.py +381 -0
- py_teststand/analyzer/__init__.py +49 -0
- py_teststand/analyzer/analysis_context.py +165 -0
- py_teststand/analyzer/analysis_message.py +34 -0
- py_teststand/analyzer/analysis_utilities.py +88 -0
- py_teststand/analyzer/rule.py +112 -0
- py_teststand/analyzer/rule_configuration.py +78 -0
- py_teststand/analyzer/rule_setting_values.py +21 -0
- py_teststand/analyzer/types.py +0 -0
- py_teststand/core/__init__.py +1 -0
- py_teststand/core/com_wrapper.py +213 -0
- py_teststand/core/engine.py +3787 -0
- py_teststand/core/exceptions.py +292 -0
- py_teststand/core/external_report_viewers.py +99 -0
- py_teststand/core/file_information.py +106 -0
- py_teststand/core/images.py +33 -0
- py_teststand/core/search.py +169 -0
- py_teststand/core/utility.py +17 -0
- py_teststand/execution/__init__.py +1 -0
- py_teststand/execution/additional_results.py +188 -0
- py_teststand/execution/breakpoint.py +36 -0
- py_teststand/execution/database_options.py +116 -0
- py_teststand/execution/edit_args.py +63 -0
- py_teststand/execution/execution.py +926 -0
- py_teststand/execution/interactive_args.py +118 -0
- py_teststand/execution/output_record_stream.py +170 -0
- py_teststand/execution/report.py +302 -0
- py_teststand/execution/result_log.py +328 -0
- py_teststand/execution/sync_manager.py +713 -0
- py_teststand/execution/thread.py +198 -0
- py_teststand/execution/watch_expression.py +179 -0
- py_teststand/ext/__init__.py +1 -0
- py_teststand/ext/events.py +220 -0
- py_teststand/ext/step_types.py +32 -0
- py_teststand/messaging/__init__.py +1 -0
- py_teststand/messaging/output_message.py +122 -0
- py_teststand/messaging/output_messages.py +60 -0
- py_teststand/messaging/ui_message.py +116 -0
- py_teststand/property/__init__.py +1 -0
- py_teststand/property/array_dimensions.py +45 -0
- py_teststand/property/data_type.py +96 -0
- py_teststand/property/property_object.py +1190 -0
- py_teststand/property/property_object_file.py +330 -0
- py_teststand/sequence/__init__.py +1 -0
- py_teststand/sequence/code_template.py +63 -0
- py_teststand/sequence/expression.py +230 -0
- py_teststand/sequence/location.py +609 -0
- py_teststand/sequence/sequence.py +558 -0
- py_teststand/sequence/sequence_context.py +438 -0
- py_teststand/sequence/sequence_file.py +457 -0
- py_teststand/sequence/step.py +1296 -0
- py_teststand/sequence/step_group.py +14 -0
- py_teststand/sequence/step_type.py +640 -0
- py_teststand/sequence/type_palette.py +22 -0
- py_teststand/station/__init__.py +1 -0
- py_teststand/station/search_directories.py +125 -0
- py_teststand/station/station_options.py +592 -0
- py_teststand/ui/__init__.py +78 -0
- py_teststand/ui/application_manager.py +776 -0
- py_teststand/ui/button_ctrl.py +237 -0
- py_teststand/ui/checkbox_ctrl.py +153 -0
- py_teststand/ui/combobox_ctrl.py +158 -0
- py_teststand/ui/command.py +256 -0
- py_teststand/ui/connections.py +2411 -0
- py_teststand/ui/entry_point.py +81 -0
- py_teststand/ui/events.py +483 -0
- py_teststand/ui/execution_view_manager.py +415 -0
- py_teststand/ui/expression_edit_ctrl.py +477 -0
- py_teststand/ui/insertion_palette.py +77 -0
- py_teststand/ui/label_ctrl.py +159 -0
- py_teststand/ui/list_box_ctrl.py +261 -0
- py_teststand/ui/listbar_ctrl.py +200 -0
- py_teststand/ui/menu_item.py +244 -0
- py_teststand/ui/report_view_ctrl.py +147 -0
- py_teststand/ui/sequence_file_view_manager.py +380 -0
- py_teststand/ui/sequence_view_ctrl.py +436 -0
- py_teststand/ui/status_bar.py +240 -0
- py_teststand/ui/styles.py +373 -0
- py_teststand/ui/variables_view_ctrl.py +42 -0
- py_teststand/undo/__init__.py +1 -0
- py_teststand/undo/undo_item.py +118 -0
- py_teststand/undo/undo_item_creator.py +57 -0
- py_teststand/undo/undo_stack.py +105 -0
- py_teststand/users/__init__.py +1 -0
- py_teststand/users/user.py +108 -0
- py_teststand/users/users_file.py +56 -0
- py_teststand/workspace/__init__.py +1 -0
- py_teststand/workspace/workspace_file.py +86 -0
- py_teststand/workspace/workspace_object.py +190 -0
- py_teststand-0.1.0.dist-info/METADATA +160 -0
- py_teststand-0.1.0.dist-info/RECORD +104 -0
- py_teststand-0.1.0.dist-info/WHEEL +4 -0
- py_teststand-0.1.0.dist-info/licenses/LICENSE +23 -0
py_teststand/__init__.py
ADDED
|
@@ -0,0 +1,289 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
try:
|
|
4
|
+
from importlib.metadata import version as _version
|
|
5
|
+
|
|
6
|
+
__version__ = _version("py-teststand")
|
|
7
|
+
except Exception:
|
|
8
|
+
__version__ = "1.0.0"
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
from .adapters import (
|
|
12
|
+
ActiveXAdapter,
|
|
13
|
+
ActiveXModule,
|
|
14
|
+
CVIAdapter,
|
|
15
|
+
CVIModule,
|
|
16
|
+
DLLAdapter,
|
|
17
|
+
DLLModule,
|
|
18
|
+
DotNetAdapter,
|
|
19
|
+
DotNetModule,
|
|
20
|
+
HTBasicAdapter,
|
|
21
|
+
HTBasicModule,
|
|
22
|
+
LabVIEWAdapter,
|
|
23
|
+
LabVIEWModule,
|
|
24
|
+
LabVIEWNXGAdapter,
|
|
25
|
+
LabVIEWNXGModule,
|
|
26
|
+
PythonAdapter,
|
|
27
|
+
PythonModule,
|
|
28
|
+
SequenceAdapter,
|
|
29
|
+
SequenceCallModule,
|
|
30
|
+
UnmappedArgumentValue,
|
|
31
|
+
UnmappedArgumentValueList,
|
|
32
|
+
)
|
|
33
|
+
from .adapters.adapter import Adapter, Module
|
|
34
|
+
from .core.com_wrapper import COMWrapper, ts_interface # noqa: F401
|
|
35
|
+
from .core.engine import (
|
|
36
|
+
ConflictResolution,
|
|
37
|
+
EditKind,
|
|
38
|
+
Engine,
|
|
39
|
+
FindFilePromptOption,
|
|
40
|
+
FindFileSearchListOption,
|
|
41
|
+
GetSeqFileOption,
|
|
42
|
+
OpenWorkspaceFileOption,
|
|
43
|
+
ReleaseSeqFileOption,
|
|
44
|
+
RTEOption,
|
|
45
|
+
TestStandPath,
|
|
46
|
+
)
|
|
47
|
+
from .core.exceptions import (
|
|
48
|
+
AccessDeniedError,
|
|
49
|
+
AdapterError,
|
|
50
|
+
DeploymentError,
|
|
51
|
+
ExecutionError,
|
|
52
|
+
FileAlreadyExistsError,
|
|
53
|
+
IndexOutOfRangeError,
|
|
54
|
+
InvalidPropertyError,
|
|
55
|
+
IOError,
|
|
56
|
+
MemoryError,
|
|
57
|
+
ModuleLoadError,
|
|
58
|
+
PathNotFoundError,
|
|
59
|
+
PropertyError,
|
|
60
|
+
SequenceAbortedError,
|
|
61
|
+
SequenceFileLoadError,
|
|
62
|
+
SequenceTerminatedError,
|
|
63
|
+
SequenceValidationError,
|
|
64
|
+
StepExecutionError,
|
|
65
|
+
SystemError,
|
|
66
|
+
TestStandCOMError,
|
|
67
|
+
TestStandError,
|
|
68
|
+
TestStandFileNotFoundError,
|
|
69
|
+
TestStandLicenseError,
|
|
70
|
+
TypeMismatchError,
|
|
71
|
+
)
|
|
72
|
+
from .core.file_information import FileInformation
|
|
73
|
+
from .core.search import (
|
|
74
|
+
SearchElement,
|
|
75
|
+
SearchFilterOption,
|
|
76
|
+
SearchMatch,
|
|
77
|
+
SearchOption,
|
|
78
|
+
SearchResults,
|
|
79
|
+
)
|
|
80
|
+
from .execution.additional_results import (
|
|
81
|
+
AdditionalResult,
|
|
82
|
+
AdditionalResultKind,
|
|
83
|
+
AdditionalResults,
|
|
84
|
+
CheckedState,
|
|
85
|
+
)
|
|
86
|
+
from .execution.breakpoint import SelectedBreakpointItem
|
|
87
|
+
from .execution.database_options import DatabaseLogOptions
|
|
88
|
+
from .execution.edit_args import EditArgs
|
|
89
|
+
from .execution.execution import Execution, ExecutionTypeMask
|
|
90
|
+
from .execution.interactive_args import InteractiveArgs, InteractiveContext
|
|
91
|
+
from .execution.report import Report, ReportConversion, Reports, ReportSection, ReportSections
|
|
92
|
+
from .execution.result_log import ResultLog, ResultLogger, ResultLogRecordType
|
|
93
|
+
from .execution.sync_manager import (
|
|
94
|
+
AutoReleaser,
|
|
95
|
+
Batch,
|
|
96
|
+
Mutex,
|
|
97
|
+
Notification,
|
|
98
|
+
Queue,
|
|
99
|
+
Rendezvous,
|
|
100
|
+
Semaphore,
|
|
101
|
+
SyncManager,
|
|
102
|
+
)
|
|
103
|
+
from .execution.thread import (
|
|
104
|
+
SeqCallNewExecModelOption,
|
|
105
|
+
SeqCallNewThreadOption,
|
|
106
|
+
SeqCallWaitForExecOption,
|
|
107
|
+
Thread,
|
|
108
|
+
)
|
|
109
|
+
from .execution.watch_expression import WatchExpression, WatchExpressions
|
|
110
|
+
from .messaging.output_message import OutputMessage
|
|
111
|
+
from .messaging.output_messages import OutputMessages
|
|
112
|
+
from .messaging.ui_message import UIMessage
|
|
113
|
+
from .property.array_dimensions import ArrayDimensions
|
|
114
|
+
from .property.data_type import (
|
|
115
|
+
DataType,
|
|
116
|
+
PropertyObjectType,
|
|
117
|
+
PropertyRepresentation,
|
|
118
|
+
PropertyValueTypeFlag,
|
|
119
|
+
PropValType,
|
|
120
|
+
)
|
|
121
|
+
from .property.property_object import PropertyFlag, PropertyObject
|
|
122
|
+
from .property.property_object_file import PropertyObjectFile, PropertyObjectFileType, TypeUsageList
|
|
123
|
+
from .sequence.code_template import CodeTemplate, CodeTemplates
|
|
124
|
+
from .sequence.expression import EvaluationType, Expression
|
|
125
|
+
from .sequence.location import Location, Locations
|
|
126
|
+
from .sequence.sequence import Sequence
|
|
127
|
+
from .sequence.sequence_context import SequenceContext
|
|
128
|
+
from .sequence.sequence_file import SequenceFile
|
|
129
|
+
from .sequence.step import Step
|
|
130
|
+
from .sequence.step_type import StepType
|
|
131
|
+
from .station.search_directories import SearchDirectories, SearchDirectory
|
|
132
|
+
from .station.station_options import StationOptions
|
|
133
|
+
from .ui.application_manager import ApplicationManager
|
|
134
|
+
from .ui.execution_view_manager import ExecutionViewManager
|
|
135
|
+
from .ui.sequence_file_view_manager import SequenceFileViewManager
|
|
136
|
+
from .undo.undo_item import UndoItem
|
|
137
|
+
from .undo.undo_item_creator import UndoItemCreator
|
|
138
|
+
from .undo.undo_stack import UndoStack
|
|
139
|
+
from .users.user import User, UserGroup
|
|
140
|
+
from .users.users_file import UsersFile
|
|
141
|
+
from .workspace.workspace_file import SaveWorkspaceFileOption, WorkspaceFile
|
|
142
|
+
from .workspace.workspace_object import (
|
|
143
|
+
SourceControlCommand,
|
|
144
|
+
SourceControlCommandOption,
|
|
145
|
+
SourceControlStatus,
|
|
146
|
+
WorkspaceObject,
|
|
147
|
+
WorkspaceObjectType,
|
|
148
|
+
)
|
|
149
|
+
|
|
150
|
+
__all__ = [
|
|
151
|
+
"AccessDeniedError",
|
|
152
|
+
"ActiveXAdapter",
|
|
153
|
+
"ActiveXModule",
|
|
154
|
+
"Adapter",
|
|
155
|
+
"AdapterError",
|
|
156
|
+
"AdditionalResult",
|
|
157
|
+
"AdditionalResultKind",
|
|
158
|
+
"AdditionalResults",
|
|
159
|
+
"ApplicationManager",
|
|
160
|
+
"ArrayDimensions",
|
|
161
|
+
"AutoReleaser",
|
|
162
|
+
"Batch",
|
|
163
|
+
"CVIAdapter",
|
|
164
|
+
"CVIModule",
|
|
165
|
+
"CheckedState",
|
|
166
|
+
"CodeTemplate",
|
|
167
|
+
"CodeTemplates",
|
|
168
|
+
"ConflictResolution",
|
|
169
|
+
"DLLAdapter",
|
|
170
|
+
"DLLModule",
|
|
171
|
+
"DataType",
|
|
172
|
+
"DatabaseLogOptions",
|
|
173
|
+
"DeploymentError",
|
|
174
|
+
"DotNetAdapter",
|
|
175
|
+
"DotNetModule",
|
|
176
|
+
"EditArgs",
|
|
177
|
+
"EditKind",
|
|
178
|
+
"Engine",
|
|
179
|
+
"EvaluationType",
|
|
180
|
+
"Execution",
|
|
181
|
+
"ExecutionError",
|
|
182
|
+
"ExecutionTypeMask",
|
|
183
|
+
"ExecutionViewManager",
|
|
184
|
+
"Expression",
|
|
185
|
+
"FileAlreadyExistsError",
|
|
186
|
+
"FileInformation",
|
|
187
|
+
"FindFilePromptOption",
|
|
188
|
+
"FindFileSearchListOption",
|
|
189
|
+
"GetSeqFileOption",
|
|
190
|
+
"HTBasicAdapter",
|
|
191
|
+
"HTBasicModule",
|
|
192
|
+
"IOError",
|
|
193
|
+
"IndexOutOfRangeError",
|
|
194
|
+
"InteractiveArgs",
|
|
195
|
+
"InteractiveContext",
|
|
196
|
+
"InvalidPropertyError",
|
|
197
|
+
"LabVIEWAdapter",
|
|
198
|
+
"LabVIEWModule",
|
|
199
|
+
"LabVIEWNXGAdapter",
|
|
200
|
+
"LabVIEWNXGModule",
|
|
201
|
+
"Location",
|
|
202
|
+
"Locations",
|
|
203
|
+
"MemoryError",
|
|
204
|
+
"Module",
|
|
205
|
+
"ModuleLoadError",
|
|
206
|
+
"Mutex",
|
|
207
|
+
"Notification",
|
|
208
|
+
"OpenWorkspaceFileOption",
|
|
209
|
+
"OutputMessage",
|
|
210
|
+
"OutputMessages",
|
|
211
|
+
"PathNotFoundError",
|
|
212
|
+
"PropValType",
|
|
213
|
+
"PropertyError",
|
|
214
|
+
"PropertyFlag",
|
|
215
|
+
"PropertyObject",
|
|
216
|
+
"PropertyObjectFile",
|
|
217
|
+
"PropertyObjectFileType",
|
|
218
|
+
"PropertyObjectType",
|
|
219
|
+
"PropertyRepresentation",
|
|
220
|
+
"PropertyValueTypeFlag",
|
|
221
|
+
"PythonAdapter",
|
|
222
|
+
"PythonModule",
|
|
223
|
+
"Queue",
|
|
224
|
+
"RTEOption",
|
|
225
|
+
"ReleaseSeqFileOption",
|
|
226
|
+
"Rendezvous",
|
|
227
|
+
"Report",
|
|
228
|
+
"ReportConversion",
|
|
229
|
+
"ReportSection",
|
|
230
|
+
"ReportSections",
|
|
231
|
+
"Reports",
|
|
232
|
+
"ResultLog",
|
|
233
|
+
"ResultLogRecordType",
|
|
234
|
+
"ResultLogger",
|
|
235
|
+
"SaveWorkspaceFileOption",
|
|
236
|
+
"SearchDirectories",
|
|
237
|
+
"SearchDirectory",
|
|
238
|
+
"SearchElement",
|
|
239
|
+
"SearchFilterOption",
|
|
240
|
+
"SearchMatch",
|
|
241
|
+
"SearchOption",
|
|
242
|
+
"SearchResults",
|
|
243
|
+
"SelectedBreakpointItem",
|
|
244
|
+
"Semaphore",
|
|
245
|
+
"SeqCallNewExecModelOption",
|
|
246
|
+
"SeqCallNewThreadOption",
|
|
247
|
+
"SeqCallWaitForExecOption",
|
|
248
|
+
"Sequence",
|
|
249
|
+
"SequenceAbortedError",
|
|
250
|
+
"SequenceAdapter",
|
|
251
|
+
"SequenceCallModule",
|
|
252
|
+
"SequenceContext",
|
|
253
|
+
"SequenceFile",
|
|
254
|
+
"SequenceFileLoadError",
|
|
255
|
+
"SequenceFileViewManager",
|
|
256
|
+
"SequenceTerminatedError",
|
|
257
|
+
"SequenceValidationError",
|
|
258
|
+
"SourceControlCommand",
|
|
259
|
+
"SourceControlCommandOption",
|
|
260
|
+
"SourceControlStatus",
|
|
261
|
+
"StationOptions",
|
|
262
|
+
"Step",
|
|
263
|
+
"StepExecutionError",
|
|
264
|
+
"StepType",
|
|
265
|
+
"SyncManager",
|
|
266
|
+
"SystemError",
|
|
267
|
+
"TestStandCOMError",
|
|
268
|
+
"TestStandError",
|
|
269
|
+
"TestStandFileNotFoundError",
|
|
270
|
+
"TestStandLicenseError",
|
|
271
|
+
"TestStandPath",
|
|
272
|
+
"Thread",
|
|
273
|
+
"TypeMismatchError",
|
|
274
|
+
"TypeUsageList",
|
|
275
|
+
"UIMessage",
|
|
276
|
+
"UndoItem",
|
|
277
|
+
"UndoItemCreator",
|
|
278
|
+
"UndoStack",
|
|
279
|
+
"UnmappedArgumentValue",
|
|
280
|
+
"UnmappedArgumentValueList",
|
|
281
|
+
"User",
|
|
282
|
+
"UserGroup",
|
|
283
|
+
"UsersFile",
|
|
284
|
+
"WatchExpression",
|
|
285
|
+
"WatchExpressions",
|
|
286
|
+
"WorkspaceFile",
|
|
287
|
+
"WorkspaceObject",
|
|
288
|
+
"WorkspaceObjectType",
|
|
289
|
+
]
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from .activex import ActiveXAdapter, ActiveXModule
|
|
4
|
+
from .adapter import Adapter, Module, UnmappedArgumentValue, UnmappedArgumentValueList
|
|
5
|
+
from .cvi import CVIAdapter, CVIModule
|
|
6
|
+
from .dll import DLLAdapter, DLLModule
|
|
7
|
+
from .dotnet import DotNetAdapter, DotNetModule
|
|
8
|
+
from .htbasic import HTBasicAdapter, HTBasicModule
|
|
9
|
+
from .labview import LabVIEWAdapter, LabVIEWModule
|
|
10
|
+
from .labview_nxg import LabVIEWNXGAdapter, LabVIEWNXGModule
|
|
11
|
+
from .python import PythonAdapter, PythonModule
|
|
12
|
+
from .sequence import SequenceAdapter, SequenceCallModule
|
|
13
|
+
|
|
14
|
+
__all__ = [
|
|
15
|
+
"ActiveXAdapter",
|
|
16
|
+
"ActiveXModule",
|
|
17
|
+
"Adapter",
|
|
18
|
+
"CVIAdapter",
|
|
19
|
+
"CVIModule",
|
|
20
|
+
"DLLAdapter",
|
|
21
|
+
"DLLModule",
|
|
22
|
+
"DotNetAdapter",
|
|
23
|
+
"DotNetModule",
|
|
24
|
+
"HTBasicAdapter",
|
|
25
|
+
"HTBasicModule",
|
|
26
|
+
"LabVIEWAdapter",
|
|
27
|
+
"LabVIEWModule",
|
|
28
|
+
"LabVIEWNXGAdapter",
|
|
29
|
+
"LabVIEWNXGModule",
|
|
30
|
+
"Module",
|
|
31
|
+
"PythonAdapter",
|
|
32
|
+
"PythonModule",
|
|
33
|
+
"SequenceAdapter",
|
|
34
|
+
"SequenceCallModule",
|
|
35
|
+
"UnmappedArgumentValue",
|
|
36
|
+
"UnmappedArgumentValueList",
|
|
37
|
+
]
|