naeural-client 3.1.4__py3-none-any.whl → 3.1.5__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__ = "3.1.4"
1
+ __VER__ = "3.1.5"
2
2
 
3
3
  if __name__ == "__main__":
4
4
  with open("pyproject.toml", "rt") as fd:
naeural_client/bc/base.py CHANGED
@@ -7,7 +7,7 @@ import datetime
7
7
  import uuid
8
8
  import requests
9
9
 
10
-
10
+ from collections import defaultdict
11
11
  from hashlib import sha256, md5
12
12
  from threading import Lock
13
13
  from copy import deepcopy
@@ -309,6 +309,9 @@ class BaseBlockEngine(_EVMMixin):
309
309
  assert log is not None, "Logger object was not provided!"
310
310
 
311
311
  self.log = log
312
+
313
+ self._first_checks_done = defaultdict(lambda: False) # used to store the first check results
314
+
312
315
  self.__private_key = None
313
316
  self.__verbosity = verbosity
314
317
  self.__public_key = None
@@ -1407,8 +1410,9 @@ class BaseBlockEngine(_EVMMixin):
1407
1410
  the status is still 200, an empty dictionary will be returned).
1408
1411
  """
1409
1412
  if EE_VPN_IMPL:
1410
- return {}
1413
+ return None # must return None not empty dict for VPNs
1411
1414
  #endif EE_VPN_IMPL
1415
+
1412
1416
  from naeural_client._ver import __VER__ as sdk_version
1413
1417
  try:
1414
1418
  from ver import __VER__ as app_version
@@ -1444,13 +1448,13 @@ class BaseBlockEngine(_EVMMixin):
1444
1448
  url = network_data[dAuth.EvmNetData.DAUTH_URL_KEY]
1445
1449
  #endif not in env
1446
1450
 
1447
- if isinstance(url, str) and len(url) > 0:
1451
+ if isinstance(url, str) and len(url) > MIN_LEN:
1448
1452
  # Valid URL
1449
1453
  if dauth_endp is None:
1450
1454
  if in_env:
1451
- self.P("Found dAuth URL in environment: '{}'".format(url), color='g')
1455
+ self.P("Found dAuth URL in environment: '{}'".format(url))
1452
1456
  else:
1453
- self.P("Using default dAuth URL: '{}'".format(url), color='g')
1457
+ self.P("Using default dAuth URL: '{}'".format(url))
1454
1458
  eth_short = self.eth_address[:6] + '...' + self.eth_address[-4:]
1455
1459
  while not done:
1456
1460
  self.P(f"<{eth_short}> ({network}) dAuth with `{url}`... (try {tries + 1} / {max_tries})")
@@ -1550,7 +1554,7 @@ class BaseBlockEngine(_EVMMixin):
1550
1554
  #end while
1551
1555
  else:
1552
1556
  # Invalid URL, thus dct_env will remain None
1553
- self.P(f"dAuth URL is not invalid: {url}", color='r')
1557
+ self.P(f"dAuth URL is not valid: {url}", color='r')
1554
1558
  #end if url is valid
1555
1559
  if return_full_data:
1556
1560
  return dct_response
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: naeural_client
3
- Version: 3.1.4
3
+ Version: 3.1.5
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
@@ -1,5 +1,5 @@
1
1
  naeural_client/__init__.py,sha256=YimqgDbjLuywsf8zCWE0EaUXH4MBUrqLxt0TDV558hQ,632
2
- naeural_client/_ver.py,sha256=_rt8Jv_c0L6zMzbdeiCqKhVFqpJbuFpGBKcH7TkY3q0,330
2
+ naeural_client/_ver.py,sha256=PbAG-kxJyDZltzev3x8qCNcrsW_v0KI6VtkW9ReP848,330
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
@@ -14,7 +14,7 @@ naeural_client/base/webapp_pipeline.py,sha256=ZNGqZ36DY076XVDfGu2Q61kCt3kxIJ4Mi4
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=FY4KJMedeuASGpTsqY5p5ImF7s6IfZiqnh2DkrH83ro,44575
17
+ naeural_client/bc/base.py,sha256=LGUw0oX3ALUHRO8PUWkuRrZMATEjM_y7WHJ11Pw0BcU,44749
18
18
  naeural_client/bc/chain.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
19
19
  naeural_client/bc/ec.py,sha256=FwlkWmJvQ9aHuf_BZX1CWSUAxw6OZ9jBparLIWcs_e4,18933
20
20
  naeural_client/bc/evm.py,sha256=jYo50-8RB1e-KK5j1JmMPbp9-UuTe5J_-4Zrf1MAXRc,26108
@@ -97,8 +97,8 @@ naeural_client/utils/comm_utils.py,sha256=4cS9llRr_pK_3rNgDcRMCQwYPO0kcNU7AdWy_L
97
97
  naeural_client/utils/config.py,sha256=QamxSnF6rqw91VhMWZoeO1EYUKjqWa-D8VFC1tIzTTM,10517
98
98
  naeural_client/utils/dotenv.py,sha256=_AgSo35n7EnQv5yDyu7C7i0kHragLJoCGydHjvOkrYY,2008
99
99
  naeural_client/utils/oracle_sync/oracle_tester.py,sha256=X-923ccjkr6_kzbbiuAAcWSIhMtBDOH2VURjTh55apQ,27235
100
- naeural_client-3.1.4.dist-info/METADATA,sha256=qEjGKQMhPn3imJOHY5uQbmft5jYbbT80jtS4c5QnBQo,12353
101
- naeural_client-3.1.4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
102
- naeural_client-3.1.4.dist-info/entry_points.txt,sha256=CTua17GUrRa4aXeafezGC9TiWKGKQzwTjQmB2jyj22g,91
103
- naeural_client-3.1.4.dist-info/licenses/LICENSE,sha256=cvOsJVslde4oIaTCadabXnPqZmzcBO2f2zwXZRmJEbE,11311
104
- naeural_client-3.1.4.dist-info/RECORD,,
100
+ naeural_client-3.1.5.dist-info/METADATA,sha256=WxmVtxYHKNdNGJek9MXCKaUTPb8aDcG2ALB-7oViUZs,12353
101
+ naeural_client-3.1.5.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
102
+ naeural_client-3.1.5.dist-info/entry_points.txt,sha256=CTua17GUrRa4aXeafezGC9TiWKGKQzwTjQmB2jyj22g,91
103
+ naeural_client-3.1.5.dist-info/licenses/LICENSE,sha256=cvOsJVslde4oIaTCadabXnPqZmzcBO2f2zwXZRmJEbE,11311
104
+ naeural_client-3.1.5.dist-info/RECORD,,