pywats-client 0.7.0b1__tar.gz

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 (185) hide show
  1. pywats_client-0.7.0b1/CHANGELOG.md +161 -0
  2. pywats_client-0.7.0b1/LICENSE +21 -0
  3. pywats_client-0.7.0b1/MANIFEST.in +12 -0
  4. pywats_client-0.7.0b1/PKG-INFO +78 -0
  5. pywats_client-0.7.0b1/README.md +20 -0
  6. pywats_client-0.7.0b1/pyproject.toml +76 -0
  7. pywats_client-0.7.0b1/setup.cfg +4 -0
  8. pywats_client-0.7.0b1/src/pywats_client/__init__.py +153 -0
  9. pywats_client-0.7.0b1/src/pywats_client/__main__.py +782 -0
  10. pywats_client-0.7.0b1/src/pywats_client/_version.py +7 -0
  11. pywats_client-0.7.0b1/src/pywats_client/apps/__init__.py +1 -0
  12. pywats_client-0.7.0b1/src/pywats_client/apps/_credentials.py +54 -0
  13. pywats_client-0.7.0b1/src/pywats_client/apps/_debug_channel.py +384 -0
  14. pywats_client-0.7.0b1/src/pywats_client/apps/_dev.py +26 -0
  15. pywats_client-0.7.0b1/src/pywats_client/apps/_gui_launcher.py +205 -0
  16. pywats_client-0.7.0b1/src/pywats_client/apps/debug/WebAssets/common.js +168 -0
  17. pywats_client-0.7.0b1/src/pywats_client/apps/debug/WebAssets/debug.css +300 -0
  18. pywats_client-0.7.0b1/src/pywats_client/apps/debug/WebAssets/debug.js +407 -0
  19. pywats_client-0.7.0b1/src/pywats_client/apps/debug/WebAssets/index.html +189 -0
  20. pywats_client-0.7.0b1/src/pywats_client/apps/debug/__init__.py +13 -0
  21. pywats_client-0.7.0b1/src/pywats_client/apps/debug/__main__.py +21 -0
  22. pywats_client-0.7.0b1/src/pywats_client/apps/debug/ate_simulator.py +333 -0
  23. pywats_client-0.7.0b1/src/pywats_client/apps/debug/bridge.py +309 -0
  24. pywats_client-0.7.0b1/src/pywats_client/apps/debug/format_generators.py +421 -0
  25. pywats_client-0.7.0b1/src/pywats_client/apps/debug/shell.py +114 -0
  26. pywats_client-0.7.0b1/src/pywats_client/apps/monitor/WebAssets/common.js +168 -0
  27. pywats_client-0.7.0b1/src/pywats_client/apps/monitor/WebAssets/favicon.ico +0 -0
  28. pywats_client-0.7.0b1/src/pywats_client/apps/monitor/WebAssets/index.html +114 -0
  29. pywats_client-0.7.0b1/src/pywats_client/apps/monitor/WebAssets/monitor.css +194 -0
  30. pywats_client-0.7.0b1/src/pywats_client/apps/monitor/WebAssets/monitor.js +333 -0
  31. pywats_client-0.7.0b1/src/pywats_client/apps/monitor/__init__.py +9 -0
  32. pywats_client-0.7.0b1/src/pywats_client/apps/monitor/__main__.py +21 -0
  33. pywats_client-0.7.0b1/src/pywats_client/apps/monitor/bridge.py +121 -0
  34. pywats_client-0.7.0b1/src/pywats_client/apps/monitor/shell.py +101 -0
  35. pywats_client-0.7.0b1/src/pywats_client/apps/yieldmon/WebAssets/common.js +168 -0
  36. pywats_client-0.7.0b1/src/pywats_client/apps/yieldmon/WebAssets/dashboard.css +512 -0
  37. pywats_client-0.7.0b1/src/pywats_client/apps/yieldmon/WebAssets/dashboard.js +945 -0
  38. pywats_client-0.7.0b1/src/pywats_client/apps/yieldmon/WebAssets/favicon.ico +0 -0
  39. pywats_client-0.7.0b1/src/pywats_client/apps/yieldmon/WebAssets/index.html +248 -0
  40. pywats_client-0.7.0b1/src/pywats_client/apps/yieldmon/__init__.py +13 -0
  41. pywats_client-0.7.0b1/src/pywats_client/apps/yieldmon/__main__.py +21 -0
  42. pywats_client-0.7.0b1/src/pywats_client/apps/yieldmon/bridge.py +558 -0
  43. pywats_client-0.7.0b1/src/pywats_client/apps/yieldmon/shell.py +124 -0
  44. pywats_client-0.7.0b1/src/pywats_client/control/HEADLESS_GUIDE.md +166 -0
  45. pywats_client-0.7.0b1/src/pywats_client/control/__init__.py +23 -0
  46. pywats_client-0.7.0b1/src/pywats_client/control/cli.py +818 -0
  47. pywats_client-0.7.0b1/src/pywats_client/control/exit_codes.py +90 -0
  48. pywats_client-0.7.0b1/src/pywats_client/control/unix_service.py +752 -0
  49. pywats_client-0.7.0b1/src/pywats_client/control/windows_native_service.py +763 -0
  50. pywats_client-0.7.0b1/src/pywats_client/control/windows_service.py +290 -0
  51. pywats_client-0.7.0b1/src/pywats_client/converters/__init__.py +154 -0
  52. pywats_client-0.7.0b1/src/pywats_client/converters/base.py +726 -0
  53. pywats_client-0.7.0b1/src/pywats_client/converters/context.py +378 -0
  54. pywats_client-0.7.0b1/src/pywats_client/converters/conversion_log.py +378 -0
  55. pywats_client-0.7.0b1/src/pywats_client/converters/example_csv.py +289 -0
  56. pywats_client-0.7.0b1/src/pywats_client/converters/file_converter.py +519 -0
  57. pywats_client-0.7.0b1/src/pywats_client/converters/folder_converter.py +524 -0
  58. pywats_client-0.7.0b1/src/pywats_client/converters/models.py +643 -0
  59. pywats_client-0.7.0b1/src/pywats_client/converters/runner.py +858 -0
  60. pywats_client-0.7.0b1/src/pywats_client/converters/sandbox.py +1117 -0
  61. pywats_client-0.7.0b1/src/pywats_client/converters/sandbox_runner.py +515 -0
  62. pywats_client-0.7.0b1/src/pywats_client/converters/scheduled_converter.py +531 -0
  63. pywats_client-0.7.0b1/src/pywats_client/converters/standard/__init__.py +58 -0
  64. pywats_client-0.7.0b1/src/pywats_client/converters/standard/_common.py +371 -0
  65. pywats_client-0.7.0b1/src/pywats_client/converters/standard/ai_converter.py +389 -0
  66. pywats_client-0.7.0b1/src/pywats_client/converters/standard/atml_converter.py +745 -0
  67. pywats_client-0.7.0b1/src/pywats_client/converters/standard/keysight_testexec_sl_converter.py +857 -0
  68. pywats_client-0.7.0b1/src/pywats_client/converters/standard/klippel_converter.py +560 -0
  69. pywats_client-0.7.0b1/src/pywats_client/converters/standard/seica_xml_converter.py +424 -0
  70. pywats_client-0.7.0b1/src/pywats_client/converters/standard/spea_converter.py +724 -0
  71. pywats_client-0.7.0b1/src/pywats_client/converters/standard/teradyne_ict_converter.py +738 -0
  72. pywats_client-0.7.0b1/src/pywats_client/converters/standard/teradyne_spectrum_ict_converter.py +788 -0
  73. pywats_client-0.7.0b1/src/pywats_client/converters/standard/wats_standard_json_converter.py +448 -0
  74. pywats_client-0.7.0b1/src/pywats_client/converters/standard/wats_standard_text_converter.py +807 -0
  75. pywats_client-0.7.0b1/src/pywats_client/converters/standard/wats_standard_xml_converter.py +795 -0
  76. pywats_client-0.7.0b1/src/pywats_client/converters/standard/xjtag_converter.py +537 -0
  77. pywats_client-0.7.0b1/src/pywats_client/core/__init__.py +75 -0
  78. pywats_client-0.7.0b1/src/pywats_client/core/async_runner.py +546 -0
  79. pywats_client-0.7.0b1/src/pywats_client/core/auth.py +96 -0
  80. pywats_client-0.7.0b1/src/pywats_client/core/config.py +1497 -0
  81. pywats_client-0.7.0b1/src/pywats_client/core/config_manager.py +189 -0
  82. pywats_client-0.7.0b1/src/pywats_client/core/connection_config.py +173 -0
  83. pywats_client-0.7.0b1/src/pywats_client/core/constants.py +76 -0
  84. pywats_client-0.7.0b1/src/pywats_client/core/credential_discovery.py +60 -0
  85. pywats_client-0.7.0b1/src/pywats_client/core/env.py +99 -0
  86. pywats_client-0.7.0b1/src/pywats_client/core/event_bus.py +303 -0
  87. pywats_client-0.7.0b1/src/pywats_client/core/file_utils.py +605 -0
  88. pywats_client-0.7.0b1/src/pywats_client/core/instance_manager.py +235 -0
  89. pywats_client-0.7.0b1/src/pywats_client/core/logging.py +313 -0
  90. pywats_client-0.7.0b1/src/pywats_client/core/security.py +424 -0
  91. pywats_client-0.7.0b1/src/pywats_client/core/service_manager.py +685 -0
  92. pywats_client-0.7.0b1/src/pywats_client/diagnostics.py +828 -0
  93. pywats_client-0.7.0b1/src/pywats_client/examples/service_application.py +214 -0
  94. pywats_client-0.7.0b1/src/pywats_client/exceptions.py +692 -0
  95. pywats_client-0.7.0b1/src/pywats_client/io.py +313 -0
  96. pywats_client-0.7.0b1/src/pywats_client/queue/__init__.py +101 -0
  97. pywats_client-0.7.0b1/src/pywats_client/queue/async_adapter.py +317 -0
  98. pywats_client-0.7.0b1/src/pywats_client/queue/formats.py +57 -0
  99. pywats_client-0.7.0b1/src/pywats_client/queue/memory_queue.py +806 -0
  100. pywats_client-0.7.0b1/src/pywats_client/queue/persistent_queue.py +490 -0
  101. pywats_client-0.7.0b1/src/pywats_client/queue/report_queue.py +139 -0
  102. pywats_client-0.7.0b1/src/pywats_client/queue/submit_errors.py +211 -0
  103. pywats_client-0.7.0b1/src/pywats_client/service/__init__.py +81 -0
  104. pywats_client-0.7.0b1/src/pywats_client/service/async_client_service.py +2322 -0
  105. pywats_client-0.7.0b1/src/pywats_client/service/async_converter_pool.py +1491 -0
  106. pywats_client-0.7.0b1/src/pywats_client/service/async_ipc_client.py +610 -0
  107. pywats_client-0.7.0b1/src/pywats_client/service/async_ipc_server.py +631 -0
  108. pywats_client-0.7.0b1/src/pywats_client/service/async_pending_queue.py +813 -0
  109. pywats_client-0.7.0b1/src/pywats_client/service/client_registration.py +539 -0
  110. pywats_client-0.7.0b1/src/pywats_client/service/client_service.py +223 -0
  111. pywats_client-0.7.0b1/src/pywats_client/service/client_settings_sync.py +324 -0
  112. pywats_client-0.7.0b1/src/pywats_client/service/data_simulator.py +381 -0
  113. pywats_client-0.7.0b1/src/pywats_client/service/health_server.py +463 -0
  114. pywats_client-0.7.0b1/src/pywats_client/service/ipc_protocol.py +363 -0
  115. pywats_client-0.7.0b1/src/pywats_client/service/monitor_engine.py +478 -0
  116. pywats_client-0.7.0b1/src/pywats_client/service/process_cache.py +149 -0
  117. pywats_client-0.7.0b1/src/pywats_client/service/serial_number_handler.py +452 -0
  118. pywats_client-0.7.0b1/src/pywats_client/service/service_runner.py +140 -0
  119. pywats_client-0.7.0b1/src/pywats_client/service/station_monitor.py +1098 -0
  120. pywats_client-0.7.0b1/src/pywats_client/service/windows_service.py +72 -0
  121. pywats_client-0.7.0b1/src/pywats_client/service/yield_monitor.py +625 -0
  122. pywats_client-0.7.0b1/src/pywats_client.egg-info/PKG-INFO +78 -0
  123. pywats_client-0.7.0b1/src/pywats_client.egg-info/SOURCES.txt +183 -0
  124. pywats_client-0.7.0b1/src/pywats_client.egg-info/dependency_links.txt +1 -0
  125. pywats_client-0.7.0b1/src/pywats_client.egg-info/entry_points.txt +8 -0
  126. pywats_client-0.7.0b1/src/pywats_client.egg-info/requires.txt +14 -0
  127. pywats_client-0.7.0b1/src/pywats_client.egg-info/top_level.txt +2 -0
  128. pywats_client-0.7.0b1/src/pywats_ui/__init__.py +3 -0
  129. pywats_client-0.7.0b1/src/pywats_ui/apps/__init__.py +1 -0
  130. pywats_client-0.7.0b1/src/pywats_ui/apps/configurator/__init__.py +4 -0
  131. pywats_client-0.7.0b1/src/pywats_ui/apps/configurator/main.py +58 -0
  132. pywats_client-0.7.0b1/src/pywats_ui/apps/configurator/main_window.py +372 -0
  133. pywats_client-0.7.0b1/src/pywats_ui/apps/configurator/pages/__init__.py +25 -0
  134. pywats_client-0.7.0b1/src/pywats_ui/apps/configurator/pages/about.py +157 -0
  135. pywats_client-0.7.0b1/src/pywats_ui/apps/configurator/pages/connection.py +701 -0
  136. pywats_client-0.7.0b1/src/pywats_ui/apps/configurator/pages/converters.py +1591 -0
  137. pywats_client-0.7.0b1/src/pywats_ui/apps/configurator/pages/dashboard.py +492 -0
  138. pywats_client-0.7.0b1/src/pywats_ui/apps/configurator/pages/log.py +217 -0
  139. pywats_client-0.7.0b1/src/pywats_ui/apps/configurator/pages/setup.py +470 -0
  140. pywats_client-0.7.0b1/src/pywats_ui/apps/configurator/pages/sn_handler.py +207 -0
  141. pywats_client-0.7.0b1/src/pywats_ui/apps/configurator_web/WebAssets/app.css +206 -0
  142. pywats_client-0.7.0b1/src/pywats_ui/apps/configurator_web/WebAssets/app.js +1048 -0
  143. pywats_client-0.7.0b1/src/pywats_ui/apps/configurator_web/WebAssets/common.js +168 -0
  144. pywats_client-0.7.0b1/src/pywats_ui/apps/configurator_web/WebAssets/favicon.ico +0 -0
  145. pywats_client-0.7.0b1/src/pywats_ui/apps/configurator_web/WebAssets/index.html +507 -0
  146. pywats_client-0.7.0b1/src/pywats_ui/apps/configurator_web/WebAssets/tokens.css +111 -0
  147. pywats_client-0.7.0b1/src/pywats_ui/apps/configurator_web/WebAssets/wats.css +1534 -0
  148. pywats_client-0.7.0b1/src/pywats_ui/apps/configurator_web/__init__.py +3 -0
  149. pywats_client-0.7.0b1/src/pywats_ui/apps/configurator_web/__main__.py +27 -0
  150. pywats_client-0.7.0b1/src/pywats_ui/apps/configurator_web/bridge.py +935 -0
  151. pywats_client-0.7.0b1/src/pywats_ui/apps/configurator_web/shell.py +97 -0
  152. pywats_client-0.7.0b1/src/pywats_ui/apps/production_manager/__init__.py +14 -0
  153. pywats_client-0.7.0b1/src/pywats_ui/apps/production_manager/experimental_mi.py +60 -0
  154. pywats_client-0.7.0b1/src/pywats_ui/apps/production_manager/main.py +32 -0
  155. pywats_client-0.7.0b1/src/pywats_ui/apps/production_manager/main_window.py +638 -0
  156. pywats_client-0.7.0b1/src/pywats_ui/apps/production_manager/models.py +618 -0
  157. pywats_client-0.7.0b1/src/pywats_ui/apps/production_manager/server_bridge.py +351 -0
  158. pywats_client-0.7.0b1/src/pywats_ui/apps/production_manager/widgets/__init__.py +1 -0
  159. pywats_client-0.7.0b1/src/pywats_ui/apps/production_manager/widgets/definition_tree.py +220 -0
  160. pywats_client-0.7.0b1/src/pywats_ui/apps/production_manager/widgets/designer_tab.py +290 -0
  161. pywats_client-0.7.0b1/src/pywats_ui/apps/production_manager/widgets/flow_canvas.py +385 -0
  162. pywats_client-0.7.0b1/src/pywats_ui/apps/production_manager/widgets/instructions_tab.py +165 -0
  163. pywats_client-0.7.0b1/src/pywats_ui/apps/production_manager/widgets/outline_tree.py +134 -0
  164. pywats_client-0.7.0b1/src/pywats_ui/apps/production_manager/widgets/overview_tab.py +302 -0
  165. pywats_client-0.7.0b1/src/pywats_ui/apps/production_manager/widgets/property_editor.py +313 -0
  166. pywats_client-0.7.0b1/src/pywats_ui/apps/production_manager/widgets/relations_tab.py +388 -0
  167. pywats_client-0.7.0b1/src/pywats_ui/apps/production_manager/widgets/test_tab.py +1245 -0
  168. pywats_client-0.7.0b1/src/pywats_ui/apps/production_manager/widgets/toolbox.py +167 -0
  169. pywats_client-0.7.0b1/src/pywats_ui/apps/resources/favicon.ico +0 -0
  170. pywats_client-0.7.0b1/src/pywats_ui/framework/__init__.py +68 -0
  171. pywats_client-0.7.0b1/src/pywats_ui/framework/base_page.py +346 -0
  172. pywats_client-0.7.0b1/src/pywats_ui/framework/error_mixin.py +232 -0
  173. pywats_client-0.7.0b1/src/pywats_ui/framework/reliability/__init__.py +17 -0
  174. pywats_client-0.7.0b1/src/pywats_ui/framework/reliability/queue_manager.py +421 -0
  175. pywats_client-0.7.0b1/src/pywats_ui/framework/system_tray.py +133 -0
  176. pywats_client-0.7.0b1/src/pywats_ui/framework/themes/__init__.py +14 -0
  177. pywats_client-0.7.0b1/src/pywats_ui/framework/themes/base.qss +432 -0
  178. pywats_client-0.7.0b1/src/pywats_ui/framework/themes/dark.py +404 -0
  179. pywats_client-0.7.0b1/src/pywats_ui/framework/themes/dark_tokens.py +120 -0
  180. pywats_client-0.7.0b1/src/pywats_ui/framework/themes/light_tokens.py +120 -0
  181. pywats_client-0.7.0b1/src/pywats_ui/framework/themes/theme_manager.py +193 -0
  182. pywats_client-0.7.0b1/src/pywats_ui/framework/themes/tokens.py +128 -0
  183. pywats_client-0.7.0b1/src/pywats_ui/widgets/__init__.py +12 -0
  184. pywats_client-0.7.0b1/src/pywats_ui/widgets/new_converter_dialog.py +548 -0
  185. pywats_client-0.7.0b1/src/pywats_ui/widgets/script_editor.py +1105 -0
