uwscli 0.1.0__tar.gz → 0.2.0__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 (32) hide show
  1. {uwscli-0.1.0/src/uwscli.egg-info → uwscli-0.2.0}/PKG-INFO +13 -7
  2. {uwscli-0.1.0 → uwscli-0.2.0}/README.md +12 -6
  3. {uwscli-0.1.0 → uwscli-0.2.0}/pyproject.toml +9 -1
  4. {uwscli-0.1.0 → uwscli-0.2.0}/src/uwscli/__init__.py +3 -1
  5. uwscli-0.2.0/src/uwscli/cli.py +712 -0
  6. {uwscli-0.1.0 → uwscli-0.2.0}/src/uwscli/lcd.py +57 -21
  7. uwscli-0.2.0/src/uwscli/led.py +7 -0
  8. {uwscli-0.1.0 → uwscli-0.2.0}/src/uwscli/structs.py +2 -2
  9. {uwscli-0.1.0 → uwscli-0.2.0}/src/uwscli/system_usb.py +18 -8
  10. uwscli-0.2.0/src/uwscli/tinyuz.py +192 -0
  11. uwscli-0.2.0/src/uwscli/tlcontroller.py +129 -0
  12. {uwscli-0.1.0 → uwscli-0.2.0}/src/uwscli/usbutil.py +17 -5
  13. uwscli-0.2.0/src/uwscli/wireless.py +800 -0
  14. {uwscli-0.1.0 → uwscli-0.2.0/src/uwscli.egg-info}/PKG-INFO +13 -7
  15. {uwscli-0.1.0 → uwscli-0.2.0}/src/uwscli.egg-info/SOURCES.txt +6 -1
  16. {uwscli-0.1.0 → uwscli-0.2.0}/tests/test_cli_errors.py +22 -13
  17. uwscli-0.2.0/tests/test_cli_output.py +538 -0
  18. uwscli-0.2.0/tests/test_led_compression.py +97 -0
  19. uwscli-0.2.0/tests/test_wireless_integration.py +321 -0
  20. uwscli-0.2.0/tests/test_wireless_led_packets.py +85 -0
  21. uwscli-0.1.0/src/uwscli/cli.py +0 -416
  22. uwscli-0.1.0/src/uwscli/wireless.py +0 -362
  23. uwscli-0.1.0/tests/test_cli_output.py +0 -186
  24. uwscli-0.1.0/tests/test_wireless_integration.py +0 -92
  25. {uwscli-0.1.0 → uwscli-0.2.0}/LICENSE +0 -0
  26. {uwscli-0.1.0 → uwscli-0.2.0}/setup.cfg +0 -0
  27. {uwscli-0.1.0 → uwscli-0.2.0}/src/uwscli/logging_utils.py +0 -0
  28. {uwscli-0.1.0 → uwscli-0.2.0}/src/uwscli.egg-info/dependency_links.txt +0 -0
  29. {uwscli-0.1.0 → uwscli-0.2.0}/src/uwscli.egg-info/entry_points.txt +0 -0
  30. {uwscli-0.1.0 → uwscli-0.2.0}/src/uwscli.egg-info/requires.txt +0 -0
  31. {uwscli-0.1.0 → uwscli-0.2.0}/src/uwscli.egg-info/top_level.txt +0 -0
  32. {uwscli-0.1.0 → uwscli-0.2.0}/tests/test_usbutil.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: uwscli
3
- Version: 0.1.0
3
+ Version: 0.2.0
4
4
  Summary: Uni-Wireless-Sync: wireless control toolkit for TL LCD fan hubs
5
5
  Author: Study Hsueh
6
6
  License: MIT License
@@ -55,13 +55,13 @@ Provides-Extra: images
55
55
  Requires-Dist: Pillow>=10.0; extra == "images"
56
56
  Dynamic: license-file
57
57
 
58
- # UWS CLI
58
+ # Uni Wireless Sync CLI
59
59
 
60
60
  Warning: This is an unofficial implementation; use at your own risk.
61
61
 
62
62
  ## Overview
63
63
 
64
- UWS CLI provides command-line utilities for managing Uni Fan Wireless controllers, L-Wireless receivers, and LCD panels. Each command re-opens the required USB or RF device so no background daemon is left running, and lower-level HID/USB errors are surfaced directly to simplify scripting.
64
+ Uni Wireless Sync (UWS) CLI provides command-line utilities for managing Uni Fan Wireless controllers, L-Wireless receivers, and LCD panels. Each command re-opens the required USB or RF device so no background daemon is left running, and lower-level HID/USB errors are surfaced directly to simplify scripting.
65
65
 
66
66
  ## Supported Hardware
67
67
 
@@ -115,8 +115,8 @@ uws lcd keep-alive --serial <usb-serial> --interval 5
115
115
  uws fan set-fan --mac aa:bb:cc:dd:ee:ff --pwm 120
116
116
  uws fan bind --mac aa:bb:cc:dd:ee:ff
