neuronum 2.0.6__py3-none-any.whl → 2.0.7__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
@@ -249,13 +249,6 @@ def delete_cell():
249
249
  @click.option('--stream', multiple=True, default=None, help="Optional stream ID for stream.")
250
250
  def init_node(sync, stream):
251
251
 
252
- node_type = questionary.select(
253
- "Choose Node type:",
254
- choices=["public", "private"]
255
- ).ask()
256
-
257
- descr = click.prompt("Node description (max. 25 characters)")
258
-
259
252
  credentials_folder_path = Path.home() / ".neuronum"
260
253
  env_path = credentials_folder_path / ".env"
261
254
 
@@ -279,8 +272,8 @@ def init_node(sync, stream):
279
272
  click.echo(f"Error reading .env file: {e}")
280
273
  return
281
274
 
282
- url = f"https://{network}/api/init_node/{node_type}"
283
- node = {"descr": descr, "host": host, "password": password, "synapse": synapse}
275
+ url = f"https://{network}/api/init_node"
276
+ node = {"host": host, "password": password, "synapse": synapse}
284
277
 
285
278
  try:
286
279
  response = requests.post(url, json=node)
@@ -513,6 +506,13 @@ def register_node():
513
506
  except Exception as e:
514
507
  print(f"Error reading .env file: {e}")
515
508
  return
509
+
510
+ node_type = questionary.select(
511
+ "Choose Node type:",
512
+ choices=["public", "private"]
513
+ ).ask()
514
+
515
+ descr = click.prompt("Node description (max. 25 characters)")
516
516
 
517
517
  try:
518
518
  with open("NODE.md", "r") as f:
@@ -525,10 +525,11 @@ def register_node():
525
525
  print(f"Error reading NODE.md file: {e}")
526
526
  return
527
527
 
528
- url = f"https://{network}/api/register_node"
528
+ url = f"https://{network}/api/register_node/{node_type}"
529
529
 
530
530
  node = {
531
531
  "nodeID": nodeID,
532
+ "descr": descr,
532
533
  "host": host,
533
534
  "password": password,
534
535
  "synapse": synapse,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: neuronum
3
- Version: 2.0.6
3
+ Version: 2.0.7
4
4
  Summary: Official client library to interact with the Neuronum Network
5
5
  Home-page: https://neuronum.net
6
6
  Author: Neuronum Cybernetics
@@ -35,8 +35,8 @@ Dynamic: summary
35
35
 
36
36
  Build, deploy and automate serverless data infrastructures for an interconnected world with `Neuronum`
37
37
 
38
- ### **What's New in neuronum==2.0.6?**
39
- - **Nodes/Node-CLI**: Improved logic: `neuronum init-node` now supports multiple --stream and --sync flags for better flexibility
38
+ ### **What's New in neuronum==2.0.7?**
39
+ - **Nodes/Node-CLI**: Updated logic: Node Type and Description are now declared during `neuronum register-node` instead of `neuronum init-node`
40
40
 
41
41
  ### New Feature Set
42
42
  - **Cells/Cell-CLI**: Create and manage Neuronum Cells from the command line
@@ -44,7 +44,7 @@ Build, deploy and automate serverless data infrastructures for an interconnected
44
44
  - **Transmitters (TX)**: Automate economic data transfer
45
45
  - **Circuits (CTX)**: Store data in Key-Value-Label databases
46
46
  - **Streams (STX)**: Stream, synchronize and control data in real time
47
- - **Contracts/Tokens**: Automate services exchange and authorization between Cells and Nodes
47
+ - **Contracts/Tokens**: Automate service exchange and authorization between Cells and Nodes
48
48
  - **Cellai**: A local running task assistant in development (version 0.0.1)
49
49
 
50
50
  ### Installation
@@ -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=eTvFa58NO_iCUt9m1gkdDYY_aM1PEto00q-7HGUjITo,20957
4
+ cli/main.py,sha256=V7FlBttuTOIFqynklAZxoHuE3e3uiyqQ9j6QSkrzibo,20970
5
5
  neuronum/__init__.py,sha256=Drsm263_w3_VWgl1YsKLUr8WwVodqV3TSjqpxLjyq_M,46
6
6
  neuronum/neuronum.py,sha256=rkc16omTxjWBEgBXP0rCeab1S3lYDKz1zx_i-tdFjlY,17544
7
- neuronum-2.0.6.dist-info/licenses/LICENSE,sha256=UiZjNHiCyRP6WoZfbYQh9cv4JW96wIofKXmzBJrYSUk,1125
8
- neuronum-2.0.6.dist-info/METADATA,sha256=mm1h5C3BDHjbXR9P4gQOh9S42awe0Fbgjh7SxFLMjGk,13988
9
- neuronum-2.0.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
10
- neuronum-2.0.6.dist-info/entry_points.txt,sha256=XKYBcRNxGeJpZZkDPsa8HA_RaJ7Km_R_JaUq5T9Nk2U,42
11
- neuronum-2.0.6.dist-info/top_level.txt,sha256=gqN5tyGnBKMPSzvWQONO4rpTf4gQPMi77O3KAKx88LQ,20
12
- neuronum-2.0.6.dist-info/RECORD,,
7
+ neuronum-2.0.7.dist-info/licenses/LICENSE,sha256=UiZjNHiCyRP6WoZfbYQh9cv4JW96wIofKXmzBJrYSUk,1125
8
+ neuronum-2.0.7.dist-info/METADATA,sha256=RvuuNmTRR21rmzRkP0T0oVERKp7yafL9pgXumtvDI80,14001
9
+ neuronum-2.0.7.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
10
+ neuronum-2.0.7.dist-info/entry_points.txt,sha256=XKYBcRNxGeJpZZkDPsa8HA_RaJ7Km_R_JaUq5T9Nk2U,42
11
+ neuronum-2.0.7.dist-info/top_level.txt,sha256=gqN5tyGnBKMPSzvWQONO4rpTf4gQPMi77O3KAKx88LQ,20
12
+ neuronum-2.0.7.dist-info/RECORD,,