neuronum 5.8.3__py3-none-any.whl → 5.8.4__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.
Potentially problematic release.
This version of neuronum might be problematic. Click here for more details.
- cli/main.py +20 -4
- {neuronum-5.8.3.dist-info → neuronum-5.8.4.dist-info}/METADATA +2 -2
- neuronum-5.8.4.dist-info/RECORD +10 -0
- neuronum-5.8.3.dist-info/RECORD +0 -10
- {neuronum-5.8.3.dist-info → neuronum-5.8.4.dist-info}/WHEEL +0 -0
- {neuronum-5.8.3.dist-info → neuronum-5.8.4.dist-info}/entry_points.txt +0 -0
- {neuronum-5.8.3.dist-info → neuronum-5.8.4.dist-info}/licenses/LICENSE.md +0 -0
- {neuronum-5.8.3.dist-info → neuronum-5.8.4.dist-info}/top_level.txt +0 -0
cli/main.py
CHANGED
|
@@ -841,10 +841,23 @@ async def async_stop_node():
|
|
|
841
841
|
|
|
842
842
|
@click.command()
|
|
843
843
|
def update_node():
|
|
844
|
+
click.echo("Update your Node")
|
|
844
845
|
node_type = questionary.select(
|
|
845
|
-
"
|
|
846
|
-
choices=["public", "private"]
|
|
846
|
+
"Who can view your Node?:",
|
|
847
|
+
choices=["public", "private", "partners"]
|
|
847
848
|
).ask()
|
|
849
|
+
partners = "None"
|
|
850
|
+
if node_type == "partners":
|
|
851
|
+
prompt_msg = (
|
|
852
|
+
"Enter the list of partners who can view this Node.\n"
|
|
853
|
+
"Format: partner::cell, partner::cell, partner::cell\n"
|
|
854
|
+
"Press Enter to leave the list unchanged"
|
|
855
|
+
)
|
|
856
|
+
partners = click.prompt(
|
|
857
|
+
prompt_msg,
|
|
858
|
+
default="None",
|
|
859
|
+
show_default=False
|
|
860
|
+
).strip()
|
|
848
861
|
descr = click.prompt(
|
|
849
862
|
"Update Node description: Type up to 25 characters, or press Enter to leave it unchanged",
|
|
850
863
|
default="None",
|
|
@@ -853,9 +866,9 @@ def update_node():
|
|
|
853
866
|
if descr and len(descr) > 25:
|
|
854
867
|
click.echo("Description too long. Max 25 characters allowed.")
|
|
855
868
|
return
|
|
856
|
-
asyncio.run(async_update_node(node_type, descr))
|
|
869
|
+
asyncio.run(async_update_node(node_type, descr, partners))
|
|
857
870
|
|
|
858
|
-
async def async_update_node(node_type: str, descr: str) -> None:
|
|
871
|
+
async def async_update_node(node_type: str, descr: str, partners:str) -> None:
|
|
859
872
|
env_data = {}
|
|
860
873
|
|
|
861
874
|
try:
|
|
@@ -887,6 +900,9 @@ async def async_update_node(node_type: str, descr: str) -> None:
|
|
|
887
900
|
except Exception as e:
|
|
888
901
|
click.echo(f"Error reading NODE.md file: {e}")
|
|
889
902
|
return
|
|
903
|
+
|
|
904
|
+
if node_type == "partners":
|
|
905
|
+
node_type = partners
|
|
890
906
|
|
|
891
907
|
url = f"https://{network}/api/update_node"
|
|
892
908
|
node = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: neuronum
|
|
3
|
-
Version: 5.8.
|
|
3
|
+
Version: 5.8.4
|
|
4
4
|
Summary: Official client library to interact with the Neuronum Network
|
|
5
5
|
Home-page: https://neuronum.net
|
|
6
6
|
Author: Neuronum Cybernetics
|
|
@@ -34,7 +34,7 @@ Dynamic: summary
|
|
|
34
34
|
<h1 align="center">
|
|
35
35
|
<img src="https://neuronum.net/static/neuronum.svg" alt="Neuronum" width="80">
|
|
36
36
|
</h1>
|
|
37
|
-
<h4 align="center">Neuronum:
|
|
37
|
+
<h4 align="center">Neuronum: Build Apps that Connect the World</h4>
|
|
38
38
|
|
|
39
39
|
<p align="center">
|
|
40
40
|
<a href="https://neuronum.net">
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
+
cli/main.py,sha256=Yec9ovjqM6iI6IyUU8nhgrpcd7rIMocSoZI8QWY1KC4,35684
|
|
3
|
+
neuronum/__init__.py,sha256=Drsm263_w3_VWgl1YsKLUr8WwVodqV3TSjqpxLjyq_M,46
|
|
4
|
+
neuronum/neuronum.py,sha256=L8Oz1qcTyOiYMTGfiSKgN5Nu9jcl25jFeJOh0XItPjw,17201
|
|
5
|
+
neuronum-5.8.4.dist-info/licenses/LICENSE.md,sha256=zGst0rjgnp6oFuRVwFwB1Ql4sDXt_nw9xbUR49Gf99A,2008
|
|
6
|
+
neuronum-5.8.4.dist-info/METADATA,sha256=T9p6cUzgU3c2P9uvagnunGkRVrvC7DKAZZV26JdSQlQ,5367
|
|
7
|
+
neuronum-5.8.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
8
|
+
neuronum-5.8.4.dist-info/entry_points.txt,sha256=XKYBcRNxGeJpZZkDPsa8HA_RaJ7Km_R_JaUq5T9Nk2U,42
|
|
9
|
+
neuronum-5.8.4.dist-info/top_level.txt,sha256=ru8Fr84cHm6oHr_DcJ8-uaq3RTiuCRFIr6AC8V0zPu4,13
|
|
10
|
+
neuronum-5.8.4.dist-info/RECORD,,
|
neuronum-5.8.3.dist-info/RECORD
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
-
cli/main.py,sha256=Tk1DDlpQLzozWV1ut0HYs-GfXomSFuNoO3zxcwVKjB0,35114
|
|
3
|
-
neuronum/__init__.py,sha256=Drsm263_w3_VWgl1YsKLUr8WwVodqV3TSjqpxLjyq_M,46
|
|
4
|
-
neuronum/neuronum.py,sha256=L8Oz1qcTyOiYMTGfiSKgN5Nu9jcl25jFeJOh0XItPjw,17201
|
|
5
|
-
neuronum-5.8.3.dist-info/licenses/LICENSE.md,sha256=zGst0rjgnp6oFuRVwFwB1Ql4sDXt_nw9xbUR49Gf99A,2008
|
|
6
|
-
neuronum-5.8.3.dist-info/METADATA,sha256=bv0dDVz--a0aCdu_POfUwXgoCxv394aXj8C5eyku71w,5374
|
|
7
|
-
neuronum-5.8.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
8
|
-
neuronum-5.8.3.dist-info/entry_points.txt,sha256=XKYBcRNxGeJpZZkDPsa8HA_RaJ7Km_R_JaUq5T9Nk2U,42
|
|
9
|
-
neuronum-5.8.3.dist-info/top_level.txt,sha256=ru8Fr84cHm6oHr_DcJ8-uaq3RTiuCRFIr6AC8V0zPu4,13
|
|
10
|
-
neuronum-5.8.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|