outleap 0.8.0__tar.gz → 0.8.2__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 (44) hide show
  1. {outleap-0.8.0 → outleap-0.8.2}/PKG-INFO +1 -1
  2. {outleap-0.8.0 → outleap-0.8.2}/src/outleap/api_wrappers.py +1 -1
  3. {outleap-0.8.0 → outleap-0.8.2}/src/outleap/version.py +2 -2
  4. {outleap-0.8.0 → outleap-0.8.2}/src/outleap.egg-info/PKG-INFO +1 -1
  5. {outleap-0.8.0 → outleap-0.8.2}/tests/test_wrappers.py +26 -17
  6. {outleap-0.8.0 → outleap-0.8.2}/.coveragerc +0 -0
  7. {outleap-0.8.0 → outleap-0.8.2}/.github/workflows/cis.yml +0 -0
  8. {outleap-0.8.0 → outleap-0.8.2}/.github/workflows/pypi_publish.yml +0 -0
  9. {outleap-0.8.0 → outleap-0.8.2}/.gitignore +0 -0
  10. {outleap-0.8.0 → outleap-0.8.2}/COPYING +0 -0
  11. {outleap-0.8.0 → outleap-0.8.2}/MANIFEST.in +0 -0
  12. {outleap-0.8.0 → outleap-0.8.2}/README.md +0 -0
  13. {outleap-0.8.0 → outleap-0.8.2}/codecov.yml +0 -0
  14. {outleap-0.8.0 → outleap-0.8.2}/examples/README.md +0 -0
  15. {outleap-0.8.0 → outleap-0.8.2}/examples/complex_leap_script.py +0 -0
  16. {outleap-0.8.0 → outleap-0.8.2}/examples/simple_leap_script.py +0 -0
  17. {outleap-0.8.0 → outleap-0.8.2}/pyproject.toml +0 -0
  18. {outleap-0.8.0 → outleap-0.8.2}/setup.cfg +0 -0
  19. {outleap-0.8.0 → outleap-0.8.2}/setup.py +0 -0
  20. {outleap-0.8.0 → outleap-0.8.2}/src/outleap/__init__.py +0 -0
  21. {outleap-0.8.0 → outleap-0.8.2}/src/outleap/bridge.py +0 -0
  22. {outleap-0.8.0 → outleap-0.8.2}/src/outleap/client.py +0 -0
  23. {outleap-0.8.0 → outleap-0.8.2}/src/outleap/protocol.py +0 -0
  24. {outleap-0.8.0 → outleap-0.8.2}/src/outleap/qt_helpers.py +0 -0
  25. {outleap-0.8.0 → outleap-0.8.2}/src/outleap/scripts/__init__.py +0 -0
  26. {outleap-0.8.0 → outleap-0.8.2}/src/outleap/scripts/agent.py +0 -0
  27. {outleap-0.8.0 → outleap-0.8.2}/src/outleap/scripts/inspector.py +0 -0
  28. {outleap-0.8.0 → outleap-0.8.2}/src/outleap/scripts/repl.py +0 -0
  29. {outleap-0.8.0 → outleap-0.8.2}/src/outleap/scripts/ui/inspector.ui +0 -0
  30. {outleap-0.8.0 → outleap-0.8.2}/src/outleap/ui_elems.py +0 -0
  31. {outleap-0.8.0 → outleap-0.8.2}/src/outleap/utils.py +0 -0
  32. {outleap-0.8.0 → outleap-0.8.2}/src/outleap.egg-info/SOURCES.txt +0 -0
  33. {outleap-0.8.0 → outleap-0.8.2}/src/outleap.egg-info/dependency_links.txt +0 -0
  34. {outleap-0.8.0 → outleap-0.8.2}/src/outleap.egg-info/entry_points.txt +0 -0
  35. {outleap-0.8.0 → outleap-0.8.2}/src/outleap.egg-info/requires.txt +0 -0
  36. {outleap-0.8.0 → outleap-0.8.2}/src/outleap.egg-info/top_level.txt +0 -0
  37. {outleap-0.8.0 → outleap-0.8.2}/static/inspector_screenshot.png +0 -0
  38. {outleap-0.8.0 → outleap-0.8.2}/tests/__init__.py +0 -0
  39. {outleap-0.8.0 → outleap-0.8.2}/tests/test_client.py +0 -0
  40. {outleap-0.8.0 → outleap-0.8.2}/tests/test_protocol.py +0 -0
  41. {outleap-0.8.0 → outleap-0.8.2}/tests/test_stdio.py +0 -0
  42. {outleap-0.8.0 → outleap-0.8.2}/tests/test_ui_elems.py +0 -0
  43. {outleap-0.8.0 → outleap-0.8.2}/tests/ui_paths.txt +0 -0
  44. {outleap-0.8.0 → outleap-0.8.2}/tox.ini +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: outleap
3
- Version: 0.8.0
3
+ Version: 0.8.2
4
4
  Summary: Tools for using asyncio to control a Second Life viewer over the LEAP protocol
5
5
  Author-email: Salad Dais <83434023+SaladDais@users.noreply.github.com>
6
6
  License: MIT License
