pywats-client 0.7.0b1__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.
- pywats_client/__init__.py +153 -0
- pywats_client/__main__.py +782 -0
- pywats_client/_version.py +7 -0
- pywats_client/apps/__init__.py +1 -0
- pywats_client/apps/_credentials.py +54 -0
- pywats_client/apps/_debug_channel.py +384 -0
- pywats_client/apps/_dev.py +26 -0
- pywats_client/apps/_gui_launcher.py +205 -0
- pywats_client/apps/debug/WebAssets/common.js +168 -0
- pywats_client/apps/debug/WebAssets/debug.css +300 -0
- pywats_client/apps/debug/WebAssets/debug.js +407 -0
- pywats_client/apps/debug/WebAssets/index.html +189 -0
- pywats_client/apps/debug/__init__.py +13 -0
- pywats_client/apps/debug/__main__.py +21 -0
- pywats_client/apps/debug/ate_simulator.py +333 -0
- pywats_client/apps/debug/bridge.py +309 -0
- pywats_client/apps/debug/format_generators.py +421 -0
- pywats_client/apps/debug/shell.py +114 -0
- pywats_client/apps/monitor/WebAssets/common.js +168 -0
- pywats_client/apps/monitor/WebAssets/favicon.ico +0 -0
- pywats_client/apps/monitor/WebAssets/index.html +114 -0
- pywats_client/apps/monitor/WebAssets/monitor.css +194 -0
- pywats_client/apps/monitor/WebAssets/monitor.js +333 -0
- pywats_client/apps/monitor/__init__.py +9 -0
- pywats_client/apps/monitor/__main__.py +21 -0
- pywats_client/apps/monitor/bridge.py +121 -0
- pywats_client/apps/monitor/shell.py +101 -0
- pywats_client/apps/yieldmon/WebAssets/common.js +168 -0
- pywats_client/apps/yieldmon/WebAssets/dashboard.css +512 -0
- pywats_client/apps/yieldmon/WebAssets/dashboard.js +945 -0
- pywats_client/apps/yieldmon/WebAssets/favicon.ico +0 -0
- pywats_client/apps/yieldmon/WebAssets/index.html +248 -0
- pywats_client/apps/yieldmon/__init__.py +13 -0
- pywats_client/apps/yieldmon/__main__.py +21 -0
- pywats_client/apps/yieldmon/bridge.py +558 -0
- pywats_client/apps/yieldmon/shell.py +124 -0
- pywats_client/control/HEADLESS_GUIDE.md +166 -0
- pywats_client/control/__init__.py +23 -0
- pywats_client/control/cli.py +818 -0
- pywats_client/control/exit_codes.py +90 -0
- pywats_client/control/unix_service.py +752 -0
- pywats_client/control/windows_native_service.py +763 -0
- pywats_client/control/windows_service.py +290 -0
- pywats_client/converters/__init__.py +154 -0
- pywats_client/converters/base.py +726 -0
- pywats_client/converters/context.py +378 -0
- pywats_client/converters/conversion_log.py +378 -0
- pywats_client/converters/example_csv.py +289 -0
- pywats_client/converters/file_converter.py +519 -0
- pywats_client/converters/folder_converter.py +524 -0
- pywats_client/converters/models.py +643 -0
- pywats_client/converters/runner.py +858 -0
- pywats_client/converters/sandbox.py +1117 -0
- pywats_client/converters/sandbox_runner.py +515 -0
- pywats_client/converters/scheduled_converter.py +531 -0
- pywats_client/converters/standard/__init__.py +58 -0
- pywats_client/converters/standard/_common.py +371 -0
- pywats_client/converters/standard/ai_converter.py +389 -0
- pywats_client/converters/standard/atml_converter.py +745 -0
- pywats_client/converters/standard/keysight_testexec_sl_converter.py +857 -0
- pywats_client/converters/standard/klippel_converter.py +560 -0
- pywats_client/converters/standard/seica_xml_converter.py +424 -0
- pywats_client/converters/standard/spea_converter.py +724 -0
- pywats_client/converters/standard/teradyne_ict_converter.py +738 -0
- pywats_client/converters/standard/teradyne_spectrum_ict_converter.py +788 -0
- pywats_client/converters/standard/wats_standard_json_converter.py +448 -0
- pywats_client/converters/standard/wats_standard_text_converter.py +807 -0
- pywats_client/converters/standard/wats_standard_xml_converter.py +795 -0
- pywats_client/converters/standard/xjtag_converter.py +537 -0
- pywats_client/core/__init__.py +75 -0
- pywats_client/core/async_runner.py +546 -0
- pywats_client/core/auth.py +96 -0
- pywats_client/core/config.py +1497 -0
- pywats_client/core/config_manager.py +189 -0
- pywats_client/core/connection_config.py +173 -0
- pywats_client/core/constants.py +76 -0
- pywats_client/core/credential_discovery.py +60 -0
- pywats_client/core/env.py +99 -0
- pywats_client/core/event_bus.py +303 -0
- pywats_client/core/file_utils.py +605 -0
- pywats_client/core/instance_manager.py +235 -0
- pywats_client/core/logging.py +313 -0
- pywats_client/core/security.py +424 -0
- pywats_client/core/service_manager.py +685 -0
- pywats_client/diagnostics.py +828 -0
- pywats_client/examples/service_application.py +214 -0
- pywats_client/exceptions.py +692 -0
- pywats_client/io.py +313 -0
- pywats_client/queue/__init__.py +101 -0
- pywats_client/queue/async_adapter.py +317 -0
- pywats_client/queue/formats.py +57 -0
- pywats_client/queue/memory_queue.py +806 -0
- pywats_client/queue/persistent_queue.py +490 -0
- pywats_client/queue/report_queue.py +139 -0
- pywats_client/queue/submit_errors.py +211 -0
- pywats_client/service/__init__.py +81 -0
- pywats_client/service/async_client_service.py +2322 -0
- pywats_client/service/async_converter_pool.py +1491 -0
- pywats_client/service/async_ipc_client.py +610 -0
- pywats_client/service/async_ipc_server.py +631 -0
- pywats_client/service/async_pending_queue.py +813 -0
- pywats_client/service/client_registration.py +539 -0
- pywats_client/service/client_service.py +223 -0
- pywats_client/service/client_settings_sync.py +324 -0
- pywats_client/service/data_simulator.py +381 -0
- pywats_client/service/health_server.py +463 -0
- pywats_client/service/ipc_protocol.py +363 -0
- pywats_client/service/monitor_engine.py +478 -0
- pywats_client/service/process_cache.py +149 -0
- pywats_client/service/serial_number_handler.py +452 -0
- pywats_client/service/service_runner.py +140 -0
- pywats_client/service/station_monitor.py +1098 -0
- pywats_client/service/windows_service.py +72 -0
- pywats_client/service/yield_monitor.py +625 -0
- pywats_client-0.7.0b1.dist-info/METADATA +78 -0
- pywats_client-0.7.0b1.dist-info/RECORD +178 -0
- pywats_client-0.7.0b1.dist-info/WHEEL +5 -0
- pywats_client-0.7.0b1.dist-info/entry_points.txt +8 -0
- pywats_client-0.7.0b1.dist-info/licenses/LICENSE +21 -0
- pywats_client-0.7.0b1.dist-info/top_level.txt +2 -0
- pywats_ui/__init__.py +3 -0
- pywats_ui/apps/__init__.py +1 -0
- pywats_ui/apps/configurator/__init__.py +4 -0
- pywats_ui/apps/configurator/main.py +58 -0
- pywats_ui/apps/configurator/main_window.py +372 -0
- pywats_ui/apps/configurator/pages/__init__.py +25 -0
- pywats_ui/apps/configurator/pages/about.py +157 -0
- pywats_ui/apps/configurator/pages/connection.py +701 -0
- pywats_ui/apps/configurator/pages/converters.py +1591 -0
- pywats_ui/apps/configurator/pages/dashboard.py +492 -0
- pywats_ui/apps/configurator/pages/log.py +217 -0
- pywats_ui/apps/configurator/pages/setup.py +470 -0
- pywats_ui/apps/configurator/pages/sn_handler.py +207 -0
- pywats_ui/apps/configurator_web/WebAssets/app.css +206 -0
- pywats_ui/apps/configurator_web/WebAssets/app.js +1048 -0
- pywats_ui/apps/configurator_web/WebAssets/common.js +168 -0
- pywats_ui/apps/configurator_web/WebAssets/favicon.ico +0 -0
- pywats_ui/apps/configurator_web/WebAssets/index.html +507 -0
- pywats_ui/apps/configurator_web/WebAssets/tokens.css +111 -0
- pywats_ui/apps/configurator_web/WebAssets/wats.css +1534 -0
- pywats_ui/apps/configurator_web/__init__.py +3 -0
- pywats_ui/apps/configurator_web/__main__.py +27 -0
- pywats_ui/apps/configurator_web/bridge.py +935 -0
- pywats_ui/apps/configurator_web/shell.py +97 -0
- pywats_ui/apps/production_manager/__init__.py +14 -0
- pywats_ui/apps/production_manager/experimental_mi.py +60 -0
- pywats_ui/apps/production_manager/main.py +32 -0
- pywats_ui/apps/production_manager/main_window.py +638 -0
- pywats_ui/apps/production_manager/models.py +618 -0
- pywats_ui/apps/production_manager/server_bridge.py +351 -0
- pywats_ui/apps/production_manager/widgets/__init__.py +1 -0
- pywats_ui/apps/production_manager/widgets/definition_tree.py +220 -0
- pywats_ui/apps/production_manager/widgets/designer_tab.py +290 -0
- pywats_ui/apps/production_manager/widgets/flow_canvas.py +385 -0
- pywats_ui/apps/production_manager/widgets/instructions_tab.py +165 -0
- pywats_ui/apps/production_manager/widgets/outline_tree.py +134 -0
- pywats_ui/apps/production_manager/widgets/overview_tab.py +302 -0
- pywats_ui/apps/production_manager/widgets/property_editor.py +313 -0
- pywats_ui/apps/production_manager/widgets/relations_tab.py +388 -0
- pywats_ui/apps/production_manager/widgets/test_tab.py +1245 -0
- pywats_ui/apps/production_manager/widgets/toolbox.py +167 -0
- pywats_ui/apps/resources/favicon.ico +0 -0
- pywats_ui/framework/__init__.py +68 -0
- pywats_ui/framework/base_page.py +346 -0
- pywats_ui/framework/error_mixin.py +232 -0
- pywats_ui/framework/reliability/__init__.py +17 -0
- pywats_ui/framework/reliability/queue_manager.py +421 -0
- pywats_ui/framework/system_tray.py +133 -0
- pywats_ui/framework/themes/__init__.py +14 -0
- pywats_ui/framework/themes/base.qss +432 -0
- pywats_ui/framework/themes/dark.py +404 -0
- pywats_ui/framework/themes/dark_tokens.py +120 -0
- pywats_ui/framework/themes/light_tokens.py +120 -0
- pywats_ui/framework/themes/theme_manager.py +193 -0
- pywats_ui/framework/themes/tokens.py +128 -0
- pywats_ui/widgets/__init__.py +12 -0
- pywats_ui/widgets/new_converter_dialog.py +548 -0
- pywats_ui/widgets/script_editor.py +1105 -0
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
"""
|
|
2
|
+
pyWATS Client - Cross-platform client application for WATS
|
|
3
|
+
|
|
4
|
+
Features:
|
|
5
|
+
- Background service for report processing
|
|
6
|
+
- Converter framework for file-to-report conversion
|
|
7
|
+
- Qt-based GUI for configuration and monitoring
|
|
8
|
+
- CLI interface for headless configuration and control
|
|
9
|
+
- Multi-instance support
|
|
10
|
+
- Service/daemon mode support (systemd, Windows Service, launchd)
|
|
11
|
+
|
|
12
|
+
Installation:
|
|
13
|
+
pip install pywats-client[html]
|
|
14
|
+
|
|
15
|
+
Usage:
|
|
16
|
+
- GUI Mode: python -m pywats_client gui
|
|
17
|
+
- Service Mode: python -m pywats_client service
|
|
18
|
+
- Install: python -m pywats_client install-service
|
|
19
|
+
"""
|
|
20
|
+
|
|
21
|
+
# The client has its own version (``pywats-client``), reported by ``--version``, the IPC
|
|
22
|
+
# hello and System Manager. The API version is ``pywats.__version__``.
|
|
23
|
+
from ._version import __version__
|
|
24
|
+
|
|
25
|
+
# Core configuration
|
|
26
|
+
from .core.config import ClientConfig, get_default_config_path
|
|
27
|
+
|
|
28
|
+
# Exceptions (user-facing errors with troubleshooting hints)
|
|
29
|
+
from .exceptions import (
|
|
30
|
+
ClientError,
|
|
31
|
+
# Converter errors
|
|
32
|
+
ConverterError,
|
|
33
|
+
FileFormatError,
|
|
34
|
+
FileAccessError,
|
|
35
|
+
ConverterConfigError,
|
|
36
|
+
# Queue errors
|
|
37
|
+
QueueError,
|
|
38
|
+
QueueFullError,
|
|
39
|
+
QueueCorruptedError,
|
|
40
|
+
OfflineError,
|
|
41
|
+
# Service errors
|
|
42
|
+
ServiceInstallError,
|
|
43
|
+
ServiceStartError,
|
|
44
|
+
ServicePermissionError,
|
|
45
|
+
# Configuration errors
|
|
46
|
+
ConfigurationError,
|
|
47
|
+
ConfigurationMissingError,
|
|
48
|
+
)
|
|
49
|
+
|
|
50
|
+
# Service layer (async-first architecture)
|
|
51
|
+
from .service.client_service import ClientService, ServiceStatus
|
|
52
|
+
from .service.async_client_service import AsyncClientService, AsyncServiceStatus
|
|
53
|
+
from .service.async_converter_pool import AsyncConverterPool, AsyncConversionItem
|
|
54
|
+
from .service.async_pending_queue import AsyncPendingQueue, AsyncPendingQueueState
|
|
55
|
+
|
|
56
|
+
# Async IPC (pure Python, no Qt dependency)
|
|
57
|
+
from .service.async_ipc_server import AsyncIPCServer
|
|
58
|
+
from .service.async_ipc_client import (
|
|
59
|
+
AsyncIPCClient,
|
|
60
|
+
InstanceInfo,
|
|
61
|
+
discover_services_async,
|
|
62
|
+
ServiceDiscoveryAsync,
|
|
63
|
+
)
|
|
64
|
+
|
|
65
|
+
# Aliases for cleaner imports
|
|
66
|
+
ConverterPool = AsyncConverterPool
|
|
67
|
+
PendingQueue = AsyncPendingQueue
|
|
68
|
+
|
|
69
|
+
# Converters
|
|
70
|
+
from .converters.base import (
|
|
71
|
+
ConverterBase,
|
|
72
|
+
ConverterResult,
|
|
73
|
+
ConverterArguments,
|
|
74
|
+
ConversionStatus,
|
|
75
|
+
PostProcessAction,
|
|
76
|
+
FileInfo,
|
|
77
|
+
CSVConverter,
|
|
78
|
+
)
|
|
79
|
+
|
|
80
|
+
# Control interfaces
|
|
81
|
+
from .control.cli import ConfigCLI, cli_main
|
|
82
|
+
|
|
83
|
+
# File I/O utilities
|
|
84
|
+
from .io import (
|
|
85
|
+
AttachmentIO,
|
|
86
|
+
FileInfo as AttachmentFileInfo,
|
|
87
|
+
load_attachment,
|
|
88
|
+
save_attachment,
|
|
89
|
+
)
|
|
90
|
+
|
|
91
|
+
__all__ = [
|
|
92
|
+
# Version
|
|
93
|
+
"__version__",
|
|
94
|
+
|
|
95
|
+
# Core configuration
|
|
96
|
+
"ClientConfig",
|
|
97
|
+
"get_default_config_path",
|
|
98
|
+
|
|
99
|
+
# Service layer (async-first)
|
|
100
|
+
"ClientService",
|
|
101
|
+
"ServiceStatus",
|
|
102
|
+
"AsyncClientService",
|
|
103
|
+
"AsyncServiceStatus",
|
|
104
|
+
"AsyncConverterPool",
|
|
105
|
+
"AsyncConversionItem",
|
|
106
|
+
"AsyncPendingQueue",
|
|
107
|
+
"AsyncPendingQueueState",
|
|
108
|
+
# Aliases
|
|
109
|
+
"ConverterPool",
|
|
110
|
+
"PendingQueue",
|
|
111
|
+
|
|
112
|
+
# IPC (async - pure Python, no Qt)
|
|
113
|
+
"AsyncIPCServer",
|
|
114
|
+
"AsyncIPCClient",
|
|
115
|
+
"InstanceInfo",
|
|
116
|
+
"discover_services_async",
|
|
117
|
+
"ServiceDiscoveryAsync",
|
|
118
|
+
|
|
119
|
+
# Converters
|
|
120
|
+
"ConverterBase",
|
|
121
|
+
"ConverterResult",
|
|
122
|
+
"ConverterArguments",
|
|
123
|
+
"ConversionStatus",
|
|
124
|
+
"PostProcessAction",
|
|
125
|
+
"FileInfo",
|
|
126
|
+
"CSVConverter",
|
|
127
|
+
|
|
128
|
+
# CLI
|
|
129
|
+
"ConfigCLI",
|
|
130
|
+
"cli_main",
|
|
131
|
+
|
|
132
|
+
# File I/O
|
|
133
|
+
"AttachmentIO",
|
|
134
|
+
"AttachmentFileInfo",
|
|
135
|
+
"load_attachment",
|
|
136
|
+
"save_attachment",
|
|
137
|
+
|
|
138
|
+
# Exceptions
|
|
139
|
+
"ClientError",
|
|
140
|
+
"ConverterError",
|
|
141
|
+
"FileFormatError",
|
|
142
|
+
"FileAccessError",
|
|
143
|
+
"ConverterConfigError",
|
|
144
|
+
"QueueError",
|
|
145
|
+
"QueueFullError",
|
|
146
|
+
"QueueCorruptedError",
|
|
147
|
+
"OfflineError",
|
|
148
|
+
"ServiceInstallError",
|
|
149
|
+
"ServiceStartError",
|
|
150
|
+
"ServicePermissionError",
|
|
151
|
+
"ConfigurationError",
|
|
152
|
+
"ConfigurationMissingError",
|
|
153
|
+
]
|