117
117
  uws fan unbind --mac aa:bb:cc:dd:ee:ff
118
- uws fan pwm-sync --all --enable
119
- uws fan pwm-sync --mac aa:bb:cc:dd:ee:ff --disable --fallback-pwm 120
118
+ uws fan pwm-sync --all
119
+ uws fan pwm-sync --mac aa:bb:cc:dd:ee:ff --once
120
120
  ```
121
121
 
122
122
  `uws lcd list` prints JSON rows that include a `serial` field—copy that value when invoking other LCD subcommands.
@@ -127,10 +127,11 @@ uws fan pwm-sync --mac aa:bb:cc:dd:ee:ff --disable --fallback-pwm 120
127
127
  - `uws lcd info --serial <usb-serial>` – read firmware and handshake data.
128
128
  - `uws lcd send-jpg --serial <usb-serial> --file <image.jpg>` – stream a JPEG asset.
129
129
  - `uws lcd keep-alive --serial <usb-serial> [--interval seconds]` – emit periodic handshakes to prevent the wireless panel from dimming.
130
- - `uws lcd control --serial <usb-serial> [--mode show-jpg|show-app-sync|lcd-test] [--index N] [--brightness 0-100] [--fps N] [--rotation 0|90|180|270] [--test-color R,G,B]` – send an `LCDControlSetting` payload.
130
+ - `uws lcd control --serial <usb-serial> [--mode show-jpg|show-app-sync|lcd-test] [--jpg-index N] [--brightness 0-100] [--fps N] [--rotation 0|90|180|270] [--test-color R,G,B]` – send an `LCDControlSetting` payload.
131
131
  - `uws fan list` – fetch a snapshot of bound wireless devices via the RF receiver.
132
132
  - `uws fan set-fan --mac <aa:bb:..> --pwm <0-255>` – send a single shot PWM update to the matching wireless hub using the RF sender.
133
- - `uws fan pwm-sync --all|--mac` – enable or disable motherboard PWM sync for bound hubs.
133
+ - `uws fan set-led --mac <aa:bb:..> --mode static|rainbow|frames` – apply LED effects (experimental).
134
+ - `uws fan pwm-sync --all|--mac [--once]` – mirror motherboard PWM output to bound hubs (looping by default, single iteration with `--once`).
134
135
 
135
136
  ## Dependencies
136
137
 
@@ -155,6 +156,11 @@ SUBSYSTEM=="usb_interface", ATTRS{idVendor}=="0416", ATTRS{idProduct}=="8041", M
155
156
  SUBSYSTEM=="usb", ATTR{idVendor}=="0416", ATTR{idProduct}=="8040", MODE="0666", GROUP="plugdev"
156
157
  SUBSYSTEM=="usb_device", ATTR{idVendor}=="0416", ATTR{idProduct}=="8040", MODE="0666", GROUP="plugdev"
157
158
  SUBSYSTEM=="usb_interface", ATTRS{idVendor}=="0416", ATTRS{idProduct}=="8040", MODE="0666", GROUP="plugdev"
159
+
160
+ # Luminary Micro TL-LCD Wireless-1.3
161
+ SUBSYSTEM=="usb", ATTR{idVendor}=="1cbe", ATTR{idProduct}=="0006", MODE="0666", GROUP="plugdev"
162
+ SUBSYSTEM=="usb_device", ATTR{idVendor}=="1cbe", ATTR{idProduct}=="0006", MODE="0666", GROUP="plugdev"
163
+ SUBSYSTEM=="usb_interface", ATTRS{idVendor}=="1cbe", ATTRS{idProduct}=="0006", MODE="0666", GROUP="plugdev"
158
164
  ```
159
165
 
160
166
  Reload the rules and replug the dongles:
@@ -1,10 +1,10 @@
1
- # UWS CLI
1
+ # Uni Wireless Sync CLI
2
2
 
3
3
  Warning: This is an unofficial implementation; use at your own risk.
4
4
 
5
5
  ## Overview
6
6
 
7
- UWS CLI provides command-line utilities for managing Uni Fan Wireless controllers, L-Wireless receivers, and LCD panels. Each command re-opens the required USB or RF device so no background daemon is left running, and lower-level HID/USB errors are surfaced directly to simplify scripting.
7
+ Uni Wireless Sync (UWS) CLI provides command-line utilities for managing Uni Fan Wireless controllers, L-Wireless receivers, and LCD panels. Each command re-opens the required USB or RF device so no background daemon is left running, and lower-level HID/USB errors are surfaced directly to simplify scripting.
8
8
 
9
9
  ## Supported Hardware
10
10
 
@@ -58,8 +58,8 @@ uws lcd keep-alive --serial <usb-serial> --interval 5
58
58
  uws fan set-fan --mac aa:bb:cc:dd:ee:ff --pwm 120
59
59
  uws fan bind --mac aa:bb:cc:dd:ee:ff
