neuronum 1.7.2__tar.gz → 2.0.0__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-1.7.2 → neuronum-2.0.0}/PKG-INFO +24 -5
- {neuronum-1.7.2 → neuronum-2.0.0}/README.md +11 -3
- neuronum-2.0.0/cellai/cellai.py +7 -0
- neuronum-2.0.0/cli/__init__.py +0 -0
- {neuronum-1.7.2 → neuronum-2.0.0}/cli/main.py +18 -0
- {neuronum-1.7.2 → neuronum-2.0.0}/neuronum/neuronum.py +17 -0
- {neuronum-1.7.2 → neuronum-2.0.0}/neuronum.egg-info/PKG-INFO +24 -5
- {neuronum-1.7.2 → neuronum-2.0.0}/neuronum.egg-info/SOURCES.txt +2 -0
- {neuronum-1.7.2 → neuronum-2.0.0}/neuronum.egg-info/top_level.txt +1 -0
- {neuronum-1.7.2 → neuronum-2.0.0}/setup.py +3 -2
- {neuronum-1.7.2 → neuronum-2.0.0}/LICENSE +0 -0
- {neuronum-1.7.2/cli → neuronum-2.0.0/cellai}/__init__.py +0 -0
- {neuronum-1.7.2 → neuronum-2.0.0}/neuronum/__init__.py +0 -0
- {neuronum-1.7.2 → neuronum-2.0.0}/neuronum.egg-info/dependency_links.txt +0 -0
- {neuronum-1.7.2 → neuronum-2.0.0}/neuronum.egg-info/entry_points.txt +0 -0
- {neuronum-1.7.2 → neuronum-2.0.0}/neuronum.egg-info/requires.txt +0 -0
- {neuronum-1.7.2 → neuronum-2.0.0}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: neuronum
|
|
3
|
-
Version:
|
|
3
|
+
Version: 2.0.0
|
|
4
4
|
Summary: Official client library to interact with the Neuronum Network
|
|
5
5
|
Home-page: https://neuronum.net
|
|
6
6
|
Author: Neuronum Cybernetics
|
|
@@ -17,20 +17,35 @@ Requires-Dist: websocket-client
|
|
|
17
17
|
Requires-Dist: click
|
|
18
18
|
Requires-Dist: questionary
|
|
19
19
|
Requires-Dist: python-dotenv
|
|
20
|
+
Dynamic: author
|
|
21
|
+
Dynamic: author-email
|
|
22
|
+
Dynamic: classifier
|
|
23
|
+
Dynamic: description
|
|
24
|
+
Dynamic: description-content-type
|
|
25
|
+
Dynamic: home-page
|
|
26
|
+
Dynamic: license-file
|
|
27
|
+
Dynamic: project-url
|
|
28
|
+
Dynamic: requires-dist
|
|
29
|
+
Dynamic: requires-python
|
|
30
|
+
Dynamic: summary
|
|
20
31
|
|
|
21
32
|

