naeural-client 2.5.23__py3-none-any.whl → 2.5.24__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 +1 -1
- naeural_client/base/generic_session.py +6 -0
- naeural_client/utils/config.py +3 -1
- {naeural_client-2.5.23.dist-info → naeural_client-2.5.24.dist-info}/METADATA +1 -1
- {naeural_client-2.5.23.dist-info → naeural_client-2.5.24.dist-info}/RECORD +8 -8
- {naeural_client-2.5.23.dist-info → naeural_client-2.5.24.dist-info}/WHEEL +0 -0
- {naeural_client-2.5.23.dist-info → naeural_client-2.5.24.dist-info}/entry_points.txt +0 -0
- {naeural_client-2.5.23.dist-info → naeural_client-2.5.24.dist-info}/licenses/LICENSE +0 -0
naeural_client/_ver.py
CHANGED
@@ -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
|
naeural_client/utils/config.py
CHANGED
@@ -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.
|
3
|
+
Version: 2.5.24
|
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
1
|
naeural_client/__init__.py,sha256=GP8WSrn87sjTPO-QRNL2PG8JK5Mixbiea_HrtbG8RAQ,592
|
2
|
-
naeural_client/_ver.py,sha256=
|
2
|
+
naeural_client/_ver.py,sha256=uGIO8Y2Ti2ygzfAD39SyFQ38eg8DPnoMAKuoyqc1ddo,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=
|
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=
|
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.
|
85
|
-
naeural_client-2.5.
|
86
|
-
naeural_client-2.5.
|
87
|
-
naeural_client-2.5.
|
88
|
-
naeural_client-2.5.
|
84
|
+
naeural_client-2.5.24.dist-info/METADATA,sha256=9a21TM1JGOIB0I-xmF0eOpBtbqVpKdHNogqAIZ-Novs,14619
|
85
|
+
naeural_client-2.5.24.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
86
|
+
naeural_client-2.5.24.dist-info/entry_points.txt,sha256=PNdyotDaQBAslZREx5luVyj0kqpQnwNACwkFNTPIHU4,55
|
87
|
+
naeural_client-2.5.24.dist-info/licenses/LICENSE,sha256=cvOsJVslde4oIaTCadabXnPqZmzcBO2f2zwXZRmJEbE,11311
|
88
|
+
naeural_client-2.5.24.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|