neuronum 3.0.1__tar.gz → 3.0.3__tar.gz
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.
- {neuronum-3.0.1/neuronum.egg-info → neuronum-3.0.3}/PKG-INFO +12 -6
- {neuronum-3.0.1 → neuronum-3.0.3}/README.md +11 -5
- {neuronum-3.0.1 → neuronum-3.0.3}/cli/main.py +30 -7
- {neuronum-3.0.1 → neuronum-3.0.3/neuronum.egg-info}/PKG-INFO +12 -6
- {neuronum-3.0.1 → neuronum-3.0.3}/setup.py +1 -1
- {neuronum-3.0.1 → neuronum-3.0.3}/LICENSE +0 -0
- {neuronum-3.0.1 → neuronum-3.0.3}/cellai/__init__.py +0 -0
- {neuronum-3.0.1 → neuronum-3.0.3}/cellai/cellai.py +0 -0
- {neuronum-3.0.1 → neuronum-3.0.3}/cli/__init__.py +0 -0
- {neuronum-3.0.1 → neuronum-3.0.3}/neuronum/__init__.py +0 -0
- {neuronum-3.0.1 → neuronum-3.0.3}/neuronum/neuronum.py +0 -0
- {neuronum-3.0.1 → neuronum-3.0.3}/neuronum.egg-info/SOURCES.txt +0 -0
- {neuronum-3.0.1 → neuronum-3.0.3}/neuronum.egg-info/dependency_links.txt +0 -0
- {neuronum-3.0.1 → neuronum-3.0.3}/neuronum.egg-info/entry_points.txt +0 -0
- {neuronum-3.0.1 → neuronum-3.0.3}/neuronum.egg-info/requires.txt +0 -0
- {neuronum-3.0.1 → neuronum-3.0.3}/neuronum.egg-info/top_level.txt +0 -0
- {neuronum-3.0.1 → neuronum-3.0.3}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: neuronum
|
|
3
|
-
Version: 3.0.
|
|
3
|
+
Version: 3.0.3
|
|
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.3**
|
|
41
|
+
- Added CLI feature in `neuronum start-node`: use --d flag to start your Node in "detached" mode
|
|
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.
|
|
@@ -52,8 +52,9 @@ A Getting Started into the Neuronum Network: Build, deploy and automate serverle
|
|
|
52
52
|
|
|
53
53
|
|
|
54
54
|
## Getting Started Goals
|
|
55
|
-
-
|
|
56
|
-
-
|
|
55
|
+
- Create a Cell to start interacting with the Network
|
|
56
|
+
- Setup a Node that streams and syncs the message: Hello, Neuronum!
|
|
57
|
+
- Connect your Node to the Neuronum Network
|
|
57
58
|
|
|
58
59
|
|
|
59
60
|
### Requirements
|
|
@@ -73,6 +74,11 @@ Create your Cell:
|
|
|
73
74
|
$ neuronum create-cell # create Cell / select network and type
|
|
74
75
|
```
|
|
75
76
|
|
|
77
|
+
Connect your Cell:
|
|
78
|
+
```sh
|
|
79
|
+
$ neuronum connect-cell # connect Cell
|
|
80
|
+
```
|
|
81
|
+
|
|
76
82
|
View connected Cell:
|
|
77
83
|
```sh
|
|
78
84
|
$ neuronum view-cell # view Cell ID / output = Connected Cell: 'your_cell_id'"
|
|
@@ -101,7 +107,7 @@ $ neuronum stop-node # stop Node
|
|
|
101
107
|
|
|
102
108
|
Connect your Node:
|
|
103
109
|
```sh
|
|
104
|
-
$ neuronum connect-node # connect your Node / Node description = Test Node
|
|
110
|
+
$ neuronum connect-node # connect your Node / Choose Node Type = private / Node description = Test Node
|
|
105
111
|
```
|
|
106
112
|
|
|
107
113
|
Update your Node:
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
A Getting Started into the Neuronum Network: Build, deploy and automate serverless data infrastructures for an interconnected world
|
|
6
6
|
|
|
7
|
-
### **What's New in neuronum 3.0.
|
|
8
|
-
- Added CLI
|
|
7
|
+
### **What's New in neuronum 3.0.3**
|
|
8
|
+
- Added CLI feature in `neuronum start-node`: use --d flag to start your Node in "detached" mode
|
|
9
9
|
|
|
10
10
|
### **New Feature Set**
|
|
11
11
|
- **Cell/Cell-CLI**: Create and manage your Neuronum Cell, a unique identity for interacting with the Network, directly from the command line.
|
|
@@ -19,8 +19,9 @@ A Getting Started into the Neuronum Network: Build, deploy and automate serverle
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
## Getting Started Goals
|
|
22
|
-
-
|
|
23
|
-
-
|
|
22
|
+
- Create a Cell to start interacting with the Network
|
|
23
|
+
- Setup a Node that streams and syncs the message: Hello, Neuronum!
|
|
24
|
+
- Connect your Node to the Neuronum Network
|
|
24
25
|
|
|
25
26
|
|
|
26
27
|
### Requirements
|
|
@@ -40,6 +41,11 @@ Create your Cell:
|
|
|
40
41
|
$ neuronum create-cell # create Cell / select network and type
|
|
41
42
|
```
|
|
42
43
|
|
|
44
|
+
Connect your Cell:
|
|
45
|
+
```sh
|
|
46
|
+
$ neuronum connect-cell # connect Cell
|
|
47
|
+
```
|
|
48
|
+
|
|
43
49
|
View connected Cell:
|
|
44
50
|
```sh
|
|
45
51
|
$ neuronum view-cell # view Cell ID / output = Connected Cell: 'your_cell_id'"
|
|
@@ -68,7 +74,7 @@ $ neuronum stop-node # stop Node
|
|
|
68
74
|
|
|
69
75
|
Connect your Node:
|
|
70
76
|
```sh
|
|
71
|
-
$ neuronum connect-node # connect your Node / Node description = Test Node
|
|
77
|
+
$ neuronum connect-node # connect your Node / Choose Node Type = private / Node description = Test Node
|
|
72
78
|
```
|
|
73
79
|
|
|
74
80
|
Update your Node:
|
|
@@ -513,8 +513,11 @@ asyncio.run(main())
|
|
|
513
513
|
click.echo(f"Neuronum Node '{nodeID}' initialized!")
|
|
514
514
|
|
|
515
515
|
|
|
516
|
+
import platform
|
|
517
|
+
|
|
516
518
|
@click.command()
|
|
517
|
-
|
|
519
|
+
@click.option('--d', is_flag=True, help="Start node in detached mode")
|
|
520
|
+
def start_node(d):
|
|
518
521
|
scan_type = questionary.select(
|
|
519
522
|
"Scan for Neuronum Cells and Nodes (Ensure Bluetooth is enabled)",
|
|
520
523
|
choices=["On", "Off"]
|
|
@@ -529,11 +532,25 @@ def start_node():
|
|
|
529
532
|
script_files += glob.glob("scan.py")
|
|
530
533
|
|
|
531
534
|
processes = []
|
|
535
|
+
system_name = platform.system() # Detect OS
|
|
532
536
|
|
|
533
537
|
for script in script_files:
|
|
534
538
|
script_path = project_path / script
|
|
535
539
|
if script_path.exists():
|
|
536
|
-
|
|
540
|
+
# Use pythonw on Windows, python elsewhere
|
|
541
|
+
python_cmd = "pythonw" if system_name == "Windows" else "python"
|
|
542
|
+
|
|
543
|
+
if d:
|
|
544
|
+
process = subprocess.Popen(
|
|
545
|
+
["nohup", python_cmd, str(script_path), "&"] if system_name != "Windows"
|
|
546
|
+
else [python_cmd, str(script_path)],
|
|
547
|
+
stdout=subprocess.DEVNULL,
|
|
548
|
+
stderr=subprocess.DEVNULL,
|
|
549
|
+
start_new_session=True
|
|
550
|
+
)
|
|
551
|
+
else:
|
|
552
|
+
process = subprocess.Popen([python_cmd, str(script_path)], start_new_session=True)
|
|
553
|
+
|
|
537
554
|
processes.append(process.pid)
|
|
538
555
|
|
|
539
556
|
if not processes:
|
|
@@ -546,7 +563,6 @@ def start_node():
|
|
|
546
563
|
click.echo("Node started successfully!")
|
|
547
564
|
|
|
548
565
|
|
|
549
|
-
|
|
550
566
|
@click.command()
|
|
551
567
|
def stop_node():
|
|
552
568
|
asyncio.run(async_stop_node())
|
|
@@ -582,10 +598,14 @@ async def async_stop_node():
|
|
|
582
598
|
|
|
583
599
|
@click.command()
|
|
584
600
|
def connect_node():
|
|
601
|
+
node_type = questionary.select(
|
|
602
|
+
"Choose Node type:",
|
|
603
|
+
choices=["public", "private"]
|
|
604
|
+
).ask()
|
|
585
605
|
descr = click.prompt("Node description (max. 25 characters)")
|
|
586
|
-
asyncio.run(async_connect_node(descr))
|
|
606
|
+
asyncio.run(async_connect_node(descr, node_type))
|
|
587
607
|
|
|
588
|
-
async def async_connect_node(descr):
|
|
608
|
+
async def async_connect_node(descr, node_type):
|
|
589
609
|
env_data = {}
|
|
590
610
|
try:
|
|
591
611
|
with open(".env", "r") as f:
|
|
@@ -617,7 +637,7 @@ async def async_connect_node(descr):
|
|
|
617
637
|
print(f"Error reading NODE.md file: {e}")
|
|
618
638
|
return
|
|
619
639
|
|
|
620
|
-
url = f"https://{network}/api/connect_node"
|
|
640
|
+
url = f"https://{network}/api/connect_node/{node_type}"
|
|
621
641
|
|
|
622
642
|
node = {
|
|
623
643
|
"nodeID": nodeID,
|
|
@@ -642,7 +662,10 @@ async def async_connect_node(descr):
|
|
|
642
662
|
if nodeID == "Node does not exist":
|
|
643
663
|
click.echo(f"Neuronum Node not found! Make sure you initialized your Node correctly")
|
|
644
664
|
else:
|
|
645
|
-
|
|
665
|
+
if node_type == "public":
|
|
666
|
+
click.echo(f"Public Neuronum Node '{nodeID}' connected! Visit: {node_url}")
|
|
667
|
+
else:
|
|
668
|
+
click.echo(f"Private Neuronum Node '{nodeID}' connected!")
|
|
646
669
|
|
|
647
670
|
|
|
648
671
|
@click.command()
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: neuronum
|
|
3
|
-
Version: 3.0.
|
|
3
|
+
Version: 3.0.3
|
|
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.3**
|
|
41
|
+
- Added CLI feature in `neuronum start-node`: use --d flag to start your Node in "detached" mode
|
|
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.
|
|
@@ -52,8 +52,9 @@ A Getting Started into the Neuronum Network: Build, deploy and automate serverle
|
|
|
52
52
|
|
|
53
53
|
|
|
54
54
|
## Getting Started Goals
|
|
55
|
-
-
|
|
56
|
-
-
|
|
55
|
+
- Create a Cell to start interacting with the Network
|
|
56
|
+
- Setup a Node that streams and syncs the message: Hello, Neuronum!
|
|
57
|
+
- Connect your Node to the Neuronum Network
|
|
57
58
|
|
|
58
59
|
|
|
59
60
|
### Requirements
|
|
@@ -73,6 +74,11 @@ Create your Cell:
|
|
|
73
74
|
$ neuronum create-cell # create Cell / select network and type
|
|
74
75
|
```
|
|
75
76
|
|
|
77
|
+
Connect your Cell:
|
|
78
|
+
```sh
|
|
79
|
+
$ neuronum connect-cell # connect Cell
|
|
80
|
+
```
|
|
81
|
+
|
|
76
82
|
View connected Cell:
|
|
77
83
|
```sh
|
|
78
84
|
$ neuronum view-cell # view Cell ID / output = Connected Cell: 'your_cell_id'"
|
|
@@ -101,7 +107,7 @@ $ neuronum stop-node # stop Node
|
|
|
101
107
|
|
|
102
108
|
Connect your Node:
|
|
103
109
|
```sh
|
|
104
|
-
$ neuronum connect-node # connect your Node / Node description = Test Node
|
|
110
|
+
$ neuronum connect-node # connect your Node / Choose Node Type = private / Node description = Test Node
|
|
105
111
|
```
|
|
106
112
|
|
|
107
113
|
Update your Node:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|