triggerware 0.1.1__tar.gz → 0.1.3__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: triggerware
3
- Version: 0.1.1
3
+ Version: 0.1.3
4
4
  Summary:
5
5
  Author: godofavacyn
6
6
  Author-email: godofavacyn <aidenmeyer@mailbox.org>
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "triggerware"
3
- version = "0.1.1"
3
+ version = "0.1.3"
4
4
  description = ""
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.11"
@@ -39,9 +39,11 @@ class ResultSet[T](TriggerwareObject, ResourceRestricted):
39
39
  if 'signature' in eq_result:
40
40
  self.signature = eq_result['signature']
41
41
  if 'batch' in eq_result:
42
- if 'tuples' in eq_result['batch']:
43
- self.cache = eq_result['batch']['tuples']
44
- self.exhausted = self.handle == None
42
+ batch = eq_result['batch']
43
+ if 'tuples' in batch:
44
+ self.cache = batch['tuples']
45
+ if batch.get('exhausted', False) or self.handle is None:
46
+ self.exhausted = True
45
47
 
46
48
  def __aiter__(self) -> "ResultSet[T]":
47
49
  return self
@@ -48,7 +48,8 @@ class TriggerwareClient:
48
48
  Args:
49
49
  uri: The WebSocket URI to connect to.
50
50
  """
51
- uri = "ws://tw-instance-load-balancer-194323221.us-east-2.elb.amazonaws.com"
51
+ # uri = "ws://tw-instance-load-balancer-194323221.us-east-2.elb.amazonaws.com"
52
+ uri = "wss://instances.triggerware.com"
52
53
  json_rpc = await JsonRpcWebSocketConnection.connect(
53
54
  uri,
54
55
  headers={
File without changes