naeural-client 2.6.23__py3-none-any.whl → 2.6.25__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.
naeural_client/_ver.py CHANGED
@@ -1,4 +1,4 @@
1
- __VER__ = "2.6.23"
1
+ __VER__ = "2.6.25"
2
2
 
3
3
  if __name__ == "__main__":
4
4
  with open("pyproject.toml", "rt") as fd:
@@ -2272,10 +2272,9 @@ class GenericSession(BaseDecentrAIObject):
2272
2272
 
2273
2273
  """
2274
2274
 
2275
- ngrok_use_api = True
2275
+ ngrok_use_api = kwargs.pop('ngrok_use_api', True)
2276
2276
  use_ngrok = True
2277
2277
  kwargs.pop('use_ngrok', None)
2278
- kwargs.pop('ngrok_use_api', None)
2279
2278
 
2280
2279
  if ngrok_edge_label is None:
2281
2280
  raise ValueError("The `ngrok_edge_label` parameter is mandatory when creating a balanced web app, in order for all instances to respond to the same URL.")
@@ -2665,6 +2664,7 @@ class GenericSession(BaseDecentrAIObject):
2665
2664
  df_only=False,
2666
2665
  debug=False,
2667
2666
  eth=False,
2667
+ all_info=False,
2668
2668
  ):
2669
2669
  """
2670
2670
  This function will return a Pandas dataframe known nodes in the network based on
@@ -2699,6 +2699,9 @@ class GenericSession(BaseDecentrAIObject):
2699
2699
  eth: bool, optional
2700
2700
  If True, will use the nodes eth addresses instead of internal. Defaults to False.
2701
2701
 
2702
+ all_info: bool, optional
2703
+ If True, will return all the information. Defaults to False.
2704
+
2702
2705
  Returns
2703
2706
  -------
2704
2707
 
@@ -2724,11 +2727,19 @@ class GenericSession(BaseDecentrAIObject):
2724
2727
  'Oracle' : PAYLOAD_DATA.NETMON_IS_SUPERVISOR,
2725
2728
  'Peered' : PAYLOAD_DATA.NETMON_WHITELIST,
2726
2729
  })
2727
- reverse_mapping = {v: k for k, v in mapping.items()}
2730
+ if all_info:
2731
+ mapping = OrderedDict({
2732
+ # we assign dummy integer values to the computed columns
2733
+ # and we will fillter them
2734
+ 'ETH Address': 1,
2735
+ **mapping
2736
+ })
2728
2737
  res = OrderedDict()
2729
2738
  for k in mapping:
2730
2739
  res[k] = []
2731
2740
 
