chartremotely 0.3.10__tar.gz → 0.3.11__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 (68) hide show
  1. {chartremotely-0.3.10 → chartremotely-0.3.11}/PKG-INFO +1 -1
  2. {chartremotely-0.3.10 → chartremotely-0.3.11}/chartremotely/doctor.py +19 -1
  3. {chartremotely-0.3.10 → chartremotely-0.3.11}/chartremotely.egg-info/PKG-INFO +1 -1
  4. {chartremotely-0.3.10 → chartremotely-0.3.11}/pyproject.toml +1 -1
  5. {chartremotely-0.3.10 → chartremotely-0.3.11}/tests/test_doctor.py +7 -0
  6. {chartremotely-0.3.10 → chartremotely-0.3.11}/LICENSE +0 -0
  7. {chartremotely-0.3.10 → chartremotely-0.3.11}/README.md +0 -0
  8. {chartremotely-0.3.10 → chartremotely-0.3.11}/chartremotely/__init__.py +0 -0
  9. {chartremotely-0.3.10 → chartremotely-0.3.11}/chartremotely/answer.py +0 -0
  10. {chartremotely-0.3.10 → chartremotely-0.3.11}/chartremotely/assets/shortcut.plist +0 -0
  11. {chartremotely-0.3.10 → chartremotely-0.3.11}/chartremotely/ax.py +0 -0
  12. {chartremotely-0.3.10 → chartremotely-0.3.11}/chartremotely/cli.py +0 -0
  13. {chartremotely-0.3.10 → chartremotely-0.3.11}/chartremotely/config.py +0 -0
  14. {chartremotely-0.3.10 → chartremotely-0.3.11}/chartremotely/displays.py +0 -0
  15. {chartremotely-0.3.10 → chartremotely-0.3.11}/chartremotely/guilock.py +0 -0
  16. {chartremotely-0.3.10 → chartremotely-0.3.11}/chartremotely/hearing.py +0 -0
  17. {chartremotely-0.3.10 → chartremotely-0.3.11}/chartremotely/holder.py +0 -0
  18. {chartremotely-0.3.10 → chartremotely-0.3.11}/chartremotely/keystore.py +0 -0
  19. {chartremotely-0.3.10 → chartremotely-0.3.11}/chartremotely/layout.py +0 -0
  20. {chartremotely-0.3.10 → chartremotely-0.3.11}/chartremotely/mcpclient.py +0 -0
  21. {chartremotely-0.3.10 → chartremotely-0.3.11}/chartremotely/patron.py +0 -0
  22. {chartremotely-0.3.10 → chartremotely-0.3.11}/chartremotely/popups.py +0 -0
  23. {chartremotely-0.3.10 → chartremotely-0.3.11}/chartremotely/push.py +0 -0
  24. {chartremotely-0.3.10 → chartremotely-0.3.11}/chartremotely/recent.py +0 -0
  25. {chartremotely-0.3.10 → chartremotely-0.3.11}/chartremotely/registry.py +0 -0
  26. {chartremotely-0.3.10 → chartremotely-0.3.11}/chartremotely/relay.py +0 -0
  27. {chartremotely-0.3.10 → chartremotely-0.3.11}/chartremotely/requestlog.py +0 -0
  28. {chartremotely-0.3.10 → chartremotely-0.3.11}/chartremotely/resolve.py +0 -0
  29. {chartremotely-0.3.10 → chartremotely-0.3.11}/chartremotely/scales.py +0 -0
  30. {chartremotely-0.3.10 → chartremotely-0.3.11}/chartremotely/screen.py +0 -0
  31. {chartremotely-0.3.10 → chartremotely-0.3.11}/chartremotely/server.py +0 -0
  32. {chartremotely-0.3.10 → chartremotely-0.3.11}/chartremotely/services.py +0 -0
  33. {chartremotely-0.3.10 → chartremotely-0.3.11}/chartremotely/setup.py +0 -0
  34. {chartremotely-0.3.10 → chartremotely-0.3.11}/chartremotely/shortcut.py +0 -0
  35. {chartremotely-0.3.10 → chartremotely-0.3.11}/chartremotely/snapshot.py +0 -0
  36. {chartremotely-0.3.10 → chartremotely-0.3.11}/chartremotely/studies.py +0 -0
  37. {chartremotely-0.3.10 → chartremotely-0.3.11}/chartremotely/symbol.py +0 -0
  38. {chartremotely-0.3.10 → chartremotely-0.3.11}/chartremotely/tailnet.py +0 -0
  39. {chartremotely-0.3.10 → chartremotely-0.3.11}/chartremotely/terminal.py +0 -0
  40. {chartremotely-0.3.10 → chartremotely-0.3.11}/chartremotely/timeframe.py +0 -0
  41. {chartremotely-0.3.10 → chartremotely-0.3.11}/chartremotely/understand.py +0 -0
  42. {chartremotely-0.3.10 → chartremotely-0.3.11}/chartremotely/vocab.py +0 -0
  43. {chartremotely-0.3.10 → chartremotely-0.3.11}/chartremotely/voice.py +0 -0
  44. {chartremotely-0.3.10 → chartremotely-0.3.11}/chartremotely/window.py +0 -0
  45. {chartremotely-0.3.10 → chartremotely-0.3.11}/chartremotely.egg-info/SOURCES.txt +0 -0
  46. {chartremotely-0.3.10 → chartremotely-0.3.11}/chartremotely.egg-info/dependency_links.txt +0 -0
  47. {chartremotely-0.3.10 → chartremotely-0.3.11}/chartremotely.egg-info/entry_points.txt +0 -0
  48. {chartremotely-0.3.10 → chartremotely-0.3.11}/chartremotely.egg-info/requires.txt +0 -0
  49. {chartremotely-0.3.10 → chartremotely-0.3.11}/chartremotely.egg-info/top_level.txt +0 -0
  50. {chartremotely-0.3.10 → chartremotely-0.3.11}/setup.cfg +0 -0
  51. {chartremotely-0.3.10 → chartremotely-0.3.11}/tests/test_changelog.py +0 -0
  52. {chartremotely-0.3.10 → chartremotely-0.3.11}/tests/test_hearing.py +0 -0
  53. {chartremotely-0.3.10 → chartremotely-0.3.11}/tests/test_patron.py +0 -0
  54. {chartremotely-0.3.10 → chartremotely-0.3.11}/tests/test_popups.py +0 -0
  55. {chartremotely-0.3.10 → chartremotely-0.3.11}/tests/test_push.py +0 -0
  56. {chartremotely-0.3.10 → chartremotely-0.3.11}/tests/test_recent.py +0 -0
  57. {chartremotely-0.3.10 → chartremotely-0.3.11}/tests/test_registry.py +0 -0
  58. {chartremotely-0.3.10 → chartremotely-0.3.11}/tests/test_relay.py +0 -0
  59. {chartremotely-0.3.10 → chartremotely-0.3.11}/tests/test_requestlog.py +0 -0
  60. {chartremotely-0.3.10 → chartremotely-0.3.11}/tests/test_resolve.py +0 -0
  61. {chartremotely-0.3.10 → chartremotely-0.3.11}/tests/test_scales.py +0 -0
  62. {chartremotely-0.3.10 → chartremotely-0.3.11}/tests/test_screen.py +0 -0
  63. {chartremotely-0.3.10 → chartremotely-0.3.11}/tests/test_setup.py +0 -0
  64. {chartremotely-0.3.10 → chartremotely-0.3.11}/tests/test_snapshot.py +0 -0
  65. {chartremotely-0.3.10 → chartremotely-0.3.11}/tests/test_stamp_changelog.py +0 -0
  66. {chartremotely-0.3.10 → chartremotely-0.3.11}/tests/test_timeframe.py +0 -0
  67. {chartremotely-0.3.10 → chartremotely-0.3.11}/tests/test_understand.py +0 -0
  68. {chartremotely-0.3.10 → chartremotely-0.3.11}/tests/test_voice.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: chartremotely
3
- Version: 0.3.10
3
+ Version: 0.3.11
4
4
  Summary: Remote control of desktop charting applications on macOS
5
5
  Author: Lonnie VanZandt
6
6
  License:
@@ -75,7 +75,25 @@ def _check_services() -> tuple[str, str]:
75
75
  return service_verdict({name: services.running_python(name) for name in services.LABELS})
76
76
 
77
77
 
78
- def _check_controls() -> tuple[str, str]:
78
+ def screen_locked() -> bool:
79
+ """True while the login session's screen is locked.
80
+
81
+ A locked screen hides every window from the accessibility layer, so the
82
+ chart's controls look missing when they are only out of reach.
83
+ """
84
+ import Quartz
85
+
86
+ session = Quartz.CGSessionCopyCurrentDictionary() or {}
87
+ return bool(session.get("CGSSessionScreenIsLocked"))
88
+
89
+
90
+ LOCKED = (BAD, ("the screen is locked, so the chart controls cannot be read - "
91
+ "unlock this Mac; until then it cannot change the chart"))
92
+
93
+
94
+ def _check_controls(locked=screen_locked) -> tuple[str, str]:
95
+ if locked():
96
+ return LOCKED
79
97
  from . import ax, symbol, timeframe
80
98
  cfg = config.load()
81
99
  try:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: chartremotely
3
- Version: 0.3.10
3
+ Version: 0.3.11
4
4
  Summary: Remote control of desktop charting applications on macOS
5
5
  Author: Lonnie VanZandt
6
6
  License:
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "chartremotely"
3
- version = "0.3.10"
3
+ version = "0.3.11"
4
4
  description = "Remote control of desktop charting applications on macOS"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.12"
@@ -81,3 +81,10 @@ def test_a_refused_token_is_named():
81
81
 
82
82
  def test_a_wrong_answer_fails():
83
83
  assert doctor.listener_verdict(8899, "t", post=lambda port, token: "ERR nope")[0] == doctor.BAD
84
+
85
+
86
+ # -- chart controls: a locked screen is named, not mistaken for a missing chart -----------
87
+
88
+ def test_a_locked_screen_is_named_before_looking_for_controls():
89
+ status, detail = doctor._check_controls(locked=lambda: True)
90
+ assert status == doctor.BAD and "locked" in detail and "unlock" in detail
File without changes
File without changes
File without changes