@@ -474,7 +474,7 @@ class LLAgentAPI(LEAPAPIWrapper):
474
474
 
475
475
  def get_id(self) -> Awaitable[uuid.UUID]:
476
476
  """Get the current agent's ID"""
477
- return _data_unwrapper(self._client.command(self._pump_name, "getId", {}), "id")
477
+ return _data_unwrapper(self._client.command(self._pump_name, "getID", {}), "id")
478
478
 
479
479
  def get_groups(self) -> Awaitable[List[Dict]]:
480
480
  return _data_unwrapper(self._client.command(self._pump_name, "getGroups", {}), "groups")
@@ -5,7 +5,7 @@ from collections import namedtuple
5
5
  #: A namedtuple of the version info for the current release.
6
6
  _version_info = namedtuple("_version_info", "major minor micro status")
7
7
 
8
- parts = "0.8.0".split(".", 3)
8
+ parts = "0.8.2".split(".", 3)
9
9
  version_info = _version_info(
10
10
  int(parts[0]),
11
11
  int(parts[1]),
@@ -16,4 +16,4 @@ version_info = _version_info(
16
16
  # Remove everything but the 'version_info' from this module.
17
17
  del namedtuple, _version_info, parts
18
18
 
19
- __version__ = "0.8.0"
19
+ __version__ = "0.8.2"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: outleap
3
- Version: 0.8.0
3
+ Version: 0.8.2
4
4
  Summary: Tools for using asyncio to control a Second Life viewer over the LEAP protocol
5
5
  Author-email: Salad Dais <83434023+SaladDais@users.noreply.github.com>
6
6
  License: MIT License
@@ -6,27 +6,27 @@ from . import BaseClientTest
6
6
 
7
7
 
8
8
  class TestWrappers(BaseClientTest):
9
+ async def _fake_acks(self, start: int, end: int):
10
+ for i in range(start, end):
11
+ await asyncio.sleep(0.05)
12
+ self.protocol.inbound_messages.put_nowait(
13
+ {
14
+ "pump": "reply_pump",
15
+ "data": {
16
+ "handled": True,
17
+ "reqid": i,
18
+ },
19
+ }
20
+ )
21
+
9
22
  async def test_mouse_click(self):
10
23
  self._write_welcome()
11
24
  await self.client.connect()
12
25
  llwindow_api = outleap.LLWindowAPI(self.client)
13
26
 
14
- async def _fake_acks():
15
- for i in range(1, 3):
16
- await asyncio.sleep(0.05)
17
- self.protocol.inbound_messages.put_nowait(
18
- {
19
- "pump": "reply_pump",
20
- "data": {
21
- "handled": True,
22
- "reqid": i,
23
- },
24
- }
25
- )
26
-
27
27
  # Make sure the request looks like what we'd expect
28
28
  fut = llwindow_api.mouse_click(x=0, y=1, mask=["CTL"], button="LEFT")
29
- await asyncio.gather(fut, _fake_acks())
29
+ await asyncio.gather(fut, self._fake_acks(1, 3))
30
30
  self.assertDictEqual(
31
31
  {
32
32
  "pump": "LLWindow",
@@ -50,9 +50,14 @@ class TestWrappers(BaseClientTest):
50
50
  llwindow_api = outleap.LLWindowAPI(self.client)
51
51
 
52
52
  # Make sure the request looks like what we'd expect
53
- llwindow_api.key_press(char="f", mask=["CTL"])
53
+ fut = llwindow_api.key_press(char="f", mask=["CTL"])
54
+ await asyncio.gather(fut, self._fake_acks(1, 3))
55
+
54
56
  self.assertDictEqual(
55
- {"pump": "LLWindow", "data": {"char": "f", "mask": ["CTL"], "op": "keyUp"}},
57
+ {
58
+ "pump": "LLWindow",
59
+ "data": {"char": "f", "mask": ["CTL"], "op": "keyUp", "reply": "reply_pump", "reqid": 2},
60
+ },
56
61
  self.protocol.sent_messages[-1],
57
62
  )
58
63
  self.assertEqual(2, len(self.protocol.sent_messages[-1]))
@@ -62,7 +67,9 @@ class TestWrappers(BaseClientTest):
62
67
  await self.client.connect()
63
68
 
64
69
  llwindow_api = outleap.LLWindowAPI(self.client)
65
- llwindow_api.key_down(char="f", path=outleap.UIPath.for_floater("foo") / "bar_elem")
70
+ fut = llwindow_api.key_down(char="f", path=outleap.UIPath.for_floater("foo") / "bar_elem")
71
+ await asyncio.gather(fut, self._fake_acks(1, 2))
72
+
66
73
  self.assertDictEqual(
67
74
  {
68
75
  "pump": "LLWindow",
@@ -70,6 +77,8 @@ class TestWrappers(BaseClientTest):
70
77
  "char": "f",
71
78
  "path": "/main_view/menu_stack/world_panel/Floater View/foo/bar_elem",
72
79
  "op": "keyDown",
80
+ "reply": "reply_pump",
81
+ "reqid": 1,
73
82
  },
74
83
  },
75
84
  self.protocol.sent_messages[-1],
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