2741
+ reverse_mapping = {v: k for k, v in mapping.items()}
2742
+
2732
2743
  result, elapsed = self.__wait_for_supervisors_net_mon_data(
2733
2744
  supervisor=supervisor,
2734
2745
  timeout=timeout,
@@ -2760,6 +2771,8 @@ class GenericSession(BaseDecentrAIObject):
2760
2771
  if supervisors_only and not is_supervisor:
2761
2772
  continue
2762
2773
  for key, column in reverse_mapping.items():
2774
+ if isinstance(key, int):
2775
+ continue
2763
2776
  val = node_info.get(key, None)
2764
2777
  if key == PAYLOAD_DATA.NETMON_LAST_REMOTE_TIME:
2765
2778
  # val hols a string '2024-12-23 23:50:16.462155' and must be converted to a datetime
@@ -2773,7 +2786,10 @@ class GenericSession(BaseDecentrAIObject):
2773
2786
  # again self.get_node_name(best_super) might not work if using the hb data
2774
2787
  best_super_alias = node_info.get(PAYLOAD_DATA.NETMON_EEID, None)
2775
2788
  val = self.bc_engine._add_prefix(val)
2776
- if eth:
2789
+ if all_info:
2790
+ val_eth = self.bc_engine.node_address_to_eth_address(val)
2791
+ res['ETH Address'].append(val_eth)
2792
+ elif eth:
2777
2793
  val = self.bc_engine.node_address_to_eth_address(val)
2778
2794
  elif key == PAYLOAD_DATA.NETMON_WHITELIST:
2779
2795
  val = client_is_allowed
naeural_client/bc/base.py CHANGED
@@ -621,6 +621,7 @@ class BaseBlockEngine:
621
621
  address = self._remove_prefix(address)
622
622
  address = BCct.ADDR_PREFIX + address
623
623
  return address
624
+
624
625
 
625
626
 
626
627
  def _pk_to_address(self, public_key):
@@ -915,6 +916,23 @@ class BaseBlockEngine:
915
916
  the address without the prefix.
916
917
  """
917
918
  return self._remove_prefix(address)
919
+
920
+
921
+ def maybe_add_prefix(self, address):
922
+ """
923
+ Adds the prefix to the address
924
+
925
+ Parameters
926
+ ----------
927
+ address : str
928
+ the text address.
929
+
930
+ Returns
931
+ -------
932
+ address : str
933
+ the address with the prefix.
934
+ """
935
+ return self._add_prefix(address)
918
936
 
919
937
 
920
938
  def dict_digest(self, dct_data, return_str=True):
@@ -1,7 +1,8 @@
1
1
  from naeural_client.cli.nodes import (
2
2
  get_nodes, get_supervisors,
3
- restart_node, shutdown_node
3
+ restart_node, shutdown_node,
4
4
  )
5
+ from naeural_client.cli.oracles import get_availability
5
6
  from naeural_client.utils.config import show_config, reset_config, show_address
6
7
 
7
8
 
@@ -17,12 +18,25 @@ CLI_COMMANDS = {
17
18
  "--online" : "Get only online nodes as seen by a active supervisor (flag)", # DONE
18
19
  "--peered": "Get only peered nodes - ie nodes that can be used by current client address (flag)", # DONE
19
20
  "--supervisor" : "Use a specific supervisor node",
20
- "--eth": "Use a specific node (flag)",
21
+ "--eth" : "Use a specific node (flag)",
22
+ "--wide" : "Display all available information (flag)",
21
23
  }
22
24
  },
23
25
  "supervisors": {
24
26
  "func": get_supervisors, # DONE
25
27
  },
28
+ "avail": {
29
+ "func": get_availability,
30
+ "params": {
31
+ ### use "(flag)" at the end of the description to indicate a boolean flag
32
+ ### otherwise it will be treated as a str parameter
33
+ "node": "The ETH address of the node to be checked via the oracle network.",
34
+ "--start": "The start epoch number to check the availability from",
35
+ "--end": "The end epoch number to check the availability to",
36
+ "--json": "Enable full JSON oracle network output (flag)",
37
+ "--rounds": "The number of rounds to check the availability for testing purposes (default=1)",
38
+ }
39
+ }
26
40
  },
27
41
  "config": {
28
42
  "show": {
@@ -11,6 +11,7 @@ def _get_netstats(
11
11
  supervisors_only=False,
12
12
  return_session=False,
13
13
  eth=False,
14
+ all_info=False
14
15
  ):
15
16
  t1 = time()
16
17
  from naeural_client import Session
@@ -19,6 +20,7 @@ def _get_netstats(
19
20
  online_only=online_only, allowed_only=allowed_only, supervisor=supervisor,
20
21
  supervisors_only=supervisors_only,
21
22
  eth=eth,
23
+ all_info=all_info,
22
24
  )
23
25
  df = dct_info[SESSION_CT.NETSTATS_REPORT]
24
26
  supervisor = dct_info[SESSION_CT.NETSTATS_REPORTER]
@@ -31,6 +33,7 @@ def _get_netstats(
31
33
  return df, supervisor, super_alias, nr_supers, elapsed
32
34
 
33
35
 
36
+
34
37
  def get_nodes(args):
35
38
  """
36
39
  This function is used to get the information about the nodes and it will perform the following:
@@ -40,7 +43,8 @@ def get_nodes(args):
40
43
  3. Wait for the second net mon message via Session and show progress.
41
44
  4. Get the active nodes union via Session and display the nodes marking those peered vs non-peered.
42
45
  """
43
- supervisor_addr = args.supervisor
46
+ supervisor_addr = args.supervisor
47
+ wide = args.wide
44
48
  if args.verbose:
45
49
  log_with_color(f"Getting nodes from supervisor <{supervisor_addr}>...", color='b')
46
50
 
@@ -50,6 +54,7 @@ def get_nodes(args):
50
54
  allowed_only=args.peered,
51
55
  supervisor=supervisor_addr,
52
56
  eth=args.eth,
57
+ all_info=wide,
53
58
  )
54
59
  df, supervisor, super_alias, nr_supers, elapsed = res
55
60
  if args.online:
@@ -150,4 +155,5 @@ def shutdown_node(args):
150
155
  node = args.node
151
156
  log_with_color(f"Attempting to shutdown node <{node}>", color='b')
152
157
  _send_command_to_node(args, COMMANDS.SHUTDOWN)
153
- return
158
+ return
159
+
@@ -0,0 +1,165 @@
1
+ """
2
+
3
+
4
+ NOTE: if any of oracles return data["result"]["oracle"]["manager"]["valid"] != True then
5
+ - ommit that oracle from the list of oracles shown
6
+ - display red warning containing the issue and the "certainty"
7
+
8
+ >nepctl get avail 0x693369781001bAC65F653856d0C00fA62129F407 --start 4 --end 6 --rounds 8
9
+
10
+ Availability of node <0x693369781001bAC65F653856d0C00fA62129F407> from epoch 4 to epoch 6 on 8 rounds:
11
+ Oracle #1:
12
+ Address: 0xai_AleLPKqUHV-iPc-76-rUvDkRWW4dFMIGKW1xFVcy65nH
13
+ ETH Addr: 0xE486F0d594e9F26931fC10c29E6409AEBb7b5144
14
+ Alias: nen-aid01
15
+ Responses: 3
16
+ Epochs: [ 4, 5, 6]
17
+ Avails: [ 3, 254, 127]
18
+ Cartainty: [0.99, 0.99, 0.99]
19
+ Oracle #2:
20
+ Address: 0xai_Amfnbt3N-qg2-qGtywZIPQBTVlAnoADVRmSAsdDhlQ-6
21
+ ETH Addr: 0x129a21A78EBBA79aE78B8f11d5B57102950c1Fc0
22
+ Alias: nen-2
23
+ Responses: 2
24
+ Epochs: [ 4, 5, 6]
25
+ Avails: [ 3, 254, 127]
26
+ Cartainty: [0.99, 0.99, 0.99]
27
+ Oracle #3: [RED due to not data["result"]["oracle"]["manager"]["valid"]]
28
+ WARNING: Oracle returned invalid data due to uncertainity
29
+ Address: 0xai_A-Bn9grkqH1GUMTZUqHNzpX5DA6PqducH9_JKAlBx6YL
30
+ ETH Addr: 0x93B04EF1152D81A0847C2272860a8a5C70280E14
31
+ Alias: nen-aid02
32
+ Responses: 3
33
+ Epochs: [ 4, 5, 6]
34
+ Avails: [ 3, 0, 127]
35
+ Cartainty: [0.99, 0.41, 0.99]
36
+
37
+
38
+ >nepctl get avail 0x693369781001bAC65F653856d0C00fA62129F407 --start 4 --end 6 --rounds 8
39
+
40
+ Availability of node <0x693369781001bAC65F653856d0C00fA62129F407> from epoch 4 to epoch 6 on 8 rounds:
41
+ Oracle #1:
42
+ Address: 0xai_AleLPKqUHV-iPc-76-rUvDkRWW4dFMIGKW1xFVcy65nH
43
+ ETH Addr: 0xE486F0d594e9F26931fC10c29E6409AEBb7b5144
44
+ Alias: nen-aid01
45
+ Responses: 3
46
+ Avails: [3, 254, 127]
47
+ Oracle #2:
48
+ Address: 0xai_Amfnbt3N-qg2-qGtywZIPQBTVlAnoADVRmSAsdDhlQ-6
49
+ ETH Addr: 0x129a21A78EBBA79aE78B8f11d5B57102950c1Fc0
50
+ Alias: nen-2
51
+ Responses: 3
52
+ Avails: [3, 254, 127]
53
+ Oracle #3:
54
+ Address: 0xai_A-Bn9grkqH1GUMTZUqHNzpX5DA6PqducH9_JKAlBx6YL
55
+ ETH Addr: 0x93B04EF1152D81A0847C2272860a8a5C70280E14
56
+ Alias: nen-aid02
57
+ Responses: 3
58
+ Avails: [3, 254, 127]
59
+
60
+
61
+
62
+ >nepctl get avail 0x693369781001bAC65F653856d0C00fA62129F407 --start 4 --end 6 --rounds 8
63
+ [if same oracle returns different avail dump the two confligting json with RED and stop command]
64
+
65
+ >nepctl get avail 0x693369781001bAC65F653856d0C00fA62129F407 --start 4 --end 6 --full
66
+ [just dump json]
67
+
68
+
69
+ >nepctl get avail 0x693369781001bAC65F653856d0C00fA62129F407 --start 4 --end 6
70
+ Availability of node <0x693369781001bAC65F653856d0C00fA62129F407> from epoch 4 to epoch 6:
71
+ Oracle address: 0xE486F0d594e9F26931fC10c29E6409AEBb7b5144
72
+ Oracle alias: nen-aid01
73
+ Oracle report:
74
+ - Epoch #4: 127 ( 50%)
75
+ - Epoch #5: 254 (100%)
76
+ - Epoch #6: 3 ( 1%)
77
+
78
+ >nepctl get avail 0x693369781001bAC65F653856d0C00fA62129F407 # assuming current epoch is 10
79
+ Availability of node <0x693369781001bAC65F653856d0C00fA62129F407> from epoch 1 to epoch 9:
80
+ Oracle address: 0xE486F0d594e9F26931fC10c29E6409AEBb7b5144
81
+ Oracle alias: nen-aid01
82
+ Oracle report:
83
+ - Epoch #1: 127 ( 50%)
84
+ - Epoch #2: 127 ( 50%)
85
+ - Epoch #3: 127 ( 50%)
86
+ - Epoch #4: 127 ( 50%)
87
+ - Epoch #5: 254 (100%)
88
+ - Epoch #6: 3 ( 1%)
89
+ - Epoch #7: 64 ( 25%)
90
+ - Epoch #8: 33 ( 13%)
91
+ - Epoch #9: 254 (100%)
92
+
93
+
94
+ TODO: (future)
95
+ - check ETH signature of the oracle data
96
+
97
+ """
98
+ import requests
99
+
100
+ from naeural_client.utils.config import log_with_color
101
+ from naeural_client import Logger
102
+ from naeural_client.bc import DefaultBlockEngine
103
+ from naeural_client.utils.oracle_sync.multiple_requests import oracle_tester_init, handle_command_results
104
+
105
+ """
106
+ TODOs:
107
+ - test NEPCTL command in CLI too
108
+ - check ETH signature of the oracle data
109
+ """
110
+
111
+
112
+ def _check_response(data):
113
+ res = True
114
+ log = Logger("NEPCTL", base_folder=".", app_folder="_local_cache", silent=True)
115
+ bc = DefaultBlockEngine(name='test', log=log)
116
+ print(bc.address)
117
+ return res
118
+
119
+ def get_availability(args):
120
+ """
121
+ This function is used to get the availability of the node.
122
+
123
+ Parameters
124
+ ----------
125
+ args : argparse.Namespace
126
+ Arguments passed to the function.
127
+ """
128
+
129
+ node = args.node
130
+ start = args.start or 1
131
+ end = args.end
132
+ full = args.json
133
+ rounds = args.rounds or 1
134
+ if str(rounds).isnumeric() and int(rounds) > 0:
135
+ rounds = int(rounds)
136
+ else:
137
+ log_with_color("`rounds` must be a positive integer. Setting rounds to 1.", color='r')
138
+ rounds = 1
139
+ # endif rounds
140
+
141
+ if isinstance(rounds, int) and rounds > 10:
142
+ log_with_color("Rounds exceed the maximum limit of 10. Setting rounds to 10.", color='r')
143
+ rounds = min(rounds, 10)
144
+
145
+ if full:
146
+ if rounds > 1:
147
+ log_with_color("Cannot generate full JSON oracle network output in 'rounds' mode.", color='r')
148
+ full = False
149
+ # endif full
150
+
151
+ tester = oracle_tester_init()
152
+ log_with_color("Checking {}availability of node <{}> from {} to {}.".format(
153
+ "(DEBUG MODE) " if rounds > 1 else "", node, start,
154
+ end if end else "last epoch"
155
+ ), color='b'
156
+ )
157
+ res = tester.execute_command(
158
+ node_eth_addr=node,
159
+ start=start,
160
+ end=end,
161
+ rounds=rounds,
162
+ debug=full
163
+ )
164
+ handle_command_results(res)
165
+ return
@@ -0,0 +1,580 @@
1
+ import requests
2
+ import time
3
+ import json
4
+ from collections import defaultdict
5
+
6
+ from naeural_client import Logger
7
+ from naeural_client.bc import DefaultBlockEngine
8
+ from naeural_client.utils.config import log_with_color
9
+
10
+
11
+ class OracleTesterConstants:
12
+ BASE_URL = "https://naeural-oracle.ngrok.app"
13
+ TEST_ENDPOINT = "/node_epochs_range"
14
+ CURRENT_EPOCH_ENDPOINT = "/current_epoch"
15
+ ACTIVE_NODES_ENDPOINT = "/active_nodes_list"
16
+ DEFAULT_INTERVAL_SECONDS = 5
17
+ DEFAULT_COMMAND_INTERVAL_SECONDS = 1
18
+ MAX_REQUEST_ROUNDS = 10
19
+ FREQUENCY = "frequency"
20
+ ORACLE_DATA = "oracle_data"
21
+
22
+
23
+ ct = OracleTesterConstants
24
+
25
+
26
+ class OracleTester:
27
+ def __init__(
28
+ self, bce, log,
29
+ max_requests_rounds=ct.MAX_REQUEST_ROUNDS,
30
+ interval_seconds=ct.DEFAULT_INTERVAL_SECONDS
31
+ ):
32
+ self.bc = bce
33
+ self.log = log
34
+ self.BASE_URL = ct.BASE_URL
35
+ self.TEST_ENDPOINT = ct.TEST_ENDPOINT
36
+ self.CURRENT_EPOCH_ENDPOINT = ct.CURRENT_EPOCH_ENDPOINT
37
+ self.ACTIVE_NODES_ENDPOINT = ct.ACTIVE_NODES_ENDPOINT
38
+ self.request_rounds = 0
39
+ self.max_request_rounds = max_requests_rounds
40
+ self.interval_seconds = interval_seconds
41
+
42
+ self.node_addr_to_alias = {}
43
+ self.alias_to_node_addr = {}
44
+ self.node_eth_addr_to_alias = {}
45
+ self.alias_to_node_eth_addr = {}
46
+ self.node_addr_to_node_eth_addr = {}
47
+ self.node_eth_addr_to_node_addr = {}
48
+ return
49
+
50
+ """UTILS"""
51
+ if True:
52
+ def maybe_register_node(self, node_addr: str, eth_address: str, alias: str = None):
53
+ if node_addr is None:
54
+ return
55
+ self.node_addr_to_alias[node_addr] = alias
56
+ self.node_eth_addr_to_alias[eth_address] = alias
57
+
58
+ self.node_addr_to_node_eth_addr[node_addr] = eth_address
59
+ self.node_eth_addr_to_node_addr[eth_address] = node_addr
60
+
61
+ if alias is None:
62
+ return
63
+
64
+ self.alias_to_node_addr[alias] = node_addr
65
+ self.alias_to_node_eth_addr[alias] = eth_address
66
+ return
67
+
68
+ def make_request(self, request_url, request_kwargs=None, debug=False):
69
+ request_kwargs = request_kwargs or {}
70
+ try:
71
+ if debug:
72
+ self.P(f"Making request to {request_url} with kwargs: {request_kwargs}")
73
+ response = requests.get(request_url, params=request_kwargs)
74
+ response.raise_for_status() # Raise an HTTPError if the status is not 2xx
75
+ return response.json() # Assuming the response is JSON
76
+ except requests.RequestException as e:
77
+ self.P(f"Request failed: {e}")
78
+ return None
79
+
80
+ def done(self, rounds=None):
81
+ if rounds is not None:
82
+ return self.request_rounds >= rounds
83
+ return self.request_rounds >= self.max_request_rounds
84
+
85
+ def P(self, msg, **kwargs):
86
+ self.log.P(msg, **kwargs)
87
+ return
88
+
89
+ def frequency_dict_to_str(self, freq_dict):
90
+ return '\n'.join([
91
+ f"\t{self.node_addr_to_alias.get(node_addr)} ({node_addr}): {freq}"
92
+ for node_addr, freq in freq_dict.items()
93
+ ])
94
+ """END UTILS"""
95
+
96
+ """RESPONSE HANDLING"""
97
+ if True:
98
+ def compute_epochs_availability_and_certainty(self, result: dict):
99
+ """
100
+ Compute the availability and certainty for a given result extracted from the response.
101
+ Parameters
102
+ ----------
103
+ result : dict
104
+ The result extracted from the response.
105
+
106
+ Returns
107
+ -------
108
+ tuple
109
+ A tuple containing the availability and certainty values.
110
+ """
111
+ epoch_ids = result.get("epochs")
112
+ epoch_vals = result.get("epochs_vals")
113
+ dict_certainty = result.get("oracle", {}).get("manager", {}).get("certainty", {})
114
+ is_valid = result.get("oracle", {}).get("manager", {}).get("valid", False)
115
+
116
+ current_epochs, current_avails, current_cert = [], [], []
117
+ for epoch_id, epoch_val in zip(epoch_ids, epoch_vals):
118
+ current_epochs.append(epoch_id)
119
+ current_avails.append(epoch_val)
120
+ current_cert.append(dict_certainty.get(str(epoch_id), 0))
121
+ # endfor epochs
122
+ return current_epochs, current_avails, current_cert, is_valid
123
+
124
+ def handle_server_data(
125
+ self, oracle_stats_dict: dict,
126
+ sender: str, sender_eth_addr: str, sender_node_alias: str,
127
+ result: dict
128
+ ):
129
+ """
130
+ Handle the data received from the oracle server.
131
+
132
+ Parameters
133
+ ----------
134
+ oracle_stats_dict : dict
135
+ The dictionary containing the oracle data received so far.
136
+ sender : str
137
+ The address of the sender.
138
+ sender_eth_addr : str
139
+ The ETH address of the sender.
140
+ sender_node_alias : str
141
+ The alias of the sender.
142
+ result : dict
143
+ The result extracted from the response.
144
+ """
145
+ if sender not in oracle_stats_dict:
146
+ oracle_stats_dict[sender] = {
147
+ 'addr': sender,
148
+ 'eth_addr': sender_eth_addr,
149
+ 'alias': sender_node_alias,
150
+ 'errors': []
151
+ }
152
+ # endif first time for this sender
153
+ current_stats = oracle_stats_dict[sender]
154
+ current_epochs, current_avails, current_certs, is_valid = self.compute_epochs_availability_and_certainty(result)
155
+ stats_epochs = current_stats.get("epochs", None)
156
+ stats_avails = current_stats.get("avails", None)
157
+ stats_certs = current_stats.get("certs", None)
158
+ stats_is_valid = current_stats.get("is_valid", None)
159
+ mismatches = []
160
+ if stats_epochs is not None and current_epochs != stats_epochs:
161
+ mismatches.append(f"epochs: {current_epochs} != {stats_epochs}")
162
+ # endif check for mismatch
163
+ if stats_avails is not None and current_avails != stats_avails:
164
+ mismatches.append(f"avails: {current_avails} != {stats_avails}")
165
+ # endif check for mismatch
166
+ if stats_certs is not None and current_certs != stats_certs:
167
+ mismatches.append(f"certainty: {current_certs} != {stats_certs}")
168
+ # endif check for mismatch
169
+ if stats_is_valid is not None and is_valid != stats_is_valid:
170
+ mismatches.append(f"validity: {is_valid} != {stats_is_valid}")
171
+ # endif check for mismatch
172
+
173
+ if len(mismatches) > 0:
174
+ current_stats["errors"].append(f"Round {self.request_rounds}: {', '.join(mismatches)}")
175
+ else:
176
+ # Valid data received
177
+ if stats_epochs is None:
178
+ current_stats["epochs"] = current_epochs
179
+ if stats_avails is None:
180
+ current_stats["avails"] = current_avails
181
+ if stats_certs is None:
182
+ current_stats["certs"] = current_certs
183
+ if stats_is_valid is None:
184
+ current_stats["is_valid"] = is_valid
185
+ # endif valid data received
186
+ return
187
+
188
+ def add_to_stats(
189
+ self,
190
+ stats_dict: dict,
191
+ response: dict,
192
+ node_data: dict,
193
+ debug=False
194
+ ):
195
+ node_eth_addr = node_data["eth_address"]
196
+ node_addr = node_data.get("address")
197
+ node_alias = node_data.get("alias")
198
+ self.maybe_register_node(node_addr=node_addr, eth_address=node_eth_addr, alias=node_alias)
199
+ result = response.get("result")
200
+ if not result:
201
+ return
202
+ sender = result.get("EE_SENDER")
203
+ sender_eth_addr = result.get("EE_ETH_SENDER")
204
+ sender_node_alias = result.get("server_alias")
205
+ self.maybe_register_node(node_addr=sender, eth_address=sender_eth_addr, alias=sender_node_alias)
206
+ if node_eth_addr not in stats_dict:
207
+ stats_dict[node_eth_addr] = {
208
+ **node_data,
209
+ ct.FREQUENCY: {},
210
+ ct.ORACLE_DATA: {}
211
+ }
212
+ # endif first time for this node
213
+ stats_dict[node_eth_addr][ct.FREQUENCY][sender] = stats_dict[node_eth_addr][ct.FREQUENCY].get(sender, 0) + 1
214
+
215
+ self.handle_server_data(
216
+ oracle_stats_dict=stats_dict[node_eth_addr][ct.ORACLE_DATA],
217
+ sender=sender,
218
+ sender_eth_addr=sender_eth_addr,
219
+ sender_node_alias=sender_node_alias,
220
+ result=result
221
+ )
222
+
223
+ return stats_dict
224
+ """END RESPONSE HANDLING"""
225
+
226
+ def gather(self, nodes, request_kwargs=None, debug=False, rounds=None):
227
+ """
228
+ Gather data from the oracle server for the given nodes.
229
+
230
+ Parameters
231
+ ----------
232
+ nodes : list[dict] or list[str]
233
+ The list of nodes for which to gather data. Each node can be a dictionary containing the
234
+ address, eth_address, and alias of the node or a string containing the eth_address of the node.
235
+ Either way, the eth_address is required.
236
+ request_kwargs : dict
237
+ The request kwargs to be used for the request. Default None.
238
+ debug : bool
239
+ Whether to enable debug mode or not. If enabled the function will exit after one request round.
240
+
241
+ Returns
242
+ -------
243
+ tuple
244
+ A tuple containing the responses and the stats dictionary.
245
+ """
246
+ responses = []
247
+ request_kwargs = request_kwargs or {}
248
+ stats_dict = {}
249
+ self.request_rounds = 0
250
+ while not self.done(rounds):
251
+ try:
252
+ self.P(f'Starting request round {self.request_rounds + 1} for {len(nodes)} nodes...')
253
+ current_url = self.BASE_URL + self.TEST_ENDPOINT
254
+ # TODO: maybe shuffle the nodes list in order to avoid
255
+ # the same order of requests in each round
256
+ # relevant if the number of nodes is divisible by the number of oracles.
257
+ for node_data in nodes:
258
+ if isinstance(node_data, str):
259
+ node_data = {"eth_address": node_data}
260
+ # endif only eth address provided
261
+ eth_addr = node_data.get("eth_address", "N/A")
262
+ node_alias = node_data.get("alias", eth_addr)
263
+ node_addr = node_data.get("address", eth_addr)
264
+ self.P(f'\tRequesting data for {node_alias}...')
265
+ current_kwargs = {
266
+ "eth_node_addr": eth_addr,
267
+ **request_kwargs
268
+ }
269
+ response = self.make_request(current_url, request_kwargs=current_kwargs, debug=debug)
270
+ if response:
271
+ responses.append(response)
272
+ str_sender = response.get("node_addr")
273
+ self.P(f"Received response from {str_sender} with keys: {response.get('result').keys()}")
274
+ stats_dict = self.add_to_stats(
275
+ stats_dict=stats_dict,
276
+ response=response,
277
+ node_data=node_data,
278
+ debug=debug
279
+ )
280
+ if debug:
281
+ self.P(f'Full response: {response}')
282
+ else:
283
+ self.P(f"Request failed for {node_data['alias']}")
284
+ # endfor nodes
285
+ except Exception as e:
286
+ self.P(f"Request failed: {e}")
287
+ self.request_rounds += 1
288
+ if debug:
289
+ self.P(f'Debug mode was enabled. Exiting after one request round.')
290
+ break
291
+ time.sleep(self.interval_seconds)
292
+ # endwhile
293
+ self.P(f'Finished gathering data for {len(nodes)} nodes and {self.max_request_rounds}.')
294
+ return responses, stats_dict
295
+
296
+ def get_current_epoch(self):
297
+ epoch_url = self.BASE_URL + self.CURRENT_EPOCH_ENDPOINT
298
+ response = self.make_request(epoch_url)
299
+ if response:
300
+ return response.get("result", {}).get("current_epoch", 1)
301
+ return None
302
+
303
+ def get_active_nodes(self):
304
+ active_nodes_url = self.BASE_URL + self.ACTIVE_NODES_ENDPOINT
305
+ response = self.make_request(active_nodes_url)
306
+ result = []
307
+ if response:
308
+ nodes = response.get("result", {}).get("nodes", {})
309
+ for node_addr, node_data in nodes.items():
310
+ eth_addr = node_data.get("eth_addr", None)
311
+ alias = node_data.get("alias", None)
312
+ if eth_addr is not None:
313
+ result.append({
314
+ "address": node_addr,
315
+ "eth_address": eth_addr,
316
+ "alias": alias
317
+ })
318
+ # endif eth address is not None
319
+ # endfor each node
320
+ # endif response
321
+ return result
322
+
323
+ """LOGGING"""
324
+ if True:
325
+ def check_data(self, oracle_data: dict, node_eth_addr: str):
326
+ valid, msg = True, ""
327
+ if oracle_data is None:
328
+ # If oracle_data is None, either the address was invalid or the servers are down.
329
+ # Will attempt request for current epoch to check the servers status.
330
+ current_epoch = self.get_current_epoch()
331
+ valid = False
332
+ if current_epoch is None:
333
+ msg = f"Failed to get the current epoch. No oracle available. Please try again later."
334
+ else:
335
+ msg = f"No data available for {node_eth_addr}. Please check the address or contact support."
336
+ # endif servers available
337
+ # endif oracle_data is None
338
+ return valid, msg
339
+
340
+ def get_availability_str_for_one_round(
341
+ self, node_eth_addr: str, start: int, end: int, stats_dict: dict
342
+ ):
343
+ oracle_data = stats_dict.get(node_eth_addr, {}).get(ct.ORACLE_DATA, None)
344
+ valid, msg = self.check_data(oracle_data, node_eth_addr)
345
+ if not valid:
346
+ return msg
347
+
348
+ msg = f'Availability for <{node_eth_addr}> from epoch {start} to epoch {end}:\n'
349
+ sender_addr = list(oracle_data.keys())[0]
350
+ sender_data = oracle_data[sender_addr]
351
+ oracle_addr = sender_data.get("addr", None)
352
+ oracle_addr_eth = sender_data.get("eth_addr", None)
353
+ oracle_alias = sender_data.get("alias", None)
354
+ msg += f' Oracle address: {oracle_addr}\n'
355
+ msg += f' Oracle ETH addr: {oracle_addr_eth}\n'
356
+ msg += f' Oracle alias: {oracle_alias}\n'
357
+ msg += f' Oracle responses:\n'
358
+ epochs = sender_data.get("epochs", None)
359
+ avails = sender_data.get("avails", None)
360
+ certs = sender_data.get("certs", None)
361
+ if epochs is None or avails is None or certs is None:
362
+ msg = f"No data available for {node_eth_addr}. Please check the address or contact support."
363
+ else:
364
+ for epoch, avail, cert in zip(epochs, avails, certs):
365
+ msg += f" - Epoch {f'#{epoch}':>4}: {avail:3} ({cert * 100:5.1f}%)\n"
366
+ # endif data available
367
+ return msg
368
+
369
+ def get_availability_str_for_multiple_rounds(
370
+ self,
371
+ node_eth_addr: str, start: int, end: int, stats_dict: dict, rounds: int
372
+ ):
373
+ oracle_data = stats_dict.get(node_eth_addr, {}).get(ct.ORACLE_DATA, None)
374
+ valid, msg = self.check_data(oracle_data, node_eth_addr)
375
+ if not valid:
376
+ return [msg]
377
+ msg_list = [f'Availability for <{node_eth_addr}> from epoch {start} to epoch {end} on {rounds} rounds:\n']
378
+ frequencies = stats_dict.get(node_eth_addr, {}).get(ct.FREQUENCY, {})
379
+ it = 0
380
+ for sender, sender_data in oracle_data.items():
381
+ curr_msg = f'\tOracle #{it + 1}:\n'
382
+ is_valid = sender_data.get("is_valid", False)
383
+ if len(sender_data["errors"]) > 0:
384
+ is_valid = False
385
+ curr_msg += f'\t\t Error!! Same oracle returned different data in different rounds:\n'
386
+ for error in sender_data["errors"]:
387
+ curr_msg += f'\t\t\t {error}\n'
388
+ # endfor errors
389
+ else:
390
+ # No errors
391
+ if not is_valid:
392
+ curr_msg += '\t\t WARNING: Oracle returned invalid data due to uncertainity\n'
393
+ # endif uncertainty
394
+ # endif errors
395
+ color = None if is_valid else 'r'
396
+ str_epochs = ' '.join([f'{epoch:4}' for epoch in sender_data["epochs"]])
397
+ str_avails = ' '.join([f'{avail:4}' for avail in sender_data["avails"]])
398
+ str_certs = ' '.join([f'{cert:4.2f}' for cert in sender_data["certs"]])
399
+ curr_msg += f'\t\t Address: {sender_data["addr"]}\n'
400
+ curr_msg += f'\t\t ETH Addr: {sender_data["eth_addr"]}\n'
401
+ curr_msg += f'\t\t Alias: {sender_data["alias"]}\n'
402
+ curr_msg += f'\t\t Responses: {frequencies.get(sender, 0)}\n'
403
+ curr_msg += f'\t\t Epochs: {str_epochs}\n'
404
+ curr_msg += f'\t\t Avails: {str_avails}\n'
405
+ curr_msg += f'\t\t Certainty: {str_certs}\n'
406
+ msg_list.append((curr_msg, color))
407
+ it += 1
408
+ # endfor oracles
409
+ return msg_list
410
+ """END LOGGING"""
411
+
412
+ def execute_command(
413
+ self, node_eth_addr: str, start: int = 1,
414
+ end: int = None, debug: bool = False,
415
+ rounds: int = 1
416
+ ):
417
+ """
418
+ Execute the command to get the availability of the node on a given epochs interval.
419
+ This can also be used to get the JSON response from the server(with the use of debug=True).
420
+ In case of debug mode, the rounds parameter is ignored(will default to 1).
421
+ In case of multiple rounds, a delay of interval_seconds will be added between each request.
422
+ Parameters
423
+ ----------
424
+ node_eth_addr : str
425
+ The ETH address of the node for which the command will be executed.
426
+ start : int
427
+ The starting epoch for the request.
428
+ end : int
429
+ The ending epoch for the request. If None, the current epoch will be used.
430
+ debug : bool
431
+ Whether to enable debug mode or not. If enabled the rounds parameter is ignored and the
432
+ function will return the JSON response from the server.
433
+ rounds : int
434
+ The number of rounds to be executed. Default 1.
435
+
436
+ Returns
437
+ -------
438
+ dict:
439
+ The JSON response from the server if in debug mode.
440
+ The stats summary if not in debug mode.
441
+ """
442
+ rounds = min(rounds, self.max_request_rounds)
443
+ if end is None:
444
+ current_epoch = self.get_current_epoch()
445
+ if current_epoch is None:
446
+ self.P(f"Failed to get the current epoch. No oracle available. Please try again later.", show=True)
447
+ return
448
+ self.P(f'No end epoch provided. Using current epoch: {current_epoch}', show=True)
449
+ end = self.get_current_epoch() - 1
450
+ # endif end is None
451
+ request_kwargs = {
452
+ "start_epoch": start,
453
+ "end_epoch": end
454
+ }
455
+ responses, stats = self.gather(
456
+ nodes=[node_eth_addr],
457
+ request_kwargs=request_kwargs,
458
+ rounds=1 if debug else rounds,
459
+ )
460
+ if debug:
461
+ return responses[0]
462
+ if rounds > 1:
463
+ return self.get_availability_str_for_multiple_rounds(
464
+ node_eth_addr=node_eth_addr, start=start, end=end, stats_dict=stats, rounds=rounds
465
+ )
466
+
467
+ return self.get_availability_str_for_one_round(
468
+ node_eth_addr=node_eth_addr, start=start, end=end, stats_dict=stats
469
+ )
470
+
471
+ # endclass OracleTester
472
+
473
+ def handle_command_results(res):
474
+ if isinstance(res, dict):
475
+ log_with_color(json.dumps(res, indent=2), color='w')
476
+ elif isinstance(res, list):
477
+ for msg_data in res:
478
+ if isinstance(msg_data, tuple):
479
+ log_with_color(msg_data[0], color=msg_data[1])
480
+ else:
481
+ log_with_color(msg_data, color='w')
482
+ # endfor each message
483
+ else:
484
+ log_with_color(res, color='w')
485
+ return
486
+
487
+ def oracle_tester_init(silent=True, **kwargs):
488
+ log = Logger("R1CTL", base_folder=".", app_folder="_local_cache", silent=silent)
489
+ bc = DefaultBlockEngine(name='R1CTL', log=log)
490
+ tester = OracleTester(
491
+ bce=bc,
492
+ log=log,
493
+ **kwargs
494
+ )
495
+ return tester
496
+
497
+ def test_commands():
498
+ tester = oracle_tester_init()
499
+ start = 78
500
+ end = 85
501
+ node_eth_addr = "<node_eth_address>"
502
+
503
+ # Single round
504
+ tester.P(f'Test single round: Epochs {start} to {end}', show=True)
505
+ res = tester.execute_command(node_eth_addr=node_eth_addr, start=start, end=end)
506
+ handle_command_results(res)
507
+
508
+ # Multiple rounds
509
+ tester.P(f'Test multiple rounds: Epochs {start} to {end}', show=True)
510
+ res = tester.execute_command(node_eth_addr=node_eth_addr, start=start, end=end, rounds=5)
511
+ handle_command_results(res)
512
+
513
+ # Debug mode
514
+ tester.P(f'Test debug mode: Epochs {start} to {end}', show=True)
515
+ res = tester.execute_command(node_eth_addr=node_eth_addr, start=80, end=85, debug=True)
516
+ handle_command_results(res)
517
+ return
518
+
519
+ def oracle_test(N=10):
520
+ import random
521
+
522
+ random.seed(42)
523
+
524
+ tester = oracle_tester_init(
525
+ silent=True,
526
+ interval_seconds=0.2,
527
+ )
528
+ current_epoch = tester.get_current_epoch()
529
+ if current_epoch is None:
530
+ current_epoch = 96
531
+ nodes = tester.get_active_nodes()
532
+ rounds = 5
533
+ max_epochs = 10
534
+ max_nodes = 5
535
+
536
+ for i in range(N):
537
+ node_list = random.sample(nodes, min(len(nodes), max_nodes))
538
+ start = random.randint(1, current_epoch - 1)
539
+ end = random.randint(start, current_epoch - 1)
540
+ end = min(end, start + max_epochs - 1)
541
+
542
+ tester.P(f'Test {i + 1}/{N}: Epochs {start} to {end} with {rounds} rounds:', show=True)
543
+ res = tester.gather(
544
+ nodes=node_list,
545
+ request_kwargs={
546
+ "start_epoch": start,
547
+ "end_epoch": end
548
+ },
549
+ rounds=rounds
550
+ )
551
+
552
+ for node_data in node_list:
553
+ msg_list = tester.get_availability_str_for_multiple_rounds(
554
+ node_eth_addr=node_data['eth_address'], start=start, end=end, stats_dict=res[1], rounds=rounds
555
+ )
556
+ for msg_data in msg_list:
557
+ if isinstance(msg_data, tuple):
558
+ tester.P(msg_data[0], color=msg_data[1], show=True)
559
+ else:
560
+ tester.P(msg_data, show=True)
561
+ # endfor each message
562
+ # endfor each node
563
+ tester.P(f'Finished test {i + 1}/{N}', show=True)
564
+ # endfor each test
565
+ return
566
+
567
+ # Main loop
568
+ def main():
569
+ TEST_COMMANDS = False
570
+ TEST_ORACLE = True
571
+ if TEST_COMMANDS:
572
+ test_commands()
573
+
574
+ if TEST_ORACLE:
575
+ oracle_test(5)
576
+ return
577
+
578
+
579
+ if __name__ == "__main__":
580
+ main()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: naeural_client
3
- Version: 2.6.23
3
+ Version: 2.6.25
4
4
  Summary: `naeural_client` is the Python SDK required for client app development for the Naeural Edge Protocol Edge Protocol framework
5
5
  Project-URL: Homepage, https://github.com/NaeuralEdgeProtocol/naeural_client
6
6
  Project-URL: Bug Tracker, https://github.com/NaeuralEdgeProtocol/naeural_client/issues
@@ -38,6 +38,12 @@ Key functionalities of the Ratio1 SDK include:
38
38
 
39
39
  Unlike the Ratio1 Core Packages, which are intended solely for protocol and ecosystem enhancements and are not meant for standalone installation, the Ratio1 SDK is designed for both client-side development and sending workloads to Ratio1 Edge Nodes, making it an indispensable tool for developers within the ecosystem.
40
40
 
41
+ ## The `nepctl` CLI Tool
42
+
43
+ Our SDK has a CLI tool called `nepctl` that allows you to interact with the Ratio1 network. You can use it to query nodes, configure the client, and manage nodes directly from the terminal. The `nepctl` tool is a powerful utility that simplifies network interactions and provides a seamless experience for developers.
44
+
45
+ For more information on the `nepctl` CLI tool, please refer to the [nepctl](nepctl.md) documentation.
46
+
41
47
  ## Dependencies
42
48
 
43
49
  The Ratio1 SDK relies on several key packages to function effectively. These dependencies are automatically managed when installing the SDK via pip:
@@ -1,10 +1,10 @@
1
1
  naeural_client/__init__.py,sha256=YimqgDbjLuywsf8zCWE0EaUXH4MBUrqLxt0TDV558hQ,632
2
- naeural_client/_ver.py,sha256=ExxkwqqTAztPK8RWqL7GyQkJutoKujjUek6iRu_OUSk,331
2
+ naeural_client/_ver.py,sha256=VzTUOXifPU_gElHsx6mudwBFePv-yOYf47lefXA00DI,331
3
3
  naeural_client/base_decentra_object.py,sha256=C4iwZTkhKNBS4VHlJs5DfElRYLo4Q9l1V1DNVSk1fyQ,4412
4
4
  naeural_client/plugins_manager_mixin.py,sha256=X1JdGLDz0gN1rPnTN_5mJXR8JmqoBFQISJXmPR9yvCo,11106
5
5
  naeural_client/base/__init__.py,sha256=hACh83_cIv7-PwYMM3bQm2IBmNqiHw-3PAfDfAEKz9A,259
6
6
  naeural_client/base/distributed_custom_code_presets.py,sha256=cvz5R88P6Z5V61Ce1vHVVh8bOkgXd6gve_vdESDNAsg,2544
7
- naeural_client/base/generic_session.py,sha256=k6c9gez8-XWPURcdradD-H_aX-ilF9xmnYTXEuHOsI8,104524
7
+ naeural_client/base/generic_session.py,sha256=joF01ZoIt6QCSg7hDkg5M8ZCmKubpbQVh-plqi6GA9E,105079
8
8
  naeural_client/base/instance.py,sha256=kcZJmjLBtx8Bjj_ysIOx1JmLA-qSpG7E28j5rq6IYus,20444
9
9
  naeural_client/base/pipeline.py,sha256=b4uNHrEIOlAtw4PGUx20dxwBhDck5__SrVXaHcSi8ZA,58251
10
10
  naeural_client/base/plugin_template.py,sha256=qGaXByd_JZFpjvH9GXNbT7KaitRxIJB6-1IhbKrZjq4,138123
@@ -14,15 +14,16 @@ naeural_client/base/webapp_pipeline.py,sha256=QmPLVmhP0CPdi0YuvbZEH4APYz2Amtw3gy
14
14
  naeural_client/base/payload/__init__.py,sha256=y8fBI8tG2ObNfaXFWjyWZXwu878FRYj_I8GIbHT4GKE,29
15
15
  naeural_client/base/payload/payload.py,sha256=x-au7l67Z_vfn_4R2C_pjZCaFuUVXHngJiGOfIAYVdE,2690
16
16
  naeural_client/bc/__init__.py,sha256=FQj23D1PrY06NUOARiKQi4cdj0-VxnoYgYDEht8lpr8,158
17
- naeural_client/bc/base.py,sha256=hiKibexlNpZWYfFjKH-Jdwe79p4rM6j4e0M3AYPZCNs,36169
17
+ naeural_client/bc/base.py,sha256=f6FbBIGhP_2siTNENVUp_RWKsECqXRq6xiQkgOPG_PA,36454
18
18
  naeural_client/bc/chain.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
19
19
  naeural_client/bc/ec.py,sha256=qI8l7YqiS4MNftlx-tF7IZUswrSeQc7KMn5OZ0fEaJs,23370
20
20
  naeural_client/certs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
21
21
  naeural_client/certs/r9092118.ala.eu-central-1.emqxsl.com.crt,sha256=y-6io0tseyx9-a4Pmde1z1gPULtJNSYUpG_YFkYaMKU,1337
22
22
  naeural_client/cli/README.md,sha256=WPdI_EjzAbUW1aPyj1sSR8rLydcJKZtoiaEtklQrjHo,74
23
23
  naeural_client/cli/cli.py,sha256=c0ZavVwArQEGv8tueTnz3aGKTuUe6Sqmm5oTUFUVIUE,3816
24
- naeural_client/cli/cli_commands.py,sha256=rORdskjcuWkoJ0VJH8Ednfp-b2_SX-xZ6B-cO6KLAPQ,2012
25
- naeural_client/cli/nodes.py,sha256=SYWe58F7ygxr2EpEJjh6b_VDvEEEnxwiw7SmAqQggn8,4829
24
+ naeural_client/cli/cli_commands.py,sha256=Gfims_TqaBi2QWM-6yxd_B_CETF8mmt7oEDPTg59lcI,2821
25
+ naeural_client/cli/nodes.py,sha256=QXSniYy3Phr6buoVV-HUDRYuF5YQDUgf6nT6EzDyMJw,4909
26
+ naeural_client/cli/oracles.py,sha256=g8h8kl3Mu6gU7JCs4a6WSDpvuVDGJgTHJbYJy7Iriw0,5210
26
27
  naeural_client/code_cheker/__init__.py,sha256=pwkdeZGVL16ZA4Qf2mRahEhoOvKhL7FyuQbMFLr1E5M,33
27
28
  naeural_client/code_cheker/base.py,sha256=lT5DRIFO5rqzsMNCmdMRfkAeevmezozehyfgmhnKpuI,19074
28
29
  naeural_client/code_cheker/checker.py,sha256=QWupeM7ToancVIq1tRUxRNUrI8B5l5eoY0kDU4-O5aE,7365
@@ -81,8 +82,9 @@ naeural_client/utils/__init__.py,sha256=mAnke3-MeRzz3nhQvhuHqLnpaaCSmDxicd7Ck9uw
81
82
  naeural_client/utils/comm_utils.py,sha256=4cS9llRr_pK_3rNgDcRMCQwYPO0kcNU7AdWy_LtMyCY,1072
82
83
  naeural_client/utils/config.py,sha256=v7xHikr6Z5Sbvf3opYeMhYzGWD2pe0HlRwa-aGJzUh8,6323
83
84
  naeural_client/utils/dotenv.py,sha256=_AgSo35n7EnQv5yDyu7C7i0kHragLJoCGydHjvOkrYY,2008
84
- naeural_client-2.6.23.dist-info/METADATA,sha256=u7H3fuVuqyHzerzYNSZDTUaAX7yOd4iSgO4rVoIT9mg,11906
85
- naeural_client-2.6.23.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
86
- naeural_client-2.6.23.dist-info/entry_points.txt,sha256=PNdyotDaQBAslZREx5luVyj0kqpQnwNACwkFNTPIHU4,55
87
- naeural_client-2.6.23.dist-info/licenses/LICENSE,sha256=cvOsJVslde4oIaTCadabXnPqZmzcBO2f2zwXZRmJEbE,11311
88
- naeural_client-2.6.23.dist-info/RECORD,,
85
+ naeural_client/utils/oracle_sync/multiple_requests.py,sha256=SYzhC2mLnDBZ9cEJyLeljax8p8dQTFO3dWqGaUV4jvY,20836
86
+ naeural_client-2.6.25.dist-info/METADATA,sha256=j7rLxmjqRSMSnSF7Q5HoAVQN1C6c1dRk-e1xj2KOaJ4,12354
87
+ naeural_client-2.6.25.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
88
+ naeural_client-2.6.25.dist-info/entry_points.txt,sha256=PNdyotDaQBAslZREx5luVyj0kqpQnwNACwkFNTPIHU4,55
89
+ naeural_client-2.6.25.dist-info/licenses/LICENSE,sha256=cvOsJVslde4oIaTCadabXnPqZmzcBO2f2zwXZRmJEbE,11311
90
+ naeural_client-2.6.25.dist-info/RECORD,,