naeural-client 2.5.12__py3-none-any.whl → 2.5.14__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 +9 -4
- naeural_client/cli/cli.py +1 -1
- naeural_client/cli/cli_commands.py +5 -5
- {naeural_client-2.5.12.dist-info → naeural_client-2.5.14.dist-info}/METADATA +1 -1
- {naeural_client-2.5.12.dist-info → naeural_client-2.5.14.dist-info}/RECORD +9 -9
- {naeural_client-2.5.12.dist-info → naeural_client-2.5.14.dist-info}/WHEEL +0 -0
- {naeural_client-2.5.12.dist-info → naeural_client-2.5.14.dist-info}/entry_points.txt +0 -0
- {naeural_client-2.5.12.dist-info → naeural_client-2.5.14.dist-info}/licenses/LICENSE +0 -0
naeural_client/_ver.py
CHANGED
@@ -10,7 +10,7 @@ from time import sleep
|
|
10
10
|
from time import time as tm
|
11
11
|
|
12
12
|
from ..base_decentra_object import BaseDecentrAIObject
|
13
|
-
from ..bc import DefaultBlockEngine
|
13
|
+
from ..bc import DefaultBlockEngine, _DotDict
|
14
14
|
from ..const import (
|
15
15
|
COMMANDS, ENVIRONMENT, HB, PAYLOAD_DATA, STATUS_TYPE,
|
16
16
|
PLUGIN_SIGNATURES, DEFAULT_PIPELINES,
|
@@ -2272,7 +2272,12 @@ class GenericSession(BaseDecentrAIObject):
|
|
2272
2272
|
-------
|
2273
2273
|
|
2274
2274
|
dict
|
2275
|
-
A dictionary containing the report, the reporter and the number of supervisors.
|
2275
|
+
A "doct-dict" dictionary containing the report, the reporter and the number of supervisors.
|
2276
|
+
.report : DataFrame - The report containing the known nodes in the network.
|
2277
|
+
.reporter : str - The reporter of the report.
|
2278
|
+
.reporter_alias : str - The alias of the reporter.
|
2279
|
+
.nr_super : int - The number of supervisors.
|
2280
|
+
.elapsed : float - The elapsed time.
|
2276
2281
|
|
2277
2282
|
|
2278
2283
|
|
@@ -2348,11 +2353,11 @@ class GenericSession(BaseDecentrAIObject):
|
|
2348
2353
|
# end for
|
2349
2354
|
# end if
|
2350
2355
|
pd.options.display.float_format = '{:.1f}'.format
|
2351
|
-
dct_result ={
|
2356
|
+
dct_result = _DotDict({
|
2352
2357
|
'report' : pd.DataFrame(res),
|
2353
2358
|
'reporter' : best_super,
|
2354
2359
|
'reporter_alias' : best_super_alias,
|
2355
2360
|
'nr_super' : len(self.__current_network_statuses),
|
2356
2361
|
'elapsed' : elapsed,
|
2357
|
-
}
|
2362
|
+
})
|
2358
2363
|
return dct_result
|
naeural_client/cli/cli.py
CHANGED
@@ -52,7 +52,7 @@ def build_parser():
|
|
52
52
|
if isinstance(subcmd_info, dict) and "params" in subcmd_info:
|
53
53
|
for param, description in subcmd_info["params"].items():
|
54
54
|
if param.startswith("--"):
|
55
|
-
if description.
|
55
|
+
if description.lower().endswith("(flag)"):
|
56
56
|
subcommand_parser.add_argument(
|
57
57
|
param, action="store_true", help=description
|
58
58
|
)
|
@@ -11,11 +11,11 @@ CLI_COMMANDS = {
|
|
11
11
|
"nodes": {
|
12
12
|
"func": get_nodes,
|
13
13
|
"params": {
|
14
|
-
### use "flag" to indicate a boolean flag
|
15
|
-
### treated as a str parameter
|
16
|
-
"--all": "Get all known nodes flag", # DONE
|
17
|
-
"--online" : "Get only online nodes flag", # DONE
|
18
|
-
"--peered": "Get only peered nodes flag", # DONE
|
14
|
+
### use "(flag)" at the end of the description to indicate a boolean flag
|
15
|
+
### otherwise it will be treated as a str parameter
|
16
|
+
"--all": "Get all known nodes including those that have been gone missing (flag)", # DONE
|
17
|
+
"--online" : "Get only online nodes as seen by a active supervisor (flag)", # DONE
|
18
|
+
"--peered": "Get only peered nodes - ie nodes that can be used by current client address (flag)", # DONE
|
19
19
|
"--supervisor" : "Use a specific supervisor node"
|
20
20
|
}
|
21
21
|
},
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: naeural_client
|
3
|
-
Version: 2.5.
|
3
|
+
Version: 2.5.14
|
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=OvfE4D7AkISBE0Zs9LfE87m_VMS_4nmmTptsG5gPTvc,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=BCxmu9Q7HCnLbDYvXa_6cNBPwZhv-3MPloIQ6h4wjb0,88440
|
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
|
@@ -20,8 +20,8 @@ naeural_client/bc/ec.py,sha256=mWjodWCRgC3omVXOA9jtNdtPVNn2kMKV3Dcjt9oFUCQ,22974
|
|
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
|
-
naeural_client/cli/cli.py,sha256=
|
24
|
-
naeural_client/cli/cli_commands.py,sha256=
|
23
|
+
naeural_client/cli/cli.py,sha256=Yni8USLNK9g9G-l8_XomppZ5tKhduvA8wS4xOw3KODc,3754
|
24
|
+
naeural_client/cli/cli_commands.py,sha256=Y81oKz5Rx8qxYgzEzCwI9eB8iVL6iET7dETLVygs_VE,1686
|
25
25
|
naeural_client/cli/nodes.py,sha256=aCbSDFhTnub18LdrOPzu3kvx6acaBqHRgmyAdgqblP8,2459
|
26
26
|
naeural_client/code_cheker/__init__.py,sha256=pwkdeZGVL16ZA4Qf2mRahEhoOvKhL7FyuQbMFLr1E5M,33
|
27
27
|
naeural_client/code_cheker/base.py,sha256=lT5DRIFO5rqzsMNCmdMRfkAeevmezozehyfgmhnKpuI,19074
|
@@ -81,8 +81,8 @@ naeural_client/utils/__init__.py,sha256=mAnke3-MeRzz3nhQvhuHqLnpaaCSmDxicd7Ck9uw
|
|
81
81
|
naeural_client/utils/comm_utils.py,sha256=4cS9llRr_pK_3rNgDcRMCQwYPO0kcNU7AdWy_LtMyCY,1072
|
82
82
|
naeural_client/utils/config.py,sha256=aUVyi5rZjvnbUwM5mmj0E2IHvURdrlHSgleqZvJBNuU,5202
|
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.14.dist-info/METADATA,sha256=gjw552PambsqYitLB5RGMu1F9tAzY0MCNpjsGTmf6v0,14494
|
85
|
+
naeural_client-2.5.14.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
86
|
+
naeural_client-2.5.14.dist-info/entry_points.txt,sha256=PNdyotDaQBAslZREx5luVyj0kqpQnwNACwkFNTPIHU4,55
|
87
|
+
naeural_client-2.5.14.dist-info/licenses/LICENSE,sha256=cvOsJVslde4oIaTCadabXnPqZmzcBO2f2zwXZRmJEbE,11311
|
88
|
+
naeural_client-2.5.14.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|