|
|
22
33
|
|
|
23
34
|
[](https://neuronum.net) [](https://github.com/neuronumcybernetics/neuronum)
|
|
24
35
|
|
|
25
|
-
Build, deploy and automate serverless
|
|
36
|
+
Build, deploy and automate serverless data infrastructures for an interconnected world with `Neuronum`
|
|
26
37
|
|
|
27
|
-
|
|
38
|
+
### **Neuronum 2.0.0 – What's New?**
|
|
39
|
+
- **Cellai**: A local running task assistant in development (version 0.0.1)
|
|
40
|
+
|
|
41
|
+
### New Feature Set
|
|
28
42
|
- **Cells/Cell-CLI**: Create and manage Neuronum Cells from the command line
|
|
29
43
|
- **Nodes/Node-CLI**: Setup and manage Neuronum Nodes from the command line
|
|
30
44
|
- **Transmitters (TX)**: Automate economic data transfer
|
|
31
45
|
- **Circuits (CTX)**: Store data in Key-Value-Label databases
|
|
32
46
|
- **Streams (STX)**: Stream, synchronize and control data in real time
|
|
33
47
|
- **Contracts/Tokens**: Automate services exchange and authorization between Cells and Nodes
|
|
48
|
+
- **Cellai**: A local running task assistant in development (version 0.0.1)
|
|
34
49
|
|
|
35
50
|
### Installation
|
|
36
51
|
Install the Neuronum library using pip:
|
|
@@ -66,6 +81,11 @@ Delete Cell:
|
|
|
66
81
|
$ neuronum delete-cell
|
|
67
82
|
```
|
|
68
83
|
|
|
84
|
+
List Cells:
|
|
85
|
+
```python
|
|
86
|
+
cellsList = cell.list_cells() # list Nodes
|
|
87
|
+
```
|
|
88
|
+
|
|
69
89
|
### Nodes/Node-CLI
|
|
70
90
|
Neuronum Nodes are soft- and hardware components that power the Neuronum Network, enabling seamless communication between Nodes and Cells
|
|
71
91
|
|
|
@@ -304,7 +324,6 @@ Create a Contract:
|
|
|
304
324
|
```python
|
|
305
325
|
descr = "Test Contract" # short description (max 25 characters)
|
|
306
326
|
details = { # token details
|
|
307
|
-
"price_in_eur": False, # token price in EUR (int, float or False)
|
|
308
327
|
"max_usage": False, # max number of uses (int or False)
|
|
309
328
|
"validity_in_min": False, # token expiration time in min (int, float or False)
|
|
310
329
|
"expiration_date": False # expiration date (DD-MM-YYYY or False)
|
|
@@ -2,15 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://neuronum.net) [](https://github.com/neuronumcybernetics/neuronum)
|
|
4
4
|
|
|
5
|
-
Build, deploy and automate serverless
|
|
5
|
+
Build, deploy and automate serverless data infrastructures for an interconnected world with `Neuronum`
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
### **Neuronum 2.0.0 – What's New?**
|
|
8
|
+
- **Cellai**: A local running task assistant in development (version 0.0.1)
|
|
9
|
+
|
|
10
|
+
### New Feature Set
|
|
8
11
|
- **Cells/Cell-CLI**: Create and manage Neuronum Cells from the command line
|
|
9
12
|
- **Nodes/Node-CLI**: Setup and manage Neuronum Nodes from the command line
|
|
10
13
|
- **Transmitters (TX)**: Automate economic data transfer
|
|
11
14
|
- **Circuits (CTX)**: Store data in Key-Value-Label databases
|
|
12
15
|
- **Streams (STX)**: Stream, synchronize and control data in real time
|
|
13
16
|
- **Contracts/Tokens**: Automate services exchange and authorization between Cells and Nodes
|
|
17
|
+
- **Cellai**: A local running task assistant in development (version 0.0.1)
|
|
14
18
|
|
|
15
19
|
### Installation
|
|
16
20
|
Install the Neuronum library using pip:
|
|
@@ -46,6 +50,11 @@ Delete Cell:
|
|
|
46
50
|
$ neuronum delete-cell
|
|
47
51
|
```
|
|
48
52
|
|
|
53
|
+
List Cells:
|
|
54
|
+
```python
|
|
55
|
+
cellsList = cell.list_cells() # list Nodes
|
|
56
|
+
```
|
|
57
|
+
|
|
49
58
|
### Nodes/Node-CLI
|
|
50
59
|
Neuronum Nodes are soft- and hardware components that power the Neuronum Network, enabling seamless communication between Nodes and Cells
|
|
51
60
|
|
|
@@ -284,7 +293,6 @@ Create a Contract:
|
|
|
284
293
|
```python
|
|
285
294
|
descr = "Test Contract" # short description (max 25 characters)
|
|
286
295
|
details = { # token details
|
|
287
|
-
"price_in_eur": False, # token price in EUR (int, float or False)
|
|
288
296
|
"max_usage": False, # max number of uses (int or False)
|
|
289
297
|
"validity_in_min": False, # token expiration time in min (int, float or False)
|
|
290
298
|
"expiration_date": False # expiration date (DD-MM-YYYY or False)
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
def main():
|
|
2
|
+
print("Hello, it's your task assistant Cellai")
|
|
3
|
+
print("I'm still in development, but my creators are happy to share updates.")
|
|
4
|
+
print("Feel free to reach out to them at <welcome@neuronum.net> for more details.")
|
|
5
|
+
|
|
6
|
+
if __name__ == "__main__":
|
|
7
|
+
main()
|
|
File without changes
|
|
@@ -6,6 +6,8 @@ import subprocess
|
|
|
6
6
|
import os
|
|
7
7
|
import neuronum
|
|
8
8
|
import json
|
|
9
|
+
import sys
|
|
10
|
+
import cellai
|
|
9
11
|
|
|
10
12
|
@click.group()
|
|
11
13
|
def cli():
|
|
@@ -285,6 +287,7 @@ def init_node(sync):
|
|
|
285
287
|
synapse=synapse
|
|
286
288
|
)
|
|
287
289
|
|
|
290
|
+
cells = cell.list_cells()
|
|
288
291
|
tx = cell.list_tx()
|
|
289
292
|
ctx = cell.list_ctx()
|
|
290
293
|
stx = cell.list_stx()
|
|
@@ -313,6 +316,9 @@ def init_node(sync):
|
|
|
313
316
|
gitignore_path = project_path / ".gitignore"
|
|
314
317
|
gitignore_path.write_text(f".env\n")
|
|
315
318
|
|
|
319
|
+
cells_path = Path("cells.json")
|
|
320
|
+
cells_path.write_text(json.dumps(cells, indent=4))
|
|
321
|
+
|
|
316
322
|
tx_path = project_path / "transmitters.json"
|
|
317
323
|
tx_path.write_text(json.dumps(tx, indent=4))
|
|
318
324
|
|
|
@@ -514,18 +520,21 @@ def update_node():
|
|
|
514
520
|
synapse=synapse
|
|
515
521
|
)
|
|
516
522
|
|
|
523
|
+
cells = cell.list_cells()
|
|
517
524
|
tx = cell.list_tx()
|
|
518
525
|
ctx = cell.list_ctx()
|
|
519
526
|
stx = cell.list_stx()
|
|
520
527
|
contracts = cell.list_contracts()
|
|
521
528
|
nodes = cell.list_nodes()
|
|
522
529
|
|
|
530
|
+
cells_path = Path("cells.json")
|
|
523
531
|
tx_path = Path("transmitters.json")
|
|
524
532
|
ctx_path = Path("circuits.json")
|
|
525
533
|
stx_path = Path("streams.json")
|
|
526
534
|
contracts_path = Path("contracts.json")
|
|
527
535
|
nodes_path = Path("nodes.json")
|
|
528
536
|
|
|
537
|
+
cells_path.write_text(json.dumps(cells, indent=4))
|
|
529
538
|
tx_path.write_text(json.dumps(tx, indent=4))
|
|
530
539
|
ctx_path.write_text(json.dumps(ctx, indent=4))
|
|
531
540
|
stx_path.write_text(json.dumps(stx, indent=4))
|
|
@@ -577,6 +586,14 @@ def delete_node():
|
|
|
577
586
|
click.echo(f"Neuronum Node '{nodeID}' deleted!")
|
|
578
587
|
|
|
579
588
|
|
|
589
|
+
@click.command()
|
|
590
|
+
def call_cellai():
|
|
591
|
+
try:
|
|
592
|
+
from cellai import cellai
|
|
593
|
+
cellai.main()
|
|
594
|
+
except ImportError:
|
|
595
|
+
click.echo("Cellai not found. Please check the necessary dependencies.")
|
|
596
|
+
|
|
580
597
|
cli.add_command(create_cell)
|
|
581
598
|
cli.add_command(connect_cell)
|
|
582
599
|
cli.add_command(view_cell)
|
|
@@ -588,6 +605,7 @@ cli.add_command(stop_node)
|
|
|
588
605
|
cli.add_command(register_node)
|
|
589
606
|
cli.add_command(update_node)
|
|
590
607
|
cli.add_command(delete_node)
|
|
608
|
+
cli.add_command(call_cellai)
|
|
591
609
|
|
|
592
610
|
|
|
593
611
|
if __name__ == "__main__":
|
|
@@ -206,6 +206,23 @@ class Cell:
|
|
|
206
206
|
print(f"Unexpected error: {e}")
|
|
207
207
|
|
|
208
208
|
|
|
209
|
+
def list_cells(self):
|
|
210
|
+
full_url = f"https://{self.network}/api/list_cells"
|
|
211
|
+
|
|
212
|
+
list_cells = {
|
|
213
|
+
"cell": self.to_dict()
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
try:
|
|
217
|
+
response = requests.get(full_url, json=list_cells)
|
|
218
|
+
response.raise_for_status()
|
|
219
|
+
return response.json()["Cells"]
|
|
220
|
+
except requests.exceptions.RequestException as e:
|
|
221
|
+
print(f"Error sending request: {e}")
|
|
222
|
+
except Exception as e:
|
|
223
|
+
print(f"Unexpected error: {e}")
|
|
224
|
+
|
|
225
|
+
|
|
209
226
|
def list_tx(self):
|
|
210
227
|
full_url = f"https://{self.network}/api/list_tx"
|
|
211
228
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: neuronum
|
|
3
|
-
Version:
|
|
3
|
+
Version: 2.0.0
|
|
4
4
|
Summary: Official client library to interact with the Neuronum Network
|
|
5
5
|
Home-page: https://neuronum.net
|
|
6
6
|
Author: Neuronum Cybernetics
|
|
@@ -17,20 +17,35 @@ Requires-Dist: websocket-client
|
|
|
17
17
|
Requires-Dist: click
|
|
18
18
|
Requires-Dist: questionary
|
|
19
19
|
Requires-Dist: python-dotenv
|
|
20
|
+
Dynamic: author
|
|
21
|
+
Dynamic: author-email
|
|
22
|
+
Dynamic: classifier
|
|
23
|
+
Dynamic: description
|
|
24
|
+
Dynamic: description-content-type
|
|
25
|
+
Dynamic: home-page
|
|
26
|
+
Dynamic: license-file
|
|
27
|
+
Dynamic: project-url
|
|
28
|
+
Dynamic: requires-dist
|
|
29
|
+
Dynamic: requires-python
|
|
30
|
+
Dynamic: summary
|
|
20
31
|
|
|
21
32
|

|
|
22
33
|
|
|
23
34
|
[](https://neuronum.net) [](https://github.com/neuronumcybernetics/neuronum)
|
|
24
35
|
|
|
25
|
-
Build, deploy and automate serverless
|
|
36
|
+
Build, deploy and automate serverless data infrastructures for an interconnected world with `Neuronum`
|
|
26
37
|
|
|
27
|
-
|
|
38
|
+
### **Neuronum 2.0.0 – What's New?**
|
|
39
|
+
- **Cellai**: A local running task assistant in development (version 0.0.1)
|
|
40
|
+
|
|
41
|
+
### New Feature Set
|
|
28
42
|
- **Cells/Cell-CLI**: Create and manage Neuronum Cells from the command line
|
|
29
43
|
- **Nodes/Node-CLI**: Setup and manage Neuronum Nodes from the command line
|
|
30
44
|
- **Transmitters (TX)**: Automate economic data transfer
|
|
31
45
|
- **Circuits (CTX)**: Store data in Key-Value-Label databases
|
|
32
46
|
- **Streams (STX)**: Stream, synchronize and control data in real time
|
|
33
47
|
- **Contracts/Tokens**: Automate services exchange and authorization between Cells and Nodes
|
|
48
|
+
- **Cellai**: A local running task assistant in development (version 0.0.1)
|
|
34
49
|
|
|
35
50
|
### Installation
|
|
36
51
|
Install the Neuronum library using pip:
|
|
@@ -66,6 +81,11 @@ Delete Cell:
|
|
|
66
81
|
$ neuronum delete-cell
|
|
67
82
|
```
|
|
68
83
|
|
|
84
|
+
List Cells:
|
|
85
|
+
```python
|
|
86
|
+
cellsList = cell.list_cells() # list Nodes
|
|
87
|
+
```
|
|
88
|
+
|
|
69
89
|
### Nodes/Node-CLI
|
|
70
90
|
Neuronum Nodes are soft- and hardware components that power the Neuronum Network, enabling seamless communication between Nodes and Cells
|
|
71
91
|
|
|
@@ -304,7 +324,6 @@ Create a Contract:
|
|
|
304
324
|
```python
|
|
305
325
|
descr = "Test Contract" # short description (max 25 characters)
|
|
306
326
|
details = { # token details
|
|
307
|
-
"price_in_eur": False, # token price in EUR (int, float or False)
|
|
308
327
|
"max_usage": False, # max number of uses (int or False)
|
|
309
328
|
"validity_in_min": False, # token expiration time in min (int, float or False)
|
|
310
329
|
"expiration_date": False # expiration date (DD-MM-YYYY or False)
|
|
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
|
|
|
2
2
|
|
|
3
3
|
setup(
|
|
4
4
|
name='neuronum',
|
|
5
|
-
version='
|
|
5
|
+
version='2.0.0',
|
|
6
6
|
author='Neuronum Cybernetics',
|
|
7
7
|
author_email='welcome@neuronum.net',
|
|
8
8
|
description='Official client library to interact with the Neuronum Network',
|
|
@@ -12,12 +12,13 @@ setup(
|
|
|
12
12
|
project_urls={
|
|
13
13
|
"GitHub": "https://github.com/neuronumcybernetics/neuronum",
|
|
14
14
|
},
|
|
15
|
-
packages=find_packages(),
|
|
15
|
+
packages=find_packages(include=["neuronum", "cellai", "cli"]),
|
|
16
16
|
classifiers=[
|
|
17
17
|
"Programming Language :: Python :: 3",
|
|
18
18
|
"License :: OSI Approved :: MIT License",
|
|
19
19
|
"Operating System :: OS Independent",
|
|
20
20
|
],
|
|
21
|
+
|
|
21
22
|
install_requires=[
|
|
22
23
|
'requests',
|
|
23
24
|
'websocket-client',
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|