naeural-client 2.7.20__py3-none-any.whl → 2.7.21__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/cli/cli_commands.py +6 -2
- naeural_client/utils/config.py +14 -2
- {naeural_client-2.7.20.dist-info → naeural_client-2.7.21.dist-info}/METADATA +1 -1
- {naeural_client-2.7.20.dist-info → naeural_client-2.7.21.dist-info}/RECORD +8 -8
- {naeural_client-2.7.20.dist-info → naeural_client-2.7.21.dist-info}/WHEEL +0 -0
- {naeural_client-2.7.20.dist-info → naeural_client-2.7.21.dist-info}/entry_points.txt +0 -0
- {naeural_client-2.7.20.dist-info → naeural_client-2.7.21.dist-info}/licenses/LICENSE +0 -0
naeural_client/_ver.py
CHANGED
@@ -5,7 +5,7 @@ from naeural_client.cli.nodes import (
|
|
5
5
|
from naeural_client.cli.oracles import get_availability
|
6
6
|
from naeural_client.utils.config import (
|
7
7
|
show_config, reset_config, show_address, get_set_network,
|
8
|
-
get_apps
|
8
|
+
get_apps, get_networks
|
9
9
|
)
|
10
10
|
|
11
11
|
# Define the available commands
|
@@ -47,7 +47,11 @@ CLI_COMMANDS = {
|
|
47
47
|
"--full": "Include admin apps (flag)",
|
48
48
|
"--json": "Output the entire JSON config of applications (flag)",
|
49
49
|
}
|
50
|
-
}
|
50
|
+
},
|
51
|
+
"networks": {
|
52
|
+
"func": get_networks, # DONE
|
53
|
+
"description": "Show the network configuration",
|
54
|
+
},
|
51
55
|
},
|
52
56
|
"config": {
|
53
57
|
"show": {
|
naeural_client/utils/config.py
CHANGED
@@ -93,14 +93,26 @@ def get_user_config_file():
|
|
93
93
|
return get_user_folder() / CONFIG_FILE
|
94
94
|
|
95
95
|
|
96
|
+
|
97
|
+
|
96
98
|
def get_network():
|
97
99
|
return os.environ.get(dAuth.DAUTH_NET_ENV_KEY, dAuth.DAUTH_SDK_NET_DEFAULT)
|
98
100
|
|
101
|
+
def get_networks(args):
|
102
|
+
"""
|
103
|
+
Shows the network configuration.
|
104
|
+
"""
|
105
|
+
log_with_color(f"Client v{version} on network: {get_network()}", color='b')
|
106
|
+
from naeural_client.const.evm_net import EVM_NET_DATA
|
107
|
+
log_with_color(f"Available networks:\n{json.dumps(EVM_NET_DATA, indent=2)}", color='w')
|
108
|
+
return
|
109
|
+
|
110
|
+
|
99
111
|
def get_set_network(args):
|
100
112
|
net = args.new or args.set
|
101
113
|
env_network = get_network()
|
102
114
|
if net is None:
|
103
|
-
log_with_color(f"
|
115
|
+
log_with_color(f"Client v{version} on network: {env_network}", color='b')
|
104
116
|
else:
|
105
117
|
config_file = get_user_config_file()
|
106
118
|
# open config_file and update EE_EVM_NET
|
@@ -124,7 +136,7 @@ def reset_config(*larg, keep_existing=False, **kwargs):
|
|
124
136
|
Resets the configuration by creating a ~/.naeural folder and populating
|
125
137
|
~/.naeural/config with values from a local .env file, if it exists.
|
126
138
|
"""
|
127
|
-
log_with_color("
|
139
|
+
log_with_color(f"Client v{version} resetting the configuration...", color='y')
|
128
140
|
# Define the target config folder and file
|
129
141
|
config_dir = get_user_folder()
|
130
142
|
config_file = get_user_config_file()
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: naeural_client
|
3
|
-
Version: 2.7.
|
3
|
+
Version: 2.7.21
|
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=
|
2
|
+
naeural_client/_ver.py,sha256=_6lMwh-AnfcCGwJKoxQMjXGsaLLYpuKUyZcHxRZwjDo,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
|
@@ -22,7 +22,7 @@ naeural_client/certs/r9092118.ala.eu-central-1.emqxsl.com.crt,sha256=y-6io0tseyx
|
|
22
22
|
naeural_client/certs/s624dbd4.ala.us-east-1.emqxsl.com.crt,sha256=y-6io0tseyx9-a4Pmde1z1gPULtJNSYUpG_YFkYaMKU,1337
|
23
23
|
naeural_client/cli/README.md,sha256=WPdI_EjzAbUW1aPyj1sSR8rLydcJKZtoiaEtklQrjHo,74
|
24
24
|
naeural_client/cli/cli.py,sha256=EC7-ehOMQJ_Dq7R9TTrajpvQWwdalAOgb1JAeBGHF50,3830
|
25
|
-
naeural_client/cli/cli_commands.py,sha256=
|
25
|
+
naeural_client/cli/cli_commands.py,sha256=XfZGVCSD2-rUr2EdQXOxxN2VwQd2f2aTMeSgRzXnuvs,3829
|
26
26
|
naeural_client/cli/nodes.py,sha256=53-Ht42Xiq3rJEVA2ErZHLLC9OUjh6-rNGrc2RA-U8o,5733
|
27
27
|
naeural_client/cli/oracles.py,sha256=Y_PzHshfSERS_Utjjtw5d_BsQRdGr6P4L6uW8yTdA0M,4809
|
28
28
|
naeural_client/code_cheker/__init__.py,sha256=pwkdeZGVL16ZA4Qf2mRahEhoOvKhL7FyuQbMFLr1E5M,33
|
@@ -82,11 +82,11 @@ naeural_client/logging/tzlocal/win32.py,sha256=zBoj0vFVrGhnCm_f7xmYzGym4-fV-4Ij2
|
|
82
82
|
naeural_client/logging/tzlocal/windows_tz.py,sha256=Sv9okktjZJfRGGUOOppsvQuX_eXyXUxkSKCAFmWT9Hw,34203
|
83
83
|
naeural_client/utils/__init__.py,sha256=mAnke3-MeRzz3nhQvhuHqLnpaaCSmDxicd7Ck9uwpmI,77
|
84
84
|
naeural_client/utils/comm_utils.py,sha256=4cS9llRr_pK_3rNgDcRMCQwYPO0kcNU7AdWy_LtMyCY,1072
|
85
|
-
naeural_client/utils/config.py,sha256=
|
85
|
+
naeural_client/utils/config.py,sha256=Jn2q0YV3JbLEp1N_j6NzFpb3Btuq_HQiGrSL1GjW4a4,10098
|
86
86
|
naeural_client/utils/dotenv.py,sha256=_AgSo35n7EnQv5yDyu7C7i0kHragLJoCGydHjvOkrYY,2008
|
87
87
|
naeural_client/utils/oracle_sync/oracle_tester.py,sha256=GmZwu2JM9_UB2K-4rKB3o0RgWLqM-7Im6HwBnQLXmHI,25312
|
88
|
-
naeural_client-2.7.
|
89
|
-
naeural_client-2.7.
|
90
|
-
naeural_client-2.7.
|
91
|
-
naeural_client-2.7.
|
92
|
-
naeural_client-2.7.
|
88
|
+
naeural_client-2.7.21.dist-info/METADATA,sha256=aCyklHlMdeVwrxBrQVvmhomg7nMmr9BRwZWKI2pQplA,12354
|
89
|
+
naeural_client-2.7.21.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
90
|
+
naeural_client-2.7.21.dist-info/entry_points.txt,sha256=CTua17GUrRa4aXeafezGC9TiWKGKQzwTjQmB2jyj22g,91
|
91
|
+
naeural_client-2.7.21.dist-info/licenses/LICENSE,sha256=cvOsJVslde4oIaTCadabXnPqZmzcBO2f2zwXZRmJEbE,11311
|
92
|
+
naeural_client-2.7.21.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|