@@ -0,0 +1,161 @@
1
+ # pywats-client Changelog
2
+
3
+ All notable changes to the `pywats-client` package (WATS Client service, converters and UI) are documented in this file.
4
+ Changes to the `pywats-api` library are in its own changelog (`CHANGELOG.md` in the `pywats-api` package).
5
+
6
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
7
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
8
+
9
+ `pywats-client` is versioned independently of `pywats-api` and has not been released yet. Before it became its own
10
+ package the client shipped inside `pywats-api`; that history (up to 0.6.0rc1) is in the `pywats-api` changelog.
11
+
12
+ ---
13
+
14
+ ## [Unreleased]
15
+
16
+ ### Added
17
+ - `pywats_client.core.logging.configure_process_logging()`: the process-wide logging setup (root logger) for the service and the apps; `pywats.configure_logging()` now configures only the `pywats` logger.
18
+ - `AsyncClientService.sn_handler`: the serial number handler of the running service (the `AsyncWATS.get_serial_number()` / `sn_handler` members that only worked inside the client are removed from pywats-api).
19
+
20
+ ### Changed
21
+ - **Breaking:** requires `pywats-api>=1.0.0rc2,<2`; the client follows the 1.0 API cleanup (`submit_report()`, `take_serial_numbers(serial_number_type, quantity=)`, `reserve_serial_numbers()`, `get_packages_by_xpath()`, keyword-only parameters, `ValidationError` for argument errors).
22
+ - **Breaking:** the offline queue classes moved from `pywats.queue` to `pywats_client.queue` (`MemoryQueue`, `BaseQueue`, `QueueItem`, `QueueHooks`, `QueueItemStatus`, `QueueStats`, `AsyncQueueAdapter`, `WSJFConverter`); `convert_to_wsjf()` and `detect_format()` are removed, use `WSJFConverter.to_wsjf()`. See "For pywats-client users" in the `pywats-api` `MIGRATION.md`.
23
+ - Production Manager (preview): Manual Inspection uses only the server-backed pywats-api calls; the relation builder lives in the app (`production_manager/experimental_mi.py`, experimental). Copying a definition and changing its status are not available (no server endpoint; use the WATS web UI). Loading a definition's XAML no longer fails.
24
+ - Config files: the API timeout is stored as `timeout` (`timeout_seconds` in files written before 1.0 is read as `timeout`); the keys `max_retries`, `retry_delay_seconds`, `log_requests`, `log_responses` and the per-domain `domains` block are ignored on load and dropped on the next save (pywats-api no longer has those settings).
25
+ - Packaging: the author is The WATS Company AS; the project URLs, the systemd unit `Documentation=` and the package README no longer point at the retired GitHub repository; Debian and RPM packages require Python 3.11; the RPM spec is tracked in the repository.
26
+ - macOS: the launchd service label is `com.wats.pywats.service` (was `com.virinco.pywats.service`) and the app bundle id is `com.wats.pywats-client`. `status` and `uninstall-service` still find a service installed under the old label; reinstall it to move to the new one.
27
+ - Release process: nothing is published from CI (the build workflows only build and check; PyPI uploads are manual); the installer workflows are manual-only and push or upload nothing.
28
+ - Python 3.15 is supported (classifier, CI).
29
+
30
+ ### Removed (Breaking)
31
+ - Python 3.10 support (end of life October 2026). `pywats-client` requires Python 3.11 or later. On Ubuntu 22.04, which ships 3.10, install `python3.11`.
32
+ - `pywats_client.core.encryption` and `connection_config.migrate_legacy_config()`: nothing used them, and they needed the undeclared `cryptography` package. Secrets files are protected by file permissions (`pywats_client.core.security`), not encryption.
33
+
34
+ ### Fixed
35
+ - Every text file and subprocess read or write names its encoding (UTF-8 for files the client writes, the console code page for Windows tools), so behaviour is the same on every Python version; Python 3.15 makes UTF-8 the default on Windows.
36
+ - An unsupported IPC `stop` / `restart` request is answered with a clear error reply instead of raising `NotImplementedError`.
37
+
38
+ ## [0.7.0b1] - Unreleased
39
+
40
+ > First release of the WATS Client as its own distribution: `pip install "pywats-client[html]"` (headless: `pip install pywats-client`; Qt preview: `pip install "pywats-client[html,qt]"`). Requires `pywats-api` and WATS Server 2026.3.x.
41
+
42
+ ### Added
43
+ - `pywats-client gui --ui html|qt` (HTML configurator is the default).
44
+ - Converter service: `ConverterRunner`/`load_runner` (`pywats_client.converters.runner`) load converters from `ConverterConfig.module_path` (dotted path, shipped class name, file in the converters folder, `.py[:Class]`) and own watch/Done/Error/Pending folders, patterns, post action and context; `pool.load_errors` lists converters that could not be loaded (CNV-001, 002).
45
+ - `post_action = "archive"` / `"zip"` appends the source to `<Done>/<yyyyMM>.zip`; `"auto"` lets the converter decide; unknown values are refused at load (CNV-005).
46
+ - Durable offline report queue: `pywats_client.queue.enqueue_report()` writes `<id>.queued` atomically; `classify_submit_error()` decides retry vs terminal for every submit failure (CNV-010, CSV-003).
47
+ - `AsyncPendingQueue`: `resume()`, whole-queue back-off with `Retry-After`, `.invalid` terminal state, persisted retry attempts, optional `completed_retention`, `backoff_remaining` (CNV-051, 052).
48
+ - `AsyncConverterPool` options `reports_dir`, `state_dir`, `stability_seconds`, `rescan_interval`, `submit_timeout`, `max_offline_queue`.
49
+ - Sandbox: Windows Job Object limits (memory, CPU, process count, kill tree), request ids, a process pool per converter (CNV-025, 026).
50
+ - Klippel converter adds the frequency-response chart (`add_chart_step`); all 12 shipped converters are exported from `pywats_client.converters` (CNV-040, 042).
51
+ - `pywats-client register` refuses to take over another client (checks `GetClients` for the same name/id, e.g. a .NET WATS Client; `--adopt-existing` to override), stores id/name/location/purpose in the instance config, and defaults to `<HOST>[-<instance>]` / `<id>-PY` (CSV-015/016, CPA-017/018).
52
+ - Exclusive `service.lock` per instance (a second service exits with code 30), `pywats.log` logging in the service, environment variables `PYWATS_DATA_DIR`, `PYWATS_CONFIG_DIR`, `PYWATS_LOG_DIR`, `PYWATS_LOG_LEVEL`, `PYWATS_STATION_NAME`, `PYWATS_INSTANCE_ID`, `PYWATS_HEADLESS`, `PYWATS_HEALTH_PORT/HOST`, `PYWATS_IPC_AUTH` (CSV-009/019/027).
53
+ - `service_runner.ThreadedServiceRunner` for service hosts that run the client on a worker thread; a degraded start retries the API with back-off (CSV-004/018).
54
+ - Every `pywats-client` command accepts `--instance-id`; `install-service --register-token`; `config show/get` mask secrets and `config set` validates (CSV-008/028/039).
55
+ - Client apps: `PYWATS_DEV=1` developer switch. The Station Monitor "Simulator" tab, the DebugSuite window and every "Debug" launcher button are hidden/refused without it (HTM-004).
56
+ - Station Monitor simulator and DebugSuite: "Submit to LIVE server" switch (off by default, typed server-address confirmation); `SimulatorConfig.allow_live_submit`, `DataSimulator(protected_dirs=...)`, 120 UUT/min cap (HTM-004).
57
+ - Configurator: `create_instance(name)` bridge method; the Authentication card shows whether an API token is stored (`has_api_token`) and the About view shows the credential mode (HTM-010, 009).
58
+ - Station Monitor: "needs setup" banner, "cached numbers" banner, per-operation permission banner; windows Today / 7 / 30 / 365 days with the real range shown (HTM-016..019).
59
+ - `pywats_client.apps._credentials.resolve_credentials`: one credential rule (registration when `registration_enabled`, else API token) for the Configurator, Station Monitor and DebugSuite (HTM-009).
60
+ - All four HTML apps: inline SVG icons and system fonts (work offline), `Content-Security-Policy`, escaped HTML rendering, visibility-aware polling (HTM-014, 015, 024).
61
+ - New `qt` extra (`PySide6>=6.4`, `qasync>=0.27`) for the optional Qt UI add-on: `pip install "pywats-client[html,qt]"`, then `pywats-client gui --ui qt` or `pywats-configurator-qt`. The Qt Configurator is a preview; the HTML configurator stays the primary UI (QTU-015).
62
+ - Headless Qt smoke/regression suite `tests/ui/test_qt_smoke.py` (offscreen, offline, `MockTransport` with 2026.3-shaped responses); `tests/ui/conftest.py` isolates home/ProgramData and skips the directory cleanly when PySide6 is not installed (QTU-029, QTU-036).
63
+ - Production Manager is labelled "experimental, read-only" in its title bar, header and About box (QTU-020).
64
+ - Station name, location and purpose from the client setup are applied to converted reports where the converter left them blank; shipped converters take location/purpose from the setup before their own default; `include_station_in_reports=false` switches this off (CPA-024).
65
+ - The serial number handler releases reservations on the server (reserve request with `batchSize=0`, retried from an `.uncommitted` file when offline) on disconnect and when the SN settings change; new `SerialNumberHandler.reinitialize()` (CPA-023).
66
+ - The process list is saved to `processes.json` after every fetch (`process_sync_enabled`, every `sync_interval_seconds`), loaded when the server is unreachable, and the converter pool warns about reports whose process is not in it (CPA-020).
67
+ - Config key `completed_retention_days` keeps accepted offline reports as `.completed` for that many days (default 0: deleted at once) (CSV-023).
68
+ - Location and purpose are server-owned as in the .NET client: the hourly update reads the client's own record (`GET api/internal/Client/GetClients`), adopts values an administrator set in System Manager, and pushes a value only when the user changed it locally (or once when the server value is blank); System Manager's Package Manager settings (check interval, prefetch on/off, delete revoked packages) are applied to the `sw_*` config keys with the timestamp guard (CPA-019).
69
+ - `send_station_name` (default on) and `operator_name` config keys send the `stationName` / `operatorName` request headers on every API call like the .NET client; the API client also uses the configured station as its default station (CPA-034).
70
+ - The hourly update uploads the last 1 MB of the client log (`POST api/internal/Blob/clientlog/{id}`) so System Manager "Download Logfile" works; switch off with `upload_client_log=false` (CPA-028).
71
+ - `get_service_status()` reports `degraded_reasons`, `failed_tasks` and `task_restarts`; `/health` is unhealthy while a background task is given up (CPA-033).
72
+
73
+ ### Changed
74
+ - **Breaking:** the converter pool submits every report of a 1-to-N result (`ConverterResult.reports`); ATML, Seica, XJTAG, WSXF and WSTF now return all reports; Seica boards of one panel that share a barcode get serial `<barcode>-<board index>` (CNV-007, 033, 034, 037).
75
+ - **Breaking:** a failed online submit no longer moves the source file to the error folder: connection errors, timeouts, 5xx, 429 and 401/403 queue the report and post-process the file; only HTTP 4xx rejections go to the error folder (CNV-010).
76
+ - **Breaking:** converters that cannot identify a unit fail instead of inventing `UNKNOWN` / clock-based serial or part numbers (Klippel, SPEA, XJTAG, Spectrum, Teradyne); foreign files are rejected by `validate()` and the reject threshold (CNV-038).
77
+ - **Breaking:** `folder` and `scheduled` converter types are refused at load time with a clear message (no runner exists); `ConverterConfig.arguments` now reach the converter and `validate()` runs before `convert()` (CNV-002, 003).
78
+ - Post-processing happens only after every report was accepted or queued; a failed move/delete is a warning and never re-submits; failures always end in `<watch>/Error` with `<file>.error.txt`; suspended conversions retry and then move to Pending (CNV-004, 006, 011).
79
+ - Files are converted only after size/mtime are stable; folders are rescanned every 60 s; `Done`/`Error`/`Pending` are never rescanned (CNV-008, 009, 019).
80
+ - `AsyncPendingQueue` deletes accepted reports, keeps `attempts` across retries (back-off `5 min * 2^(n-1)`, 5 attempts), honours `pause()`, wakes on `stop()` and calls `submit_raw` (CNV-050..053).
81
+ - Sandbox guard rails are documented as best effort, not a security boundary; `ConverterValidator` allows `open` and lints dynamic attribute access (CNV-027).
82
+ - WSJF/WSTF/WSXF/ATML accept the .NET argument names; WSTF reads cp1252 by default with BOM sniffing (CNV-035, CPA-012).
83
+ - **Breaking:** IPC authentication is on by default; `get_config` over IPC returns `***` for `api_token`/`proxy_password`; IPC `stop` only requests the shutdown and `restart` answers "not supported" (CSV-011/012).
84
+ - **Breaking:** the health endpoint is opt-in (`PYWATS_HEALTH_PORT`) and binds to 127.0.0.1; `/health` is 503 for a degraded service (CSV-024, CPA-030).
85
+ - **Breaking:** the CLI is one parser: `service --instance-id/--config`, `--headless` alias; `--daemon`, `--api*`, `start`, `stop`, `tray` and `install-service --use-sc/--watch-folder` are removed; the Docker image runs `service` (CSV-007/010/030/039).
86
+ - The CLI and `diagnose` use the canonical instance config; `~/.pywats_client/config.json` is copied to it on first use (CSV-008).
87
+ - Stop is graceful over IPC (`stop_service` waits for the exit) and sends a final Offline update instead of `Auth/Disconnect`; `PUT api/Client/Update` carries converters with counters/parameters and the internal XML POST is gone (CSV-013/014/020).
88
+ - Secret files (passcode, config with token, IPC secret) are owner/administrator-only (chmod 0600 / icacls); still plain text, not encrypted (CSV-017, CPA-016).
89
+ - Proxy settings are applied to `HTTP(S)_PROXY`/`NO_PROXY` at service start; `converters_enabled` is honoured; cache/metrics keys are persisted (CPA-015/021).
90
+ - Systemd units are `Type=simple` with no watchdog and `TimeoutStopSec=150`; the DEB/RPM seed config is `/etc/pywats/client_config.json`; the NSSM stop timeout is 150 s (CSV-006/008).
91
+ - `pywats_client.__version__` is the distribution version (CSV-033).
92
+ - **Breaking:** the app debug HTTP channel is off by default (`PYWATS_DEBUG_CHANNEL=1` enables it), every endpoint needs `X-Debug-Token`, no CORS header is sent, the JSONL call log is rotated (HTM-013).
93
+ - DebugSuite ATE default mode is `file` into a private sandbox folder; `submit`, `both` and converter watch folders require the live switch; the real reports folder is never a target; the five "coming in Phase N" tabs are removed (HTM-004).
94
+ - Data simulator is a dry run by default and writes to `<instance>/simulator_sandbox/reports`, not to the client reports folder (HTM-004).
95
+ - Station Monitor yields are computed from counts (a busy period weighs more than a quiet one); "Last 100" is removed (it was the last 7 days); the window label states the real range; cached numbers are keyed by station and window and flagged stale; a 403 is never hidden by the cache (HTM-017, 018).
96
+ - Client Monitor reads the service's real status payload and log file; counters show a dash when the service is unreachable; it polls every 5 s (HTM-002, 003, 020).
97
+ - Configurator: registering switches the instance to registration mode and saves the server address; re-registering with the same server does not call it; secrets are never sent to the page; `save_config` accepts a whitelist of settings and validates them; the Proxy card and "Sync interval" are hidden (they were never applied); the log view follows the service log and no longer freezes after 500 records (HTM-005..008, 011, 034, 036).
98
+ - Test connection always runs through the bridge with the instance's credentials and sends them only to their own host; 401/403 means "reachable, check credentials" (HTM-027, 028).
99
+ - The Qt packages (`PySide6`, `qasync`) come only from the `qt` extra; the base and `html` installs do not pull them in (QTU-015).
100
+ - The Qt Configurator now reads and writes `<ProgramData>/pyWATS/instances/<id>/client_config.json` (`get_default_config_path`), the same file as the service and the HTML UI, instead of `~/.pywats/instances/<id>/` (QTU-002).
101
+ - Qt Configurator: connection test and client registration run on the page's `AsyncTaskRunner` thread (no asyncio loop in the GUI thread needed, no UI freeze) and results return through Qt signals (QTU-003, QTU-028); registration asks before replacing existing credentials.
102
+ - Qt Configurator: closing the window saves only pages whose settings were edited, once, merges values changed on disk meanwhile and shows no "Configuration Saved" dialog when nothing changed (QTU-011).
103
+ - Qt Configurator: the converter settings dialog edits a copy of the existing `ConverterConfig` and writes back only changed fields (QTU-005); the page identifies the edited configuration by identity (QTU-030).
104
+ - Qt Configurator: station name/location/purpose are written by a page only when the user changed them, so Connection and Setup no longer overwrite each other or the configured name with the hostname (QTU-006); sync interval lives only on the Setup page (min 5 s) (QTU-031); proxy settings use the HTML control set (mode System/Manual/None, host, port, user, password, bypass) and no longer switch `proxy_mode` to `none` on the first save (QTU-010).
105
+ - Qt Configurator: "Manage Stations" edits `station_presets` (QTU-007); auto-start checkbox calls `install_autostart`/`remove_autostart` (QTU-014); Dashboard polls the service status every 5 s while visible and no longer shows placeholder statistics (QTU-014, QTU-034); log level filter uses the record level and the page is labelled as the GUI process log (QTU-026); serial-number fetch threshold up to 500 (QTU-027).
106
+ - Production Manager: `ServerBridge.auto_connect(instance_id)` discovers credentials via `pywats.core.discovery` and never creates a config file (QTU-023). The `pywats_ui` version strings now come from `pywats._version` (QTU-032).
107
+ - Client service: `get_service_status()` and the health endpoint report the converter pool `load_errors` (`converter_load_errors`) and the offline queue's `error_files`, `invalid_files` and `backoff_seconds`; `reports_submitted` and `conversions_completed` are derived from the queue and pool (and survive component restarts), so the Client Monitor shows real numbers instead of 0.
108
+ - `ConverterConfig.post_action` is validated (`move|delete|archive|keep|auto`, clear error otherwise); the old spellings `done`, `remove`, `zip`, `none`, `converter`, `default` and an empty value are migrated on load.
109
+ - `pywats-client --ui qt` install hint is `pip install "pywats-client[html,qt]"`; `pywats-client debug --help` says the DebugSuite needs `PYWATS_DEV=1`.
110
+ - `pywebview` is capped at `>=5.0,<7` in the `html` extra.
111
+ - The installer build workflow no longer claims MSI, PKG, DEB or RPM artifacts it does not build.
112
+ - `cancel_reservations()` now returns the number of cancelled reservations and raises when the server cannot be reached (the cancel is kept and retried); a normal service stop keeps the reserved pool, as the .NET client does.
113
+ - `include_station_in_reports`, `process_sync_enabled` and `sync_interval_seconds` are no longer reserved config keys.
114
+ - `ConverterContext.copy_with()` now keeps `metadata` (location/purpose/converter name), copies `arguments` instead of sharing the dict, and accepts `api_client=` (TG2-CONV-001..003).
115
+ - `pywats-client config set proxy.port` is range-validated (1-65535) like `proxy_port` (TG2-CTRL-001); `converters enable` rejects names with path parts (TG2-CTRL-004); an invalid `--instance-id` ends with `Error: ...` and exit 1 (TG2-CTRL-005).
116
+ - The Linux/macOS service installers validate the instance id (no whitespace, separators or control characters; `install`/`uninstall` return `EXIT_ERROR`) and the launchd plist XML-escapes every value (TG2-CTRL-002, 003).
117
+ - `EventBus.emit_status_changed` emits `app_status_changed` once (TG2-CORE-006); the health server ignores the query string when routing (TG2-SVC-001).
118
+ - A background loop that raises (ping, register, config watcher, process sync, prefetch, queue, converter pool) is logged with its traceback and restarted with back-off (5 s doubling to 5 min, at most 5 restarts per hour); after that the service reports `degraded` and a failed queue/pool sets status ERROR (CPA-033, CSV-036).
119
+ - The hourly `PUT api/Client/Update` no longer sends location/purpose unless the user changed them (CPA-019).
120
+
121
+ ### Removed (Breaking)
122
+ - `pywats_ui.dialogs` and `pywats_client.gui_OLD` (dead code).
123
+ - `HeadlessService`/`control.service`, `control.service_adapter`, the click `pywats_client.cli`, the top-level `pywats_client.service_manager`, `service_tray.py` and `pywats-client tray`; config keys `api_*`, `webhook_*`, `username`, `metrics_port` (old files still load) (CSV-005/010/021, CPA-021).
124
+ - Console scripts `pywats-launcher`, `pywats-aichat`, `pywats-package-manager`, and the `gui` extra (with `openai`); the `pywats_ui` stub apps `yield_monitor`, `client_monitor`, `package_manager`, `aichat`, the tray launcher and the `template/` scaffold (HTML equivalents: `pywats-station-monitor`, `pywats-client-monitor`, `pywats-debug`) (QTU-017, QTU-018, QTU-019).
125
+ - Unused/broken Qt code: `pywats_ui.framework.AsyncAPIRunner`, `ConnectionMonitor`, `OfflineCapability`, the unwired Configurator pages `software`, `api_settings`, `proxy_settings`, `location`, `InstanceSelectorDialog`, `configurator/config.py` (QTU-024, QTU-025, QTU-033, QTU-008).
126
+ - Qt Configurator: File > Disconnect and File > Minimize to Tray (they did nothing), the "Send test report" button (non-existent `api/Report/wats` route, unreachable queue), the status-bar connection monitor (QTU-008, QTU-009, QTU-013).
127
+ - Production Manager: "+ New", the designer Edit mode, Instructions (PDF) add/delete/download (media endpoint contract differs on 2026.3), "Save draft" and the Barcodes placeholder tab are disabled/removed with an explanatory message instead of failing silently (QTU-020, QTU-021, QTU-022).
128
+
129
+ ### Fixed
130
+ - Converter pool: unsandboxed conversion called a non-existent `FileInfo.from_path`, so every such conversion failed; idle archive-queue processing never ran.
131
+ - `pywats-client gui` and the default GUI mode imported the removed `pywats_client.gui` package.
132
+ - `QueueCriticalError` raised `TypeError` instead of the intended critical error.
133
+ - `pywats_ui.widgets` exported a class that does not exist; the Qt converters page imported widgets from a removed path.
134
+ - HTML configurator bridge contained a pasted duplicate of its own class body.
135
+ - The converter pool loaded no converter from configuration and crashed after submitting (phantom imports, missing attributes) (CNV-001, 002).
136
+ - The sandbox did not start on Windows and could not load any converter (pipes, missing `SYSTEMROOT`, `__build_class__`/`__import__`); reports above 64 KiB broke it; status case mismatch (CNV-020..024).
137
+ - ATML, Teradyne ICT/Spectrum, Keysight, WSXF and WSTF failed or produced invalid reports on every sample file; WSJF rejected `.Z` timestamps and lost UUR data (CNV-030..036, 039).
138
+ - `stop_accepting()` followed by `stop()` left tasks and sandbox processes running; completed items stayed in memory (CNV-012, 013).
139
+ - Client IPC answered every request twice, so every reply after the first was the previous command's (CSV-001); frames are read with `readexactly` (CSV-034).
140
+ - Client health server `stop()` blocked forever, so a graceful stop never closed the API (CSV-002).
141
+ - The native Windows service could not be imported with pywin32 and its worker thread died on `signal.signal` (CSV-004); the NSSM installer crashed on `sys.environ` (CSV-030).
142
+ - `register` crashed on a cp1252 stdout after saving credentials; CLI and diagnostics output is ASCII (CSV-029).
143
+ - Cancelled serial numbers were reported to the server as taken; a corrupt SN pool is quarantined (CSV-031/032).
144
+ - Configurator "Converters" tab could not save (`'dict' object has no attribute 'to_dict'`) (HTM-001).
145
+ - Station Monitor and `LocalYieldMonitor`/`LocalStationMonitor` sent `from_date`/`to_date`/`process_name` (not `WATSFilter` fields, silently dropped, so queries were unbounded) and the dimensions `softwareVersion`/`processName` (not valid on the server); fixed to `date_from`/`date_to`/`test_operation`/`swVersion`/`testOperation`; the report headers of a station are filtered and capped on the server (HTM-017, 019).
146
+ - "New instance" overwrote the current instance's `instance_id` (HTM-010).
147
+ - Station Monitor and DebugSuite crashed before opening on an instance without a config (HTM-016).
148
+ - Exit dialog dropped unsaved Software settings and could leave the window impossible to close (HTM-012).
149
+ - Starting a service that was already running reported "Failed to start" (HTM-032).
150
+ - `wats.css` is valid UTF-8.
151
+ - Qt Configurator Connection page: the API token is sent as `Authorization: Basic <token>` (was `Bearer`, so every valid token failed with 401) (QTU-004); the connection test no longer raises "no current event loop" (QTU-003).
152
+ - Qt Configurator: opening the Converters page no longer re-creates the six default converters and their folders whenever the list is empty (use "Setup Defaults..." on request) (QTU-012).
153
+ - Wheel now contains `pywats_ui/framework/themes/base.qss` and `pywats_ui/apps/resources/favicon.ico` (package-data); `ThemeManager.apply()` works from an installed package (QTU-016).
154
+ - `StationManagerDialog` no longer calls non-existent `show_warning`/`confirm_action` (QTU-007).
155
+ - IPC `ServiceStatus.from_dict` maps the real `get_status` keys (`pending_queue`, `converter_pool`, `reports_submitted`, `errors`, `start_time`, `degraded`) onto its fields; the raw blocks stay in `extra`.
156
+ - Teradyne Spectrum ICT converter: `align_units("megohm"/"megaohm", ...)` scaled by 1e-3 instead of 1e6 (the longest unit prefix now wins) (TG2-CONV-004).
157
+ - WSJF converter: a report nested too deeply for pydantic to serialise is rejected with a clear "nested too deeply" message instead of failing in the upload pool (TG2-CONV-005).
158
+ - `InstanceLock`/`InstanceManager`: lock files that are non-UTF-8 or JSON that is not an object are treated as corrupt (replaced/skipped/cleaned); `is_instance_running` returns a real `bool` (TG2-CORE-001..003).
159
+ - `EventBus.unsubscribe` disconnects the Qt connection and `subscribe` ignores a duplicate callback (TG2-CORE-004, 005).
160
+ - `AsyncTaskRunner.run`: a task that finishes before `run()` returns is no longer left in `RUNNING` forever; the final state is set before signals and callbacks run (TG2-CORE-007).
161
+ - Configurator bridge: `valid_instance_id("lab\n")` and module paths with a trailing newline are rejected (TG2-UI-001).
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024-2026 The WATS Company AS
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,12 @@
1
+ include LICENSE
2
+ include README.md
3
+ include CHANGELOG.md
4
+ include pyproject.toml
5
+ recursive-include src *.py *.pyi py.typed
6
+ # package data of the HTML apps and the Qt preview
7
+ recursive-include src/pywats_client/apps *.html *.js *.css *.svg *.png *.ico *.woff2
8
+ recursive-include src/pywats_ui *.html *.js *.css *.svg *.png *.ico *.qss *.woff2
9
+ include src/pywats_client/control/HEADLESS_GUIDE.md
10
+ global-exclude __pycache__
11
+ global-exclude *.py[cod]
12
+ global-exclude *.egg-info
@@ -0,0 +1,78 @@
1
+ Metadata-Version: 2.4
2
+ Name: pywats-client
3
+ Version: 0.7.0b1
4
+ Summary: WATS client for Python: converter service, offline queue and HTML/Qt configurator for pyWATS
5
+ Author: The WATS Company AS
6
+ Maintainer: The WATS Company AS
7
+ License: MIT License
8
+
9
+ Copyright (c) 2024-2026 The WATS Company AS
10
+
11
+ Permission is hereby granted, free of charge, to any person obtaining a copy
12
+ of this software and associated documentation files (the "Software"), to deal
13
+ in the Software without restriction, including without limitation the rights
14
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15
+ copies of the Software, and to permit persons to whom the Software is
16
+ furnished to do so, subject to the following conditions:
17
+
18
+ The above copyright notice and this permission notice shall be included in all
19
+ copies or substantial portions of the Software.
20
+
21
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
27
+ SOFTWARE.
28
+
29
+ Project-URL: Homepage, https://www.wats.com
30
+ Project-URL: Release history, https://pypi.org/project/pywats-client/#history
31
+ Keywords: wats,test-automation,manufacturing,converter,client,service
32
+ Classifier: Development Status :: 4 - Beta
33
+ Classifier: Intended Audience :: Manufacturing
34
+ Classifier: Topic :: Software Development :: Testing
35
+ Classifier: Topic :: Scientific/Engineering
36
+ Classifier: License :: OSI Approved :: MIT License
37
+ Classifier: Programming Language :: Python :: 3
38
+ Classifier: Programming Language :: Python :: 3.11
39
+ Classifier: Programming Language :: Python :: 3.12
40
+ Classifier: Programming Language :: Python :: 3.13
41
+ Classifier: Programming Language :: Python :: 3.14
42
+ Classifier: Programming Language :: Python :: 3.15
43
+ Classifier: Operating System :: OS Independent
44
+ Requires-Python: >=3.11
45
+ Description-Content-Type: text/markdown
46
+ License-File: LICENSE
47
+ Requires-Dist: pywats-api<2,>=1.0.0rc2
48
+ Requires-Dist: watchdog>=3.0.0
49
+ Requires-Dist: aiofiles>=23.0.0
50
+ Requires-Dist: psutil>=5.9.0
51
+ Requires-Dist: pywin32>=306; sys_platform == "win32"
52
+ Provides-Extra: html
53
+ Requires-Dist: pywebview<7,>=5.0; extra == "html"
54
+ Provides-Extra: qt
55
+ Requires-Dist: PySide6>=6.4.0; extra == "qt"
56
+ Requires-Dist: qasync>=0.27.0; extra == "qt"
57
+ Dynamic: license-file
58
+
59
+ # pywats-client
60
+
61
+ The WATS client for Python (beta): a background service that watches folders, converts test result
62
+ files to WATS reports, submits them (with an offline queue), registers the station with the WATS
63
+ server, plus an HTML configurator and monitors. Built on [`pywats-api`](https://pypi.org/project/pywats-api/).
64
+
65
+ ```
66
+ pip install "pywats-client[html]" # service + HTML configurator (needs WebView2 on Windows)
67
+ pip install pywats-client # headless service only
68
+ pip install "pywats-client[html,qt]" # adds the optional Qt configurator preview
69
+ ```
70
+
71
+ ```
72
+ pywats-client register --url https://your.wats.server --token <register-token>
73
+ pywats-client service # run the service
74
+ pywats-configurator # HTML configurator
75
+ ```
76
+
77
+ - Python 3.11 or later; requires a WATS server that supports client registration (2026.3 or later)
78
+ - Questions and problems: contact WATS support (https://www.wats.com)
@@ -0,0 +1,20 @@
1
+ # pywats-client
2
+
3
+ The WATS client for Python (beta): a background service that watches folders, converts test result
4
+ files to WATS reports, submits them (with an offline queue), registers the station with the WATS
5
+ server, plus an HTML configurator and monitors. Built on [`pywats-api`](https://pypi.org/project/pywats-api/).
6
+
7
+ ```
8
+ pip install "pywats-client[html]" # service + HTML configurator (needs WebView2 on Windows)
9
+ pip install pywats-client # headless service only
10
+ pip install "pywats-client[html,qt]" # adds the optional Qt configurator preview
11
+ ```
12
+
13
+ ```
14
+ pywats-client register --url https://your.wats.server --token <register-token>
15
+ pywats-client service # run the service
16
+ pywats-configurator # HTML configurator
17
+ ```
18
+
19
+ - Python 3.11 or later; requires a WATS server that supports client registration (2026.3 or later)
20
+ - Questions and problems: contact WATS support (https://www.wats.com)
@@ -0,0 +1,76 @@
1
+ # pywats-client distribution. Built by `python scripts/build_packages.py --package client`,
2
+ # which stages `src/pywats_client` and `src/pywats_ui` next to this file.
3
+ [build-system]
4
+ requires = ["setuptools>=70.1"]
5
+ build-backend = "setuptools.build_meta"
6
+
7
+ [project]
8
+ name = "pywats-client"
9
+ dynamic = ["version"]
10
+ description = "WATS client for Python: converter service, offline queue and HTML/Qt configurator for pyWATS"
11
+ readme = "README.md"
12
+ license = {file = "LICENSE"}
13
+ authors = [{name = "The WATS Company AS"}]
14
+ maintainers = [{name = "The WATS Company AS"}]
15
+ classifiers = [
16
+ "Development Status :: 4 - Beta",
17
+ "Intended Audience :: Manufacturing",
18
+ "Topic :: Software Development :: Testing",
19
+ "Topic :: Scientific/Engineering",
20
+ "License :: OSI Approved :: MIT License",
21
+ "Programming Language :: Python :: 3",
22
+ "Programming Language :: Python :: 3.11",
23
+ "Programming Language :: Python :: 3.12",
24
+ "Programming Language :: Python :: 3.13",
25
+ "Programming Language :: Python :: 3.14",
26
+ "Programming Language :: Python :: 3.15",
27
+ "Operating System :: OS Independent",
28
+ ]
29
+ keywords = ["wats", "test-automation", "manufacturing", "converter", "client", "service"]
30
+ dependencies = [
31
+ "pywats-api>=1.0.0rc2,<2",
32
+ "watchdog>=3.0.0",
33
+ "aiofiles>=23.0.0",
34
+ "psutil>=5.9.0",
35
+ "pywin32>=306; sys_platform == 'win32'",
36
+ ]
37
+ requires-python = ">=3.11"
38
+
39
+ [project.optional-dependencies]
40
+ # HTML/JS configurator and monitors (primary UI): pywebview needs WebView2 on Windows.
41
+ html = ["pywebview>=5.0,<7"]
42
+ # Optional Qt configurator preview: `pywats-client gui --ui qt`.
43
+ qt = ["PySide6>=6.4.0", "qasync>=0.27.0"]
44
+
45
+ [project.urls]
46
+ # No public source repository: the package page on PyPI is the project's public home.
47
+ Homepage = "https://www.wats.com"
48
+ "Release history" = "https://pypi.org/project/pywats-client/#history"
49
+
50
+ [project.scripts]
51
+ pywats-client = "pywats_client.__main__:main"
52
+ pywats-configurator = "pywats_ui.apps.configurator_web.__main__:main"
53
+ pywats-station-monitor = "pywats_client.apps.yieldmon.__main__:main"
54
+ pywats-client-monitor = "pywats_client.apps.monitor.__main__:main"
55
+ pywats-debug = "pywats_client.apps.debug.__main__:main"
56
+ pywats-yield-monitor = "pywats_client.apps.yieldmon.__main__:main"
57
+ pywats-configurator-qt = "pywats_ui.apps.configurator.main:main"
58
+
59
+ [tool.setuptools.dynamic]
60
+ version = {attr = "pywats_client._version.__version__"}
61
+
62
+ [tool.setuptools.packages.find]
63
+ where = ["src"]
64
+ include = ["pywats_client", "pywats_client.*", "pywats_ui", "pywats_ui.*"]
65
+
66
+ [tool.setuptools.package-data]
67
+ pywats_client = [
68
+ "apps/yieldmon/WebAssets/*",
69
+ "apps/monitor/WebAssets/*",
70
+ "apps/debug/WebAssets/*",
71
+ ]
72
+ pywats_ui = [
73
+ "apps/configurator_web/WebAssets/*",
74
+ "framework/themes/*.qss",
75
+ "apps/resources/*",
76
+ ]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -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
+ ]