neuronum 3.0.1__py3-none-any.whl → 3.0.2__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 +11 -4
- {neuronum-3.0.1.dist-info → neuronum-3.0.2.dist-info}/METADATA +8 -3
- {neuronum-3.0.1.dist-info → neuronum-3.0.2.dist-info}/RECORD +7 -7
- {neuronum-3.0.1.dist-info → neuronum-3.0.2.dist-info}/WHEEL +0 -0
- {neuronum-3.0.1.dist-info → neuronum-3.0.2.dist-info}/entry_points.txt +0 -0
- {neuronum-3.0.1.dist-info → neuronum-3.0.2.dist-info}/licenses/LICENSE +0 -0
- {neuronum-3.0.1.dist-info → neuronum-3.0.2.dist-info}/top_level.txt +0 -0
cli/main.py
CHANGED
|
@@ -582,10 +582,14 @@ async def async_stop_node():
|
|
|
582
582
|
|
|
583
583
|
@click.command()
|
|
584
584
|
def connect_node():
|
|
585
|
+
node_type = questionary.select(
|
|
586
|
+
"Choose Node type:",
|
|
587
|
+
choices=["public", "private"]
|
|
588
|
+
).ask()
|
|
585
589
|
descr = click.prompt("Node description (max. 25 characters)")
|
|
586
|
-
asyncio.run(async_connect_node(descr))
|
|
590
|
+
asyncio.run(async_connect_node(descr, node_type))
|
|
587
591
|
|
|
588
|
-
async def async_connect_node(descr):
|
|
592
|
+
async def async_connect_node(descr, node_type):
|
|
589
593
|
env_data = {}
|
|
590
594
|
try:
|
|
591
595
|
with open(".env", "r") as f:
|
|
@@ -617,7 +621,7 @@ async def async_connect_node(descr):
|
|
|
617
621
|
print(f"Error reading NODE.md file: {e}")
|
|
618
622
|
return
|
|
619
623
|
|
|
620
|
-
url = f"https://{network}/api/connect_node"
|
|
624
|
+
url = f"https://{network}/api/connect_node/{node_type}"
|
|
621
625
|
|
|
622
626
|
node = {
|
|
623
627
|
"nodeID": nodeID,
|
|
@@ -642,7 +646,10 @@ async def async_connect_node(descr):
|
|
|
642
646
|
if nodeID == "Node does not exist":
|
|
643
647
|
click.echo(f"Neuronum Node not found! Make sure you initialized your Node correctly")
|
|
644
648
|
else:
|
|
645
|
-
|
|
649
|
+
if node_type == "public":
|
|
650
|
+
click.echo(f"Public Neuronum Node '{nodeID}' connected! Visit: {node_url}")
|
|
651
|
+
else:
|
|
652
|
+
click.echo(f"Private Neuronum Node '{nodeID}' connected!")
|
|
646
653
|
|
|
647
654
|
|
|
648
655
|
@click.command()
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: neuronum
|
|
3
|
-
Version: 3.0.
|
|
3
|
+
Version: 3.0.2
|
|
4
4
|
Summary: Official client library to interact with the Neuronum Network
|
|
5
5
|
Home-page: https://neuronum.net
|
|
6
6
|
Author: Neuronum Cybernetics
|
|
@@ -37,8 +37,8 @@ Dynamic: summary
|
|
|
37
37
|
|
|
38
38
|
A Getting Started into the Neuronum Network: Build, deploy and automate serverless data infrastructures for an interconnected world
|
|
39
39
|
|
|
40
|
-
### **What's New in neuronum 3.0.
|
|
41
|
-
- Added CLI
|
|
40
|
+
### **What's New in neuronum 3.0.2**
|
|
41
|
+
- Added CLI feature in `neuronum connect-node`: Select whether your Node will be publicly or privately listed
|
|
42
42
|
|
|
43
43
|
### **New Feature Set**
|
|
44
44
|
- **Cell/Cell-CLI**: Create and manage your Neuronum Cell, a unique identity for interacting with the Network, directly from the command line.
|
|
@@ -73,6 +73,11 @@ Create your Cell:
|
|
|
73
73
|
$ neuronum create-cell # create Cell / select network and type
|
|
74
74
|
```
|
|
75
75
|
|
|
76
|
+
Connect your Cell:
|
|
77
|
+
```sh
|
|
78
|
+
$ neuronum connect-cell # connect Cell
|
|
79
|
+
```
|
|
80
|
+
|
|
76
81
|
View connected Cell:
|
|
77
82
|
```sh
|
|
78
83
|
$ neuronum view-cell # view Cell ID / output = Connected Cell: 'your_cell_id'"
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
cellai/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
2
|
cellai/cellai.py,sha256=g5oBz-Xx6T4-JWzUs-TJ4y9nHtDmA_IpXh_188OqAZA,281
|
|
3
3
|
cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
-
cli/main.py,sha256=
|
|
4
|
+
cli/main.py,sha256=zwvr856X5xoHZAsGu4MdCfK804u8Mvm7n-9aAiFNbAc,25745
|
|
5
5
|
neuronum/__init__.py,sha256=Drsm263_w3_VWgl1YsKLUr8WwVodqV3TSjqpxLjyq_M,46
|
|
6
6
|
neuronum/neuronum.py,sha256=VUwdF3ynOtZHTASnKzSaHG5GWWfG-oAXxdcGDftbuFE,21412
|
|
7
|
-
neuronum-3.0.
|
|
8
|
-
neuronum-3.0.
|
|
9
|
-
neuronum-3.0.
|
|
10
|
-
neuronum-3.0.
|
|
11
|
-
neuronum-3.0.
|
|
12
|
-
neuronum-3.0.
|
|
7
|
+
neuronum-3.0.2.dist-info/licenses/LICENSE,sha256=UiZjNHiCyRP6WoZfbYQh9cv4JW96wIofKXmzBJrYSUk,1125
|
|
8
|
+
neuronum-3.0.2.dist-info/METADATA,sha256=6u7_NhiR6YiH--UMiRs4JATVkrf8GJ-wNTFxZuBEXHo,4277
|
|
9
|
+
neuronum-3.0.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
10
|
+
neuronum-3.0.2.dist-info/entry_points.txt,sha256=XKYBcRNxGeJpZZkDPsa8HA_RaJ7Km_R_JaUq5T9Nk2U,42
|
|
11
|
+
neuronum-3.0.2.dist-info/top_level.txt,sha256=gqN5tyGnBKMPSzvWQONO4rpTf4gQPMi77O3KAKx88LQ,20
|
|
12
|
+
neuronum-3.0.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|