naeural-client 2.2.4__py3-none-any.whl → 2.2.6__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.2.4"
1
+ __VER__ = "2.2.6"
2
2
 
3
3
  if __name__ == "__main__":
4
4
  with open("pyproject.toml", "rt") as fd:
@@ -145,7 +145,7 @@ class GenericSession(BaseDecentrAIObject):
145
145
 
146
146
  self._verbosity = verbosity
147
147
  self.encrypt_comms = encrypt_comms
148
-
148
+
149
149
  self._dct_online_nodes_pipelines: dict[str, Pipeline] = {}
150
150
  self._dct_online_nodes_last_heartbeat: dict[str, dict] = {}
151
151
  self._dct_can_send_to_node: dict[str, bool] = {}
@@ -189,11 +189,6 @@ class GenericSession(BaseDecentrAIObject):
189
189
 
190
190
  self._connect()
191
191
 
192
- self.P("Created {} comms session '{}' from <{}> SDKv{}.".format(
193
- "decrypted" if not self.encrypt_comms else "encrypted",
194
- self.name, self.bc_engine.address, self.log.version
195
- ))
196
-
197
192
  if not self.encrypt_comms:
198
193
  self.P(
199
194
  "Warning: Emitted messages will not be encrypted.\n"
@@ -922,15 +917,7 @@ class GenericSession(BaseDecentrAIObject):
922
917
  node = next((key for key, value in self._dct_node_addr_name.items() if value == node), node)
923
918
  return node
924
919
 
925
- def _send_command_to_box(
926
- self,
927
- command,
928
- worker,
929
- payload,
930
- show_command=False,
931
- session_id=None,
932
- **kwargs
933
- ):
920
+ def _send_command_to_box(self, command, worker, payload, show_command=False, session_id=None, **kwargs):
934
921
  """
935
922
  Send a command to a node.
936
923
 
@@ -965,7 +952,6 @@ class GenericSession(BaseDecentrAIObject):
965
952
  critical_data = {
966
953
  comm_ct.COMM_SEND_MESSAGE.K_EE_IS_ENCRYPTED: True,
967
954
  comm_ct.COMM_SEND_MESSAGE.K_EE_ENCRYPTED_DATA: str_enc_data,
968
- PAYLOAD_DATA.EE_DESTINATION: worker, # added clear destination
969
955
  }
970
956
  else:
971
957
  critical_data[comm_ct.COMM_SEND_MESSAGE.K_EE_IS_ENCRYPTED] = False
naeural_client/bc/ec.py CHANGED
@@ -380,9 +380,5 @@ class BaseBCEllipticCurveEngine(BaseBlockEngine):
380
380
 
381
381
  result = plaintext.decode()
382
382
  except Exception as exc:
383
- if debug:
384
- self.P("Error decrypting from <{}> (compressed_flag `{}`): {}".format(
385
- sender_address, compressed_flag, exc), color='r'
386
- )
387
383
  result = None
388
384
  return result
@@ -70,7 +70,8 @@ class BaseFormatter(object):
70
70
  output = self._decode_output(encoded_output)
71
71
  except Exception as e:
72
72
  output = {}
73
- msg = "ERROR! Could not decode {}\n{}".format(encoded_output, e)
73
+ encoded_output_for_print = {k: v for k, v in encoded_output.items() if k != PAYLOAD_DATA.EE_ENCRYPTED_DATA}
74
+ msg = "ERROR! Could not decode {}\n{}".format(encoded_output_for_print, e)
74
75
  self.P(msg)
75
76
  self.P(traceback.format_exc(), color='r')
76
77
  # end try-except
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: naeural_client
3
- Version: 2.2.4
3
+ Version: 2.2.6
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/Naeural Edge ProtocolEdgeProtocol/naeural_client
6
6
  Project-URL: Bug Tracker, https://github.com/Naeural Edge ProtocolEdgeProtocol/naeural_client/issues
@@ -1,10 +1,10 @@
1
1
  naeural_client/__init__.py,sha256=UKEDGS0wFYyxwmhEAKJGecO2vYbIfRYUP4SQgnK10IE,578
2
- naeural_client/_ver.py,sha256=VsmPvRLBbHNpW1UEjcXfO-rvtxsVFtPTHkhl3QN8lfM,330
2
+ naeural_client/_ver.py,sha256=lZiu4kJosgmfFcg5Zp1ACcy6GyugTYJj01wjM9GVt7s,330
3
3
  naeural_client/base_decentra_object.py,sha256=qDBpitcyhr1eEXPD8cGFtcNPNf71fqNRsmOEcCpx4sM,4180
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=8ajD3-UKQ_oHn77sDC4AyltjUYeMW-rqpJUe5nJJ4ls,76163
7
+ naeural_client/base/generic_session.py,sha256=QbaRWvC5XeWSdYWYg7kZXSYX4jUHH7aVcDcFLRQ9I5o,75834
8
8
  naeural_client/base/instance.py,sha256=kcZJmjLBtx8Bjj_ysIOx1JmLA-qSpG7E28j5rq6IYus,20444
9
9
  naeural_client/base/pipeline.py,sha256=KwcPWD2XMvHotWFMpcnIycFhqiNnZuyUTUWiLU0PM5Y,57519
10
10
  naeural_client/base/plugin_template.py,sha256=qGaXByd_JZFpjvH9GXNbT7KaitRxIJB6-1IhbKrZjq4,138123
@@ -15,7 +15,7 @@ naeural_client/base/payload/payload.py,sha256=v50D7mBBD2WwWzvpbRGMSr-X6vv5ie21IY
15
15
  naeural_client/bc/__init__.py,sha256=FQj23D1PrY06NUOARiKQi4cdj0-VxnoYgYDEht8lpr8,158
16
16
  naeural_client/bc/base.py,sha256=nAFL4z9kyFcmrilHWCia69xMWi65VzjoQ_mo-yCQhGA,28331
17
17
  naeural_client/bc/chain.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
18
- naeural_client/bc/ec.py,sha256=n8Z-w8YCOZb4M37kMc9AvWi0cDj2d9p153gyOPGGAbE,10534
18
+ naeural_client/bc/ec.py,sha256=8JQ4AIDz0AZAhm3xOFRrYW-k1WGRIchn4O1WO_qRntQ,10370
19
19
  naeural_client/certs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
20
20
  naeural_client/certs/r9092118.ala.eu-central-1.emqxsl.com.crt,sha256=y-6io0tseyx9-a4Pmde1z1gPULtJNSYUpG_YFkYaMKU,1337
21
21
  naeural_client/code_cheker/__init__.py,sha256=pwkdeZGVL16ZA4Qf2mRahEhoOvKhL7FyuQbMFLr1E5M,33
@@ -46,7 +46,7 @@ naeural_client/default/session/mqtt_session.py,sha256=dpQcBhhVZDo458v0IqJMZb1CsT
46
46
  naeural_client/io_formatter/__init__.py,sha256=_wy7c-Z9kgb26jN7uNTDq88G7xZ3wI_ObuQd3QWNPkQ,85
47
47
  naeural_client/io_formatter/io_formatter_manager.py,sha256=MiZ70cGVD6hR99QiEk9wvJ_vADxpI-y2bTb0ITlMNI0,3451
48
48
  naeural_client/io_formatter/base/__init__.py,sha256=VmLHY35NCRR46lgjhcrwtFxmJIVOjX2ADV9wOXt9CKA,41
49
- naeural_client/io_formatter/base/base_formatter.py,sha256=skrXCKBXirPl1aVCIUm0XxWY-ZHRi3QdLzeEL-2CIaQ,2337
49
+ naeural_client/io_formatter/base/base_formatter.py,sha256=MfIHHzW5fG7yyhLCgSOaMqPZGXf3rKaGGPCpBS2l4TA,2461
50
50
  naeural_client/io_formatter/default/__init__.py,sha256=zOm2tsOk6fXvyCXxsXDnsNs6BUrUOr0DoLf4ccWlY_w,109
51
51
  naeural_client/io_formatter/default/a_dummy.py,sha256=qr9eUizQ-NN5jdXVzkaZKMaf9KS41MpPN_iDoTN_Qd0,1148
52
52
  naeural_client/io_formatter/default/aixp1.py,sha256=MX0TeUR4APA-qN3vUC6uzcz8Pssz5lgrQWo7td5Ri1A,3052
@@ -75,7 +75,7 @@ naeural_client/logging/tzlocal/windows_tz.py,sha256=Sv9okktjZJfRGGUOOppsvQuX_eXy
75
75
  naeural_client/utils/__init__.py,sha256=mAnke3-MeRzz3nhQvhuHqLnpaaCSmDxicd7Ck9uwpmI,77
76
76
  naeural_client/utils/comm_utils.py,sha256=4cS9llRr_pK_3rNgDcRMCQwYPO0kcNU7AdWy_LtMyCY,1072
77
77
  naeural_client/utils/dotenv.py,sha256=_AgSo35n7EnQv5yDyu7C7i0kHragLJoCGydHjvOkrYY,2008
78
- naeural_client-2.2.4.dist-info/METADATA,sha256=Y3t_SCNYvu1WtU3ddqkJ6nyu1B2OBFtmlZ4tHWpN1no,14457
79
- naeural_client-2.2.4.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
80
- naeural_client-2.2.4.dist-info/licenses/LICENSE,sha256=cvOsJVslde4oIaTCadabXnPqZmzcBO2f2zwXZRmJEbE,11311
81
- naeural_client-2.2.4.dist-info/RECORD,,
78
+ naeural_client-2.2.6.dist-info/METADATA,sha256=W-910TVqH3CTfTisr-54C-CgiLW6-xhhUvULCi4BYbU,14457
79
+ naeural_client-2.2.6.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
80
+ naeural_client-2.2.6.dist-info/licenses/LICENSE,sha256=cvOsJVslde4oIaTCadabXnPqZmzcBO2f2zwXZRmJEbE,11311
81
+ naeural_client-2.2.6.dist-info/RECORD,,