naeural-client 2.5.23__py3-none-any.whl → 2.5.25__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
@@ -12,4 +12,5 @@ from .plugins_manager_mixin import _PluginsManagerMixin
12
12
  from .logging import Logger
13
13
  from .code_cheker import BaseCodeChecker
14
14
  from .const import PLUGIN_SIGNATURES, PAYLOAD_DATA
15
+ from .const import HB as HEARTBEAT_DATA
15
16
  from .default.instance import PLUGIN_TYPES
naeural_client/_ver.py CHANGED
@@ -1,4 +1,4 @@
1
- __VER__ = "2.5.23"
1
+ __VER__ = "2.5.25"
2
2
 
3
3
  if __name__ == "__main__":
4
4
  with open("pyproject.toml", "rt") as fd:
@@ -2255,6 +2255,7 @@ class GenericSession(BaseDecentrAIObject):
2255
2255
  min_supervisors=2,
2256
2256
  allowed_only=False,
2257
2257
  supervisor=None,
2258
+ df_only=False,
2258
2259
  ):
2259
2260
  """
2260
2261
  This function will return a Pandas dataframe known nodes in the network based on
@@ -2282,6 +2283,9 @@ class GenericSession(BaseDecentrAIObject):
2282
2283
  supervisor : str, optional
2283
2284
  The supervisor to wait for. Defaults to None.
2284
2285
 
2286
+ df_only : bool, optional
2287
+ If True, will return only the Pandas dataframe. Defaults to False.
2288
+
2285
2289
  Returns
2286
2290
  -------
2287
2291
 
@@ -2375,4 +2379,6 @@ class GenericSession(BaseDecentrAIObject):
2375
2379
  SESSION_CT.NETSTATS_NR_SUPERVISORS : len(self.__current_network_statuses),
2376
2380
  SESSION_CT.NETSTATS_ELAPSED : elapsed,
2377
2381
  })
2382
+ if df_only:
2383
+ return dct_result[SESSION_CT.NETSTATS_REPORT]
2378
2384
  return dct_result
@@ -181,10 +181,12 @@ def load_user_defined_config(verbose=False):
181
181
  def maybe_init_config():
182
182
  """
183
183
  Initializes the configuration if it doesn't exist yet.
184
+
185
+ TODO: in v3+ this will be migrated to a online authentication process.
184
186
  """
185
187
  config_file = get_user_config_file()
186
-
187
188
  if not config_file.exists():
188
189
  log_with_color(f"No configuration file found at {config_file}. Initializing configuration...", color="y")
189
190
  reset_config()
191
+ return False
190
192
  return load_user_defined_config()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: naeural_client
3
- Version: 2.5.23
3
+ Version: 2.5.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
@@ -1,10 +1,10 @@
1
- naeural_client/__init__.py,sha256=GP8WSrn87sjTPO-QRNL2PG8JK5Mixbiea_HrtbG8RAQ,592
2
- naeural_client/_ver.py,sha256=5iGYqdgSJ5XDV0vYuONK0InShYC-HR0Q8mnnsX2d8wY,331
1
+ naeural_client/__init__.py,sha256=YimqgDbjLuywsf8zCWE0EaUXH4MBUrqLxt0TDV558hQ,632
2
+ naeural_client/_ver.py,sha256=6QtP9dMRiht8zahEPh2LyBsQbGXHEmKaPyPjY1Y1Te4,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=pux9CrnVimYrNiXdjKLCHNRRuscGvHS1nUBs_ThC21s,89312
7
+ naeural_client/base/generic_session.py,sha256=Yo65LwSS3R3-ahQlAtXoNsnQHMAEYCFtPGrvYumwgHs,89524
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
@@ -79,10 +79,10 @@ naeural_client/logging/tzlocal/win32.py,sha256=zBoj0vFVrGhnCm_f7xmYzGym4-fV-4Ij2
79
79
  naeural_client/logging/tzlocal/windows_tz.py,sha256=Sv9okktjZJfRGGUOOppsvQuX_eXyXUxkSKCAFmWT9Hw,34203
80
80
  naeural_client/utils/__init__.py,sha256=mAnke3-MeRzz3nhQvhuHqLnpaaCSmDxicd7Ck9uwpmI,77
81
81
  naeural_client/utils/comm_utils.py,sha256=4cS9llRr_pK_3rNgDcRMCQwYPO0kcNU7AdWy_LtMyCY,1072
82
- naeural_client/utils/config.py,sha256=1hXyL-Kx31IyMF8p5RoVmS03xFek7rYEyfrJFCeSUmE,5265
82
+ naeural_client/utils/config.py,sha256=m1O6D7jE_vVpWM7kd2ZEs9JOKlM9yMDy5YDcf8vElWo,5357
83
83
  naeural_client/utils/dotenv.py,sha256=_AgSo35n7EnQv5yDyu7C7i0kHragLJoCGydHjvOkrYY,2008
84
- naeural_client-2.5.23.dist-info/METADATA,sha256=wTPQEnsYckvyw7XarklnpPcedoUB3BYnn7AGimztW-w,14619
85
- naeural_client-2.5.23.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
86
- naeural_client-2.5.23.dist-info/entry_points.txt,sha256=PNdyotDaQBAslZREx5luVyj0kqpQnwNACwkFNTPIHU4,55
87
- naeural_client-2.5.23.dist-info/licenses/LICENSE,sha256=cvOsJVslde4oIaTCadabXnPqZmzcBO2f2zwXZRmJEbE,11311
88
- naeural_client-2.5.23.dist-info/RECORD,,
84
+ naeural_client-2.5.25.dist-info/METADATA,sha256=BMinzTJ7I9xgtc2--6qM2fkxNjiUxUQg7MyE1C_fjT4,14619
85
+ naeural_client-2.5.25.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
86
+ naeural_client-2.5.25.dist-info/entry_points.txt,sha256=PNdyotDaQBAslZREx5luVyj0kqpQnwNACwkFNTPIHU4,55
87
+ naeural_client-2.5.25.dist-info/licenses/LICENSE,sha256=cvOsJVslde4oIaTCadabXnPqZmzcBO2f2zwXZRmJEbE,11311
88
+ naeural_client-2.5.25.dist-info/RECORD,,