llumo 0.2.14b4__py3-none-any.whl → 0.2.14b5__py3-none-any.whl

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.
llumo/sockets.py CHANGED
@@ -17,8 +17,8 @@ class LlumoSocketClient:
17
17
 
18
18
  # Initialize client
19
19
  self.sio = socketio.Client(
20
- logger=False,
21
- engineio_logger=False,
20
+ logger=True,
21
+ engineio_logger=True,
22
22
  reconnection=True,
23
23
  reconnection_attempts=10,
24
24
  reconnection_delay=1,
@@ -49,7 +49,10 @@ class LlumoSocketClient:
49
49
  self._last_update_time = time.time()
50
50
 
51
51
  # ✅ Stop if all expected results are received
52
- if self._expected_results and len(self._received_data) >= self._expected_results:
52
+ if (
53
+ self._expected_results
54
+ and len(self._received_data) >= self._expected_results
55
+ ):
53
56
  # print("✅ All expected results received.")
54
57
  self._listening_done.set()
55
58
 
@@ -81,13 +84,17 @@ class LlumoSocketClient:
81
84
  start = time.time()
82
85
  while not self.sio.connected:
83
86
  if time.time() - start > timeout:
84
- raise RuntimeError("Timed out waiting for low-level socket connection.")
87
+ raise RuntimeError(
88
+ "Timed out waiting for low-level socket connection."
89
+ )
85
90
  time.sleep(0.1)
86
91
  # print("[DEBUG] SocketIO low-level connection established.")
87
92
 
88
93
  # Wait for server "connection-established" event
89
94
  if not self._connection_established.wait(timeout):
90
- raise RuntimeError("Timed out waiting for connection-established event.")
95
+ raise RuntimeError(
96
+ "Timed out waiting for connection-established event."
97
+ )
91
98
 
92
99
  self._connected = True
93
100
  self._last_update_time = time.time()
@@ -100,7 +107,9 @@ class LlumoSocketClient:
100
107
  self._connected = False
101
108
  raise RuntimeError(f"WebSocket connection failed: {e}")
102
109
 
103
- def listenForResults(self, min_wait=30, max_wait=300, inactivity_timeout=50, expected_results=None):
110
+ def listenForResults(
111
+ self, min_wait=30, max_wait=300, inactivity_timeout=50, expected_results=None
112
+ ):
104
113
  # if not self._connected:
105
114
  # raise RuntimeError("WebSocket is not connected. Call connect() first.")
106
115
 
@@ -129,8 +138,6 @@ class LlumoSocketClient:
129
138
  self._listening_done.set()
130
139
  break
131
140
 
132
-
133
-
134
141
  timeout_thread = threading.Thread(target=timeout_watcher, daemon=True)
135
142
  timeout_thread.start()
136
143
  self._listening_done.wait()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: llumo
3
- Version: 0.2.14b4
3
+ Version: 0.2.14b5
4
4
  Summary: Python SDK for interacting with the Llumo ai API.
5
5
  Home-page: https://www.llumo.ai/
6
6
  Author: Llumo
@@ -5,9 +5,9 @@ llumo/execution.py,sha256=x88wQV8eL99wNN5YtjFaAMCIfN1PdfQVlAZQb4vzgQ0,1413
5
5
  llumo/functionCalling.py,sha256=D5jYapu1rIvdIJNUYPYMTyhQ1H-6nkwoOLMi6eekfUE,7241
6
6
  llumo/helpingFuntions.py,sha256=9aFvBNPB-AyeMs6c8YpdPckNeF95thmTqAAmYC1q4oo,20320
7
7
  llumo/models.py,sha256=YH-qAMnShmUpmKE2LQAzQdpRsaXkFSlOqMxHwU4zBUI,1560
8
- llumo/sockets.py,sha256=Rlww5z9w_Ij99Z_VzgpF93K9gSZ5YaS4A8oAY0jS1wA,5650
9
- llumo-0.2.14b4.dist-info/licenses/LICENSE,sha256=tF9yAcfPV9xGT3ViWmC8hPvOo8BEk4ZICbUfcEo8Dlk,182
10
- llumo-0.2.14b4.dist-info/METADATA,sha256=mmsv1MSuhdFIkxYvhhpYIhFLZKs5U2lA87ND2D8WK8A,1521
11
- llumo-0.2.14b4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
12
- llumo-0.2.14b4.dist-info/top_level.txt,sha256=d5zUTMI99llPtLRB8rtSrqELm_bOqX-bNC5IcwlDk88,6
13
- llumo-0.2.14b4.dist-info/RECORD,,
8
+ llumo/sockets.py,sha256=ox7gfYKPqfeufjJPrEdK4WFrj0hFoMnfrFTPkRYysqg,5804
9
+ llumo-0.2.14b5.dist-info/licenses/LICENSE,sha256=tF9yAcfPV9xGT3ViWmC8hPvOo8BEk4ZICbUfcEo8Dlk,182
10
+ llumo-0.2.14b5.dist-info/METADATA,sha256=oB9mvp7SsvdX41Ig2AWqah-7Ym7MxZjRgYHkQCXkYQo,1521
11
+ llumo-0.2.14b5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
12
+ llumo-0.2.14b5.dist-info/top_level.txt,sha256=d5zUTMI99llPtLRB8rtSrqELm_bOqX-bNC5IcwlDk88,6
13
+ llumo-0.2.14b5.dist-info/RECORD,,