60
60
  uws fan unbind --mac aa:bb:cc:dd:ee:ff
61
- uws fan pwm-sync --all --enable
62
- uws fan pwm-sync --mac aa:bb:cc:dd:ee:ff --disable --fallback-pwm 120
61
+ uws fan pwm-sync --all
62
+ uws fan pwm-sync --mac aa:bb:cc:dd:ee:ff --once
63
63
  ```
64
64
 
65
65
  `uws lcd list` prints JSON rows that include a `serial` field—copy that value when invoking other LCD subcommands.
@@ -70,10 +70,11 @@ uws fan pwm-sync --mac aa:bb:cc:dd:ee:ff --disable --fallback-pwm 120
70
70
  - `uws lcd info --serial <usb-serial>` – read firmware and handshake data.
71
71
  - `uws lcd send-jpg --serial <usb-serial> --file <image.jpg>` – stream a JPEG asset.
72
72
  - `uws lcd keep-alive --serial <usb-serial> [--interval seconds]` – emit periodic handshakes to prevent the wireless panel from dimming.
73
- - `uws lcd control --serial <usb-serial> [--mode show-jpg|show-app-sync|lcd-test] [--index N] [--brightness 0-100] [--fps N] [--rotation 0|90|180|270] [--test-color R,G,B]` – send an `LCDControlSetting` payload.
73
+ - `uws lcd control --serial <usb-serial> [--mode show-jpg|show-app-sync|lcd-test] [--jpg-index N] [--brightness 0-100] [--fps N] [--rotation 0|90|180|270] [--test-color R,G,B]` – send an `LCDControlSetting` payload.
74
74
  - `uws fan list` – fetch a snapshot of bound wireless devices via the RF receiver.
75
75
  - `uws fan set-fan --mac <aa:bb:..> --pwm <0-255>` – send a single shot PWM update to the matching wireless hub using the RF sender.
76
- - `uws fan pwm-sync --all|--mac` – enable or disable motherboard PWM sync for bound hubs.
76
+ - `uws fan set-led --mac <aa:bb:..> --mode static|rainbow|frames` – apply LED effects (experimental).
77
+ - `uws fan pwm-sync --all|--mac [--once]` – mirror motherboard PWM output to bound hubs (looping by default, single iteration with `--once`).
77
78
 
78
79
  ## Dependencies
79
80
 
@@ -98,6 +99,11 @@ SUBSYSTEM=="usb_interface", ATTRS{idVendor}=="0416", ATTRS{idProduct}=="8041", M
98
99
  SUBSYSTEM=="usb", ATTR{idVendor}=="0416", ATTR{idProduct}=="8040", MODE="0666", GROUP="plugdev"
99
100
  SUBSYSTEM=="usb_device", ATTR{idVendor}=="0416", ATTR{idProduct}=="8040", MODE="0666", GROUP="plugdev"
100
101
  SUBSYSTEM=="usb_interface", ATTRS{idVendor}=="0416", ATTRS{idProduct}=="8040", MODE="0666", GROUP="plugdev"
102
+
103
+ # Luminary Micro TL-LCD Wireless-1.3
104
+ SUBSYSTEM=="usb", ATTR{idVendor}=="1cbe", ATTR{idProduct}=="0006", MODE="0666", GROUP="plugdev"
105
+ SUBSYSTEM=="usb_device", ATTR{idVendor}=="1cbe", ATTR{idProduct}=="0006", MODE="0666", GROUP="plugdev"
106
+ SUBSYSTEM=="usb_interface", ATTRS{idVendor}=="1cbe", ATTRS{idProduct}=="0006", MODE="0666", GROUP="plugdev"
101
107
  ```
102
108
 
103
109
  Reload the rules and replug the dongles:
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "uwscli"
3
- version = "0.1.0"
3
+ version = "0.2.0"
4
4
  description = "Uni-Wireless-Sync: wireless control toolkit for TL LCD fan hubs"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.10"
@@ -52,6 +52,14 @@ include = ["uwscli", "uwscli.*"]
52
52
  pythonpath = ["src"]
53
53
  addopts = "-ra"
54
54
 
55
+ [tool.mypy]
56
+ python_version = "3.10"
57
+ ignore_missing_imports = true
58
+ strict_optional = true
59
+ warn_redundant_casts = true
60
+ warn_unused_ignores = true
61
+ show_error_codes = true
62
+
55
63
  [build-system]
56
64
  requires = ["setuptools>=68", "wheel"]
57
65
  build-backend = "setuptools.build_meta"
@@ -1,10 +1,12 @@
1
1
  """UWS CLI package."""
2
2
 
3
- __version__ = "0.1.0"
3
+ __version__ = "0.2.0"
4
4
 
5
5
  __all__ = [
6
6
  "cli",
7
7
  "lcd",
8
+ "led",
9
+ "tinyuz",
8
10
  "wireless",
9
11
  "structs",
10
12
  "usbutil",