neuronum 3.0.2__py3-none-any.whl → 3.0.3__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 CHANGED
@@ -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
- def start_node():
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
- process = subprocess.Popen(["python", str(script_path)], start_new_session=True)
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())
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: neuronum
3
- Version: 3.0.2
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.2**
41
- - Added CLI feature in `neuronum connect-node`: Select whether your Node will be publicly or privately listed
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
- - **Neuronum Cell**: Create a Cell to start interacting with the Network
56
- - **Neuronum Node**: Setup a Node that streams and syncs the message: Hello, Neuronum! in real-time
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
@@ -106,7 +107,7 @@ $ neuronum stop-node # stop Node
106
107
 
107
108
  Connect your Node:
108
109
  ```sh
109
- $ 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
110
111
  ```
111
112
 
112
113
  Update your Node:
@@ -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=zwvr856X5xoHZAsGu4MdCfK804u8Mvm7n-9aAiFNbAc,25745
4
+ cli/main.py,sha256=ZN1M8O-BHhm0qQmz1y2N2QFH1xCqlfzsIbwkBaI8q38,26423
5
5
  neuronum/__init__.py,sha256=Drsm263_w3_VWgl1YsKLUr8WwVodqV3TSjqpxLjyq_M,46
6
6
  neuronum/neuronum.py,sha256=VUwdF3ynOtZHTASnKzSaHG5GWWfG-oAXxdcGDftbuFE,21412
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,,
7
+ neuronum-3.0.3.dist-info/licenses/LICENSE,sha256=UiZjNHiCyRP6WoZfbYQh9cv4JW96wIofKXmzBJrYSUk,1125
8
+ neuronum-3.0.3.dist-info/METADATA,sha256=_TaOsjz0Z6PhSVaNSVW16c6aZ--72DwO5wMZbxVoVb4,4287
9
+ neuronum-3.0.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
10
+ neuronum-3.0.3.dist-info/entry_points.txt,sha256=XKYBcRNxGeJpZZkDPsa8HA_RaJ7Km_R_JaUq5T9Nk2U,42
11
+ neuronum-3.0.3.dist-info/top_level.txt,sha256=gqN5tyGnBKMPSzvWQONO4rpTf4gQPMi77O3KAKx88LQ,20
12
+ neuronum-3.0.3.dist-info/RECORD,,