neuronum 2.0.3__tar.gz → 2.0.5__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.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: neuronum
3
- Version: 2.0.3
3
+ Version: 2.0.5
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.3?**
39
- - **Nodes/Node-CLI**: Initialize Nodes with autogenerated Stream and Sync templates
38
+ ### **What's New in neuronum==2.0.5?**
39
+ - **Nodes/Node-CLI**: Logic update: `neuronum init-node --sync` and `neuronum init-node --stream` are not longer required flags
40
40
 
41
41
  ### New Feature Set
42
42
  - **Cells/Cell-CLI**: Create and manage Neuronum Cells from the command line
@@ -83,7 +83,7 @@ $ neuronum delete-cell
83
83
 
84
84
  List Cells:
85
85
  ```python
86
- cellsList = cell.list_cells() # list Nodes
86
+ cellsList = cell.list_cells() # list Cells
87
87
  ```
88
88
 
89
89
  ### Nodes/Node-CLI
@@ -4,8 +4,8 @@
4
4
 
5
5
  Build, deploy and automate serverless data infrastructures for an interconnected world with `Neuronum`
6
6
 
7
- ### **What's New in neuronum==2.0.3?**
8
- - **Nodes/Node-CLI**: Initialize Nodes with autogenerated Stream and Sync templates
7
+ ### **What's New in neuronum==2.0.5?**
8
+ - **Nodes/Node-CLI**: Logic update: `neuronum init-node --sync` and `neuronum init-node --stream` are not longer required flags
9
9
 
10
10
  ### New Feature Set
11
11
  - **Cells/Cell-CLI**: Create and manage Neuronum Cells from the command line
@@ -52,7 +52,7 @@ $ neuronum delete-cell
52
52
 
53
53
  List Cells:
54
54
  ```python
55
- cellsList = cell.list_cells() # list Nodes
55
+ cellsList = cell.list_cells() # list Cells
56
56
  ```
57
57
 
58
58
  ### Nodes/Node-CLI
@@ -244,8 +244,8 @@ def delete_cell():
244
244
 
245
245
 
246
246
  @click.command()
247
- @click.option('--sync', required=True, nargs=1, help="Stream ID required for sync.")
248
- @click.option('--stream', required=True, nargs=1, help="Stream ID required for stream.")
247
+ @click.option('--sync', nargs=1, default=None, help="Optional stream ID for sync.")
248
+ @click.option('--stream', nargs=1, default=None, help="Optional stream ID for stream.")
249
249
  def init_node(sync, stream):
250
250
 
251
251
  node_type = questionary.select(
@@ -330,7 +330,7 @@ def init_node(sync, stream):
330
330
  nodemd_path = project_path / "NODE.md"
331
331
  nodemd_path.write_text("## Use this NODE.md file to add instructions on how to interact with your node\n")
332
332
 
333
- stx = sync or stream or host.replace("::cell", "::stx")
333
+ stx = sync or stream or "n9gW3LxQcecI::stx"
334
334
 
335
335
  if sync:
336
336
  sync_path = project_path / "sync.py"
@@ -356,11 +356,11 @@ STX = "{stx}"
356
356
  stream = cell.sync(STX)
357
357
  for operation in stream:
358
358
  label = operation.get("label")
359
- value = operation.get("data").get("message")
359
+ data = operation.get("data")
360
360
  ts = operation.get("time")
361
361
  stxID = operation.get("stxID")
362
362
  operator = operation.get("operator")
363
- print(label, value, ts, stxID, operator)
363
+ print(label, data, ts, stxID, operator)
364
364
  """)
365
365
 
366
366
 
@@ -419,11 +419,11 @@ STX = "{stx}"
419
419
  stream = cell.sync(STX)
420
420
  for operation in stream:
421
421
  label = operation.get("label")
422
- value = operation.get("data").get("message")
422
+ message = operation.get("data").get("message")
423
423
  ts = operation.get("time")
424
424
  stxID = operation.get("stxID")
425
425
  operator = operation.get("operator")
426
- print(label, value, ts, stxID, operator)
426
+ print(label, message, ts, stxID, operator)
427
427
  """)
428
428
 
429
429
  click.echo(f"Neuronum Node '{nodeID}' initialized!")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: neuronum
3
- Version: 2.0.3
3
+ Version: 2.0.5
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.3?**
39
- - **Nodes/Node-CLI**: Initialize Nodes with autogenerated Stream and Sync templates
38
+ ### **What's New in neuronum==2.0.5?**
39
+ - **Nodes/Node-CLI**: Logic update: `neuronum init-node --sync` and `neuronum init-node --stream` are not longer required flags
40
40
 
41
41
  ### New Feature Set
42
42
  - **Cells/Cell-CLI**: Create and manage Neuronum Cells from the command line
@@ -83,7 +83,7 @@ $ neuronum delete-cell
83
83
 
84
84
  List Cells:
85
85
  ```python
86
- cellsList = cell.list_cells() # list Nodes
86
+ cellsList = cell.list_cells() # list Cells
87
87
  ```
88
88
 
89
89
  ### Nodes/Node-CLI
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name='neuronum',
5
- version='2.0.3',
5
+ version='2.0.5',
6
6
  author='Neuronum Cybernetics',
7
7
  author_email='welcome@neuronum.net',
8
8
  description='Official client library to interact with the Neuronum Network',
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes