chartremotely 0.3.10__tar.gz → 0.3.12__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.
- {chartremotely-0.3.10 → chartremotely-0.3.12}/PKG-INFO +2 -2
- {chartremotely-0.3.10 → chartremotely-0.3.12}/chartremotely/doctor.py +19 -1
- {chartremotely-0.3.10 → chartremotely-0.3.12}/chartremotely.egg-info/PKG-INFO +2 -2
- {chartremotely-0.3.10 → chartremotely-0.3.12}/chartremotely.egg-info/requires.txt +1 -1
- {chartremotely-0.3.10 → chartremotely-0.3.12}/pyproject.toml +2 -2
- {chartremotely-0.3.10 → chartremotely-0.3.12}/tests/test_doctor.py +7 -0
- {chartremotely-0.3.10 → chartremotely-0.3.12}/LICENSE +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.12}/README.md +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.12}/chartremotely/__init__.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.12}/chartremotely/answer.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.12}/chartremotely/assets/shortcut.plist +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.12}/chartremotely/ax.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.12}/chartremotely/cli.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.12}/chartremotely/config.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.12}/chartremotely/displays.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.12}/chartremotely/guilock.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.12}/chartremotely/hearing.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.12}/chartremotely/holder.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.12}/chartremotely/keystore.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.12}/chartremotely/layout.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.12}/chartremotely/mcpclient.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.12}/chartremotely/patron.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.12}/chartremotely/popups.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.12}/chartremotely/push.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.12}/chartremotely/recent.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.12}/chartremotely/registry.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.12}/chartremotely/relay.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.12}/chartremotely/requestlog.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.12}/chartremotely/resolve.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.12}/chartremotely/scales.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.12}/chartremotely/screen.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.12}/chartremotely/server.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.12}/chartremotely/services.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.12}/chartremotely/setup.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.12}/chartremotely/shortcut.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.12}/chartremotely/snapshot.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.12}/chartremotely/studies.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.12}/chartremotely/symbol.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.12}/chartremotely/tailnet.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.12}/chartremotely/terminal.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.12}/chartremotely/timeframe.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.12}/chartremotely/understand.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.12}/chartremotely/vocab.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.12}/chartremotely/voice.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.12}/chartremotely/window.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.12}/chartremotely.egg-info/SOURCES.txt +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.12}/chartremotely.egg-info/dependency_links.txt +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.12}/chartremotely.egg-info/entry_points.txt +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.12}/chartremotely.egg-info/top_level.txt +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.12}/setup.cfg +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.12}/tests/test_changelog.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.12}/tests/test_hearing.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.12}/tests/test_patron.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.12}/tests/test_popups.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.12}/tests/test_push.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.12}/tests/test_recent.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.12}/tests/test_registry.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.12}/tests/test_relay.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.12}/tests/test_requestlog.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.12}/tests/test_resolve.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.12}/tests/test_scales.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.12}/tests/test_screen.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.12}/tests/test_setup.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.12}/tests/test_snapshot.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.12}/tests/test_stamp_changelog.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.12}/tests/test_timeframe.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.12}/tests/test_understand.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.12}/tests/test_voice.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: chartremotely
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.12
|
|
4
4
|
Summary: Remote control of desktop charting applications on macOS
|
|
5
5
|
Author: Lonnie VanZandt
|
|
6
6
|
License:
|
|
@@ -219,7 +219,7 @@ Requires-Dist: pyobjc-framework-Quartz>=10; extra == "macos"
|
|
|
219
219
|
Requires-Dist: pyobjc-framework-Security>=10; extra == "macos"
|
|
220
220
|
Requires-Dist: mlx-whisper>=0.4.3; (sys_platform == "darwin" and platform_machine == "arm64") and extra == "macos"
|
|
221
221
|
Provides-Extra: setup
|
|
222
|
-
Requires-Dist: tollbooth-dpyc[nostr]==0.
|
|
222
|
+
Requires-Dist: tollbooth-dpyc[nostr]==0.110.0; extra == "setup"
|
|
223
223
|
Provides-Extra: dev
|
|
224
224
|
Requires-Dist: pytest>=8; extra == "dev"
|
|
225
225
|
Requires-Dist: ruff>=0.6; extra == "dev"
|
|
@@ -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
|
|
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.
|
|
3
|
+
Version: 0.3.12
|
|
4
4
|
Summary: Remote control of desktop charting applications on macOS
|
|
5
5
|
Author: Lonnie VanZandt
|
|
6
6
|
License:
|
|
@@ -219,7 +219,7 @@ Requires-Dist: pyobjc-framework-Quartz>=10; extra == "macos"
|
|
|
219
219
|
Requires-Dist: pyobjc-framework-Security>=10; extra == "macos"
|
|
220
220
|
Requires-Dist: mlx-whisper>=0.4.3; (sys_platform == "darwin" and platform_machine == "arm64") and extra == "macos"
|
|
221
221
|
Provides-Extra: setup
|
|
222
|
-
Requires-Dist: tollbooth-dpyc[nostr]==0.
|
|
222
|
+
Requires-Dist: tollbooth-dpyc[nostr]==0.110.0; extra == "setup"
|
|
223
223
|
Provides-Extra: dev
|
|
224
224
|
Requires-Dist: pytest>=8; extra == "dev"
|
|
225
225
|
Requires-Dist: ruff>=0.6; extra == "dev"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "chartremotely"
|
|
3
|
-
version = "0.3.
|
|
3
|
+
version = "0.3.12"
|
|
4
4
|
description = "Remote control of desktop charting applications on macOS"
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
requires-python = ">=3.12"
|
|
@@ -25,7 +25,7 @@ macos = [
|
|
|
25
25
|
]
|
|
26
26
|
# `chartremotely setup` makes and proves Nostr identities. The key and proof
|
|
27
27
|
# code is the tollbooth-dpyc SDK's own, never rewritten here.
|
|
28
|
-
setup = ["tollbooth-dpyc[nostr]==0.
|
|
28
|
+
setup = ["tollbooth-dpyc[nostr]==0.110.0"]
|
|
29
29
|
dev = ["pytest>=8", "ruff>=0.6"]
|
|
30
30
|
|
|
31
31
|
[project.urls]
|
|
@@ -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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|