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.
Files changed (178) hide show
  1. pywats_client/__init__.py +153 -0
  2. pywats_client/__main__.py +782 -0
  3. pywats_client/_version.py +7 -0
  4. pywats_client/apps/__init__.py +1 -0
  5. pywats_client/apps/_credentials.py +54 -0
  6. pywats_client/apps/_debug_channel.py +384 -0
  7. pywats_client/apps/_dev.py +26 -0
  8. pywats_client/apps/_gui_launcher.py +205 -0
  9. pywats_client/apps/debug/WebAssets/common.js +168 -0
  10. pywats_client/apps/debug/WebAssets/debug.css +300 -0
  11. pywats_client/apps/debug/WebAssets/debug.js +407 -0
  12. pywats_client/apps/debug/WebAssets/index.html +189 -0
  13. pywats_client/apps/debug/__init__.py +13 -0
  14. pywats_client/apps/debug/__main__.py +21 -0
  15. pywats_client/apps/debug/ate_simulator.py +333 -0
  16. pywats_client/apps/debug/bridge.py +309 -0
  17. pywats_client/apps/debug/format_generators.py +421 -0
  18. pywats_client/apps/debug/shell.py +114 -0
  19. pywats_client/apps/monitor/WebAssets/common.js +168 -0
  20. pywats_client/apps/monitor/WebAssets/favicon.ico +0 -0
  21. pywats_client/apps/monitor/WebAssets/index.html +114 -0
  22. pywats_client/apps/monitor/WebAssets/monitor.css +194 -0
  23. pywats_client/apps/monitor/WebAssets/monitor.js +333 -0
  24. pywats_client/apps/monitor/__init__.py +9 -0
  25. pywats_client/apps/monitor/__main__.py +21 -0
  26. pywats_client/apps/monitor/bridge.py +121 -0
  27. pywats_client/apps/monitor/shell.py +101 -0
  28. pywats_client/apps/yieldmon/WebAssets/common.js +168 -0
  29. pywats_client/apps/yieldmon/WebAssets/dashboard.css +512 -0
  30. pywats_client/apps/yieldmon/WebAssets/dashboard.js +945 -0
  31. pywats_client/apps/yieldmon/WebAssets/favicon.ico +0 -0
  32. pywats_client/apps/yieldmon/WebAssets/index.html +248 -0
  33. pywats_client/apps/yieldmon/__init__.py +13 -0
  34. pywats_client/apps/yieldmon/__main__.py +21 -0
  35. pywats_client/apps/yieldmon/bridge.py +558 -0
  36. pywats_client/apps/yieldmon/shell.py +124 -0
  37. pywats_client/control/HEADLESS_GUIDE.md +166 -0
  38. pywats_client/control/__init__.py +23 -0
  39. pywats_client/control/cli.py +818 -0
  40. pywats_client/control/exit_codes.py +90 -0
  41. pywats_client/control/unix_service.py +752 -0
  42. pywats_client/control/windows_native_service.py +763 -0
  43. pywats_client/control/windows_service.py +290 -0
  44. pywats_client/converters/__init__.py +154 -0
  45. pywats_client/converters/base.py +726 -0
  46. pywats_client/converters/context.py +378 -0
  47. pywats_client/converters/conversion_log.py +378 -0
  48. pywats_client/converters/example_csv.py +289 -0
  49. pywats_client/converters/file_converter.py +519 -0
  50. pywats_client/converters/folder_converter.py +524 -0
  51. pywats_client/converters/models.py +643 -0
  52. pywats_client/converters/runner.py +858 -0
  53. pywats_client/converters/sandbox.py +1117 -0
  54. pywats_client/converters/sandbox_runner.py +515 -0
  55. pywats_client/converters/scheduled_converter.py +531 -0
  56. pywats_client/converters/standard/__init__.py +58 -0
  57. pywats_client/converters/standard/_common.py +371 -0
  58. pywats_client/converters/standard/ai_converter.py +389 -0
  59. pywats_client/converters/standard/atml_converter.py +745 -0
  60. pywats_client/converters/standard/keysight_testexec_sl_converter.py +857 -0
  61. pywats_client/converters/standard/klippel_converter.py +560 -0
  62. pywats_client/converters/standard/seica_xml_converter.py +424 -0
  63. pywats_client/converters/standard/spea_converter.py +724 -0
  64. pywats_client/converters/standard/teradyne_ict_converter.py +738 -0
  65. pywats_client/converters/standard/teradyne_spectrum_ict_converter.py +788 -0
  66. pywats_client/converters/standard/wats_standard_json_converter.py +448 -0
  67. pywats_client/converters/standard/wats_standard_text_converter.py +807 -0
  68. pywats_client/converters/standard/wats_standard_xml_converter.py +795 -0
  69. pywats_client/converters/standard/xjtag_converter.py +537 -0
  70. pywats_client/core/__init__.py +75 -0
  71. pywats_client/core/async_runner.py +546 -0
  72. pywats_client/core/auth.py +96 -0
  73. pywats_client/core/config.py +1497 -0
  74. pywats_client/core/config_manager.py +189 -0
  75. pywats_client/core/connection_config.py +173 -0
  76. pywats_client/core/constants.py +76 -0
  77. pywats_client/core/credential_discovery.py +60 -0
  78. pywats_client/core/env.py +99 -0
  79. pywats_client/core/event_bus.py +303 -0
  80. pywats_client/core/file_utils.py +605 -0
  81. pywats_client/core/instance_manager.py +235 -0
  82. pywats_client/core/logging.py +313 -0
  83. pywats_client/core/security.py +424 -0
  84. pywats_client/core/service_manager.py +685 -0
  85. pywats_client/diagnostics.py +828 -0
  86. pywats_client/examples/service_application.py +214 -0
  87. pywats_client/exceptions.py +692 -0
  88. pywats_client/io.py +313 -0
  89. pywats_client/queue/__init__.py +101 -0
  90. pywats_client/queue/async_adapter.py +317 -0
  91. pywats_client/queue/formats.py +57 -0
  92. pywats_client/queue/memory_queue.py +806 -0
  93. pywats_client/queue/persistent_queue.py +490 -0
  94. pywats_client/queue/report_queue.py +139 -0
  95. pywats_client/queue/submit_errors.py +211 -0
  96. pywats_client/service/__init__.py +81 -0
  97. pywats_client/service/async_client_service.py +2322 -0
  98. pywats_client/service/async_converter_pool.py +1491 -0
  99. pywats_client/service/async_ipc_client.py +610 -0
  100. pywats_client/service/async_ipc_server.py +631 -0
  101. pywats_client/service/async_pending_queue.py +813 -0
  102. pywats_client/service/client_registration.py +539 -0
  103. pywats_client/service/client_service.py +223 -0
  104. pywats_client/service/client_settings_sync.py +324 -0
  105. pywats_client/service/data_simulator.py +381 -0
  106. pywats_client/service/health_server.py +463 -0
  107. pywats_client/service/ipc_protocol.py +363 -0
  108. pywats_client/service/monitor_engine.py +478 -0
  109. pywats_client/service/process_cache.py +149 -0
  110. pywats_client/service/serial_number_handler.py +452 -0
  111. pywats_client/service/service_runner.py +140 -0
  112. pywats_client/service/station_monitor.py +1098 -0
  113. pywats_client/service/windows_service.py +72 -0
  114. pywats_client/service/yield_monitor.py +625 -0
  115. pywats_client-0.7.0b1.dist-info/METADATA +78 -0
  116. pywats_client-0.7.0b1.dist-info/RECORD +178 -0
  117. pywats_client-0.7.0b1.dist-info/WHEEL +5 -0
  118. pywats_client-0.7.0b1.dist-info/entry_points.txt +8 -0
  119. pywats_client-0.7.0b1.dist-info/licenses/LICENSE +21 -0
  120. pywats_client-0.7.0b1.dist-info/top_level.txt +2 -0
  121. pywats_ui/__init__.py +3 -0
  122. pywats_ui/apps/__init__.py +1 -0
  123. pywats_ui/apps/configurator/__init__.py +4 -0
  124. pywats_ui/apps/configurator/main.py +58 -0
  125. pywats_ui/apps/configurator/main_window.py +372 -0
  126. pywats_ui/apps/configurator/pages/__init__.py +25 -0
  127. pywats_ui/apps/configurator/pages/about.py +157 -0
  128. pywats_ui/apps/configurator/pages/connection.py +701 -0
  129. pywats_ui/apps/configurator/pages/converters.py +1591 -0
  130. pywats_ui/apps/configurator/pages/dashboard.py +492 -0
  131. pywats_ui/apps/configurator/pages/log.py +217 -0
  132. pywats_ui/apps/configurator/pages/setup.py +470 -0
  133. pywats_ui/apps/configurator/pages/sn_handler.py +207 -0
  134. pywats_ui/apps/configurator_web/WebAssets/app.css +206 -0
  135. pywats_ui/apps/configurator_web/WebAssets/app.js +1048 -0
  136. pywats_ui/apps/configurator_web/WebAssets/common.js +168 -0
  137. pywats_ui/apps/configurator_web/WebAssets/favicon.ico +0 -0
  138. pywats_ui/apps/configurator_web/WebAssets/index.html +507 -0
  139. pywats_ui/apps/configurator_web/WebAssets/tokens.css +111 -0
  140. pywats_ui/apps/configurator_web/WebAssets/wats.css +1534 -0
  141. pywats_ui/apps/configurator_web/__init__.py +3 -0
  142. pywats_ui/apps/configurator_web/__main__.py +27 -0
  143. pywats_ui/apps/configurator_web/bridge.py +935 -0
  144. pywats_ui/apps/configurator_web/shell.py +97 -0
  145. pywats_ui/apps/production_manager/__init__.py +14 -0
  146. pywats_ui/apps/production_manager/experimental_mi.py +60 -0
  147. pywats_ui/apps/production_manager/main.py +32 -0
  148. pywats_ui/apps/production_manager/main_window.py +638 -0
  149. pywats_ui/apps/production_manager/models.py +618 -0
  150. pywats_ui/apps/production_manager/server_bridge.py +351 -0
  151. pywats_ui/apps/production_manager/widgets/__init__.py +1 -0
  152. pywats_ui/apps/production_manager/widgets/definition_tree.py +220 -0
  153. pywats_ui/apps/production_manager/widgets/designer_tab.py +290 -0
  154. pywats_ui/apps/production_manager/widgets/flow_canvas.py +385 -0
  155. pywats_ui/apps/production_manager/widgets/instructions_tab.py +165 -0
  156. pywats_ui/apps/production_manager/widgets/outline_tree.py +134 -0
  157. pywats_ui/apps/production_manager/widgets/overview_tab.py +302 -0
  158. pywats_ui/apps/production_manager/widgets/property_editor.py +313 -0
  159. pywats_ui/apps/production_manager/widgets/relations_tab.py +388 -0
  160. pywats_ui/apps/production_manager/widgets/test_tab.py +1245 -0
  161. pywats_ui/apps/production_manager/widgets/toolbox.py +167 -0
  162. pywats_ui/apps/resources/favicon.ico +0 -0
  163. pywats_ui/framework/__init__.py +68 -0
  164. pywats_ui/framework/base_page.py +346 -0
  165. pywats_ui/framework/error_mixin.py +232 -0
  166. pywats_ui/framework/reliability/__init__.py +17 -0
  167. pywats_ui/framework/reliability/queue_manager.py +421 -0
  168. pywats_ui/framework/system_tray.py +133 -0
  169. pywats_ui/framework/themes/__init__.py +14 -0
  170. pywats_ui/framework/themes/base.qss +432 -0
  171. pywats_ui/framework/themes/dark.py +404 -0
  172. pywats_ui/framework/themes/dark_tokens.py +120 -0
  173. pywats_ui/framework/themes/light_tokens.py +120 -0
  174. pywats_ui/framework/themes/theme_manager.py +193 -0
  175. pywats_ui/framework/themes/tokens.py +128 -0
  176. pywats_ui/widgets/__init__.py +12 -0
  177. pywats_ui/widgets/new_converter_dialog.py +548 -0
  178. 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
+ ]