chartremotely 0.2.6__tar.gz → 0.2.7__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 (49) hide show
  1. {chartremotely-0.2.6 → chartremotely-0.2.7}/PKG-INFO +1 -1
  2. {chartremotely-0.2.6 → chartremotely-0.2.7}/chartremotely/assets/shortcut-template.plist +11 -0
  3. {chartremotely-0.2.6 → chartremotely-0.2.7}/chartremotely.egg-info/PKG-INFO +1 -1
  4. {chartremotely-0.2.6 → chartremotely-0.2.7}/pyproject.toml +1 -1
  5. {chartremotely-0.2.6 → chartremotely-0.2.7}/tests/test_forward.py +2 -1
  6. {chartremotely-0.2.6 → chartremotely-0.2.7}/tests/test_setup.py +11 -0
  7. {chartremotely-0.2.6 → chartremotely-0.2.7}/LICENSE +0 -0
  8. {chartremotely-0.2.6 → chartremotely-0.2.7}/README.md +0 -0
  9. {chartremotely-0.2.6 → chartremotely-0.2.7}/chartremotely/__init__.py +0 -0
  10. {chartremotely-0.2.6 → chartremotely-0.2.7}/chartremotely/answer.py +0 -0
  11. {chartremotely-0.2.6 → chartremotely-0.2.7}/chartremotely/ax.py +0 -0
  12. {chartremotely-0.2.6 → chartremotely-0.2.7}/chartremotely/cli.py +0 -0
  13. {chartremotely-0.2.6 → chartremotely-0.2.7}/chartremotely/config.py +0 -0
  14. {chartremotely-0.2.6 → chartremotely-0.2.7}/chartremotely/doctor.py +0 -0
  15. {chartremotely-0.2.6 → chartremotely-0.2.7}/chartremotely/forward.py +0 -0
  16. {chartremotely-0.2.6 → chartremotely-0.2.7}/chartremotely/guilock.py +0 -0
  17. {chartremotely-0.2.6 → chartremotely-0.2.7}/chartremotely/keystore.py +0 -0
  18. {chartremotely-0.2.6 → chartremotely-0.2.7}/chartremotely/layout.py +0 -0
  19. {chartremotely-0.2.6 → chartremotely-0.2.7}/chartremotely/mcpclient.py +0 -0
  20. {chartremotely-0.2.6 → chartremotely-0.2.7}/chartremotely/push.py +0 -0
  21. {chartremotely-0.2.6 → chartremotely-0.2.7}/chartremotely/registry.py +0 -0
  22. {chartremotely-0.2.6 → chartremotely-0.2.7}/chartremotely/relay.py +0 -0
  23. {chartremotely-0.2.6 → chartremotely-0.2.7}/chartremotely/requestlog.py +0 -0
  24. {chartremotely-0.2.6 → chartremotely-0.2.7}/chartremotely/resolve.py +0 -0
  25. {chartremotely-0.2.6 → chartremotely-0.2.7}/chartremotely/scales.py +0 -0
  26. {chartremotely-0.2.6 → chartremotely-0.2.7}/chartremotely/server.py +0 -0
  27. {chartremotely-0.2.6 → chartremotely-0.2.7}/chartremotely/services.py +0 -0
  28. {chartremotely-0.2.6 → chartremotely-0.2.7}/chartremotely/setup.py +0 -0
  29. {chartremotely-0.2.6 → chartremotely-0.2.7}/chartremotely/shortcut.py +0 -0
  30. {chartremotely-0.2.6 → chartremotely-0.2.7}/chartremotely/snapshot.py +0 -0
  31. {chartremotely-0.2.6 → chartremotely-0.2.7}/chartremotely/studies.py +0 -0
  32. {chartremotely-0.2.6 → chartremotely-0.2.7}/chartremotely/symbol.py +0 -0
  33. {chartremotely-0.2.6 → chartremotely-0.2.7}/chartremotely/tailnet.py +0 -0
  34. {chartremotely-0.2.6 → chartremotely-0.2.7}/chartremotely/timeframe.py +0 -0
  35. {chartremotely-0.2.6 → chartremotely-0.2.7}/chartremotely/vocab.py +0 -0
  36. {chartremotely-0.2.6 → chartremotely-0.2.7}/chartremotely/window.py +0 -0
  37. {chartremotely-0.2.6 → chartremotely-0.2.7}/chartremotely.egg-info/SOURCES.txt +0 -0
  38. {chartremotely-0.2.6 → chartremotely-0.2.7}/chartremotely.egg-info/dependency_links.txt +0 -0
  39. {chartremotely-0.2.6 → chartremotely-0.2.7}/chartremotely.egg-info/entry_points.txt +0 -0
  40. {chartremotely-0.2.6 → chartremotely-0.2.7}/chartremotely.egg-info/requires.txt +0 -0
  41. {chartremotely-0.2.6 → chartremotely-0.2.7}/chartremotely.egg-info/top_level.txt +0 -0
  42. {chartremotely-0.2.6 → chartremotely-0.2.7}/setup.cfg +0 -0
  43. {chartremotely-0.2.6 → chartremotely-0.2.7}/tests/test_push.py +0 -0
  44. {chartremotely-0.2.6 → chartremotely-0.2.7}/tests/test_relay.py +0 -0
  45. {chartremotely-0.2.6 → chartremotely-0.2.7}/tests/test_requestlog.py +0 -0
  46. {chartremotely-0.2.6 → chartremotely-0.2.7}/tests/test_resolve.py +0 -0
  47. {chartremotely-0.2.6 → chartremotely-0.2.7}/tests/test_snapshot.py +0 -0
  48. {chartremotely-0.2.6 → chartremotely-0.2.7}/tests/test_stamp_changelog.py +0 -0
  49. {chartremotely-0.2.6 → chartremotely-0.2.7}/tests/test_timeframe.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: chartremotely
3
- Version: 0.2.6
3
+ Version: 0.2.7
4
4
  Summary: Remote control of desktop charting applications on macOS
5
5
  Author: Lonnie VanZandt
6
6
  License:
@@ -1066,6 +1066,17 @@
1066
1066
  <false/>
1067
1067
  </dict>
1068
1068
  </dict>
1069
+ <dict>
1070
+ <key>WFWorkflowActionIdentifier</key>
1071
+ <string>is.workflow.actions.speaktext</string>
1072
+ <key>WFWorkflowActionParameters</key>
1073
+ <dict>
1074
+ <key>WFSpeakTextWait</key>
1075
+ <false/>
1076
+ <key>WFText</key>
1077
+ <string>On it, requesting your chart now. Look at your screen or visit the website for the screen capture.</string>
1078
+ </dict>
1079
+ </dict>
1069
1080
  <dict>
1070
1081
  <key>WFWorkflowActionIdentifier</key>
1071
1082
  <string>is.workflow.actions.downloadurl</string>
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: chartremotely
3
- Version: 0.2.6
3
+ Version: 0.2.7
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.2.6"
3
+ version = "0.2.7"
4
4
  description = "Remote control of desktop charting applications on macOS"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.12"
@@ -184,7 +184,8 @@ def test_the_shortcut_asks_where_after_scale_and_sends_it_beside_cmd():
184
184
  actions = plistlib.loads(shortcut.template())["WFWorkflowActions"]
185
185
  prompts = [a["WFWorkflowActionParameters"].get("WFAskActionPrompt") for a in actions]
186
186
  assert prompts.index("Where?") > prompts.index("What scale?")
187
- final = actions[prompts.index("Where?") + 1]["WFWorkflowActionParameters"]
187
+ final = next(a for a in actions[prompts.index("Where?"):]
188
+ if a["WFWorkflowActionIdentifier"].endswith(".downloadurl"))["WFWorkflowActionParameters"]
188
189
  fields = {i["WFKey"]["Value"]["string"]: i["WFValue"]["Value"]
189
190
  for i in final["WFJSONValues"]["Value"]["WFDictionaryFieldValueItems"]}
190
191
  assert fields["cmd"]["string"] == "set  | ", "the vocab grammar is unchanged"
@@ -52,6 +52,17 @@ def test_every_question_takes_one_line_so_return_answers_it():
52
52
  assert ask.get("WFAskActionAllowsMultilineText") is False, ask.get("WFAskActionPrompt")
53
53
 
54
54
 
55
+ def test_the_shortcut_says_it_is_on_it_while_the_request_goes_out():
56
+ actions = plistlib.loads(shortcut.template())["WFWorkflowActions"]
57
+ kinds = [a["WFWorkflowActionIdentifier"].rsplit(".", 1)[-1] for a in actions]
58
+ where = next(i for i, a in enumerate(actions)
59
+ if a["WFWorkflowActionParameters"].get("CustomOutputName") == "Where")
60
+ assert kinds[where + 1:where + 3] == ["speaktext", "downloadurl"]
61
+ ack = actions[where + 1]["WFWorkflowActionParameters"]
62
+ assert ack["WFSpeakTextWait"] is False, "waiting for the words would delay the chart"
63
+ assert ack["WFText"].startswith("On it, requesting your chart now.")
64
+
65
+
55
66
  def test_filling_the_template_changes_the_placeholders_and_nothing_else():
56
67
  raw = shortcut.template()
57
68
  filled = shortcut.fill(raw, "https://mac.example.ts.net/chart", "T0KEN")
File without changes
File without changes
File without changes