neuronum 5.2.0__tar.gz → 5.3.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-5.2.0/neuronum.egg-info → neuronum-5.3.0}/PKG-INFO +20 -26
- {neuronum-5.2.0 → neuronum-5.3.0}/README.md +19 -25
- {neuronum-5.2.0 → neuronum-5.3.0}/cli/main.py +36 -16
- {neuronum-5.2.0 → neuronum-5.3.0/neuronum.egg-info}/PKG-INFO +20 -26
- {neuronum-5.2.0 → neuronum-5.3.0}/setup.py +1 -1
- {neuronum-5.2.0 → neuronum-5.3.0}/LICENSE +0 -0
- {neuronum-5.2.0 → neuronum-5.3.0}/cli/__init__.py +0 -0
- {neuronum-5.2.0 → neuronum-5.3.0}/neuronum/__init__.py +0 -0
- {neuronum-5.2.0 → neuronum-5.3.0}/neuronum/neuronum.py +0 -0
- {neuronum-5.2.0 → neuronum-5.3.0}/neuronum.egg-info/SOURCES.txt +0 -0
- {neuronum-5.2.0 → neuronum-5.3.0}/neuronum.egg-info/dependency_links.txt +0 -0
- {neuronum-5.2.0 → neuronum-5.3.0}/neuronum.egg-info/entry_points.txt +0 -0
- {neuronum-5.2.0 → neuronum-5.3.0}/neuronum.egg-info/requires.txt +0 -0
- {neuronum-5.2.0 → neuronum-5.3.0}/neuronum.egg-info/top_level.txt +0 -0
- {neuronum-5.2.0 → neuronum-5.3.0}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: neuronum
|
|
3
|
-
Version: 5.
|
|
3
|
+
Version: 5.3.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
|
|
@@ -39,6 +39,7 @@ Dynamic: summary
|
|
|
39
39
|
- Learn about Neuronum
|
|
40
40
|
- Connect to Neuronum
|
|
41
41
|
- Build on Neuronum
|
|
42
|
+
- Interact with Neuronum
|
|
42
43
|
|
|
43
44
|
|
|
44
45
|
### **About Neuronum**
|
|
@@ -58,7 +59,7 @@ Neuronum is a framework to build serverless connected app & data gateways automa
|
|
|
58
59
|
|
|
59
60
|
#### Requirements
|
|
60
61
|
- Python >= 3.8 -> https://www.python.org/downloads/
|
|
61
|
-
- neuronum >=
|
|
62
|
+
- neuronum >= 5.3.0 -> https://pypi.org/project/neuronum/
|
|
62
63
|
|
|
63
64
|
|
|
64
65
|
------------------
|
|
@@ -75,29 +76,19 @@ Create Cell:
|
|
|
75
76
|
neuronum create-cell # create Cell / Cell type / Cell network
|
|
76
77
|
```
|
|
77
78
|
|
|
78
|
-
or
|
|
79
|
-
|
|
80
|
-
Connect Cell:
|
|
81
|
-
```sh
|
|
82
|
-
neuronum connect-cell # connect Cell
|
|
83
|
-
```
|
|
84
|
-
|
|
85
|
-
View connected Cell:
|
|
86
|
-
```sh
|
|
87
|
-
neuronum view-cell # view Cell / output = Connected Cell: 'cell_id'"
|
|
88
|
-
```
|
|
89
|
-
|
|
90
79
|
|
|
91
80
|
------------------
|
|
92
81
|
|
|
93
82
|
|
|
94
83
|
### **Build on Neuronum**
|
|
95
|
-
|
|
96
|
-
|
|
84
|
+
Initialize Node (app template):
|
|
85
|
+
```sh
|
|
86
|
+
neuronum init-node --app # initialize a Node with app template
|
|
87
|
+
```
|
|
97
88
|
|
|
98
|
-
|
|
89
|
+
Change into Node folder
|
|
99
90
|
```sh
|
|
100
|
-
|
|
91
|
+
cd node_node_id # change directory
|
|
101
92
|
```
|
|
102
93
|
|
|
103
94
|
Start Node:
|
|
@@ -105,12 +96,15 @@ Start Node:
|
|
|
105
96
|
neuronum start-node # start Node
|
|
106
97
|
```
|
|
107
98
|
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
neuronum stop-node # stop Node
|
|
111
|
-
```
|
|
99
|
+
**Node Examples**
|
|
100
|
+
Visit: https://github.com/neuronumcybernetics/neuronum/tree/main/how_tos/nodes
|
|
112
101
|
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
102
|
+
|
|
103
|
+
------------------
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
### **Interact with Neuronum**
|
|
107
|
+
1. Visit: https://neuronum.net
|
|
108
|
+
2. Connect your Cell
|
|
109
|
+
3. Explore Transmitters
|
|
110
|
+
4. Activate Transmitters
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
- Learn about Neuronum
|
|
8
8
|
- Connect to Neuronum
|
|
9
9
|
- Build on Neuronum
|
|
10
|
+
- Interact with Neuronum
|
|
10
11
|
|
|
11
12
|
|
|
12
13
|
### **About Neuronum**
|
|
@@ -26,7 +27,7 @@ Neuronum is a framework to build serverless connected app & data gateways automa
|
|
|
26
27
|
|
|
27
28
|
#### Requirements
|
|
28
29
|
- Python >= 3.8 -> https://www.python.org/downloads/
|
|
29
|
-
- neuronum >=
|
|
30
|
+
- neuronum >= 5.3.0 -> https://pypi.org/project/neuronum/
|
|
30
31
|
|
|
31
32
|
|
|
32
33
|
------------------
|
|
@@ -43,29 +44,19 @@ Create Cell:
|
|
|
43
44
|
neuronum create-cell # create Cell / Cell type / Cell network
|
|
44
45
|
```
|
|
45
46
|
|
|
46
|
-
or
|
|
47
|
-
|
|
48
|
-
Connect Cell:
|
|
49
|
-
```sh
|
|
50
|
-
neuronum connect-cell # connect Cell
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
View connected Cell:
|
|
54
|
-
```sh
|
|
55
|
-
neuronum view-cell # view Cell / output = Connected Cell: 'cell_id'"
|
|
56
|
-
```
|
|
57
|
-
|
|
58
47
|
|
|
59
48
|
------------------
|
|
60
49
|
|
|
61
50
|
|
|
62
51
|
### **Build on Neuronum**
|
|
63
|
-
|
|
64
|
-
|
|
52
|
+
Initialize Node (app template):
|
|
53
|
+
```sh
|
|
54
|
+
neuronum init-node --app # initialize a Node with app template
|
|
55
|
+
```
|
|
65
56
|
|
|
66
|
-
|
|
57
|
+
Change into Node folder
|
|
67
58
|
```sh
|
|
68
|
-
|
|
59
|
+
cd node_node_id # change directory
|
|
69
60
|
```
|
|
70
61
|
|
|
71
62
|
Start Node:
|
|
@@ -73,12 +64,15 @@ Start Node:
|
|
|
73
64
|
neuronum start-node # start Node
|
|
74
65
|
```
|
|
75
66
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
neuronum stop-node # stop Node
|
|
79
|
-
```
|
|
67
|
+
**Node Examples**
|
|
68
|
+
Visit: https://github.com/neuronumcybernetics/neuronum/tree/main/how_tos/nodes
|
|
80
69
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
70
|
+
|
|
71
|
+
------------------
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
### **Interact with Neuronum**
|
|
75
|
+
1. Visit: https://neuronum.net
|
|
76
|
+
2. Connect your Cell
|
|
77
|
+
3. Explore Transmitters
|
|
78
|
+
4. Activate Transmitters
|
|
@@ -500,7 +500,23 @@ async def main():
|
|
|
500
500
|
asyncio.run(main())
|
|
501
501
|
""")
|
|
502
502
|
|
|
503
|
-
if app:
|
|
503
|
+
if app and nodeID:
|
|
504
|
+
|
|
505
|
+
descr = f"{nodeID} App"
|
|
506
|
+
partners = ["public"]
|
|
507
|
+
stxID = await cell.create_stx(descr, partners)
|
|
508
|
+
|
|
509
|
+
|
|
510
|
+
descr = f"Greet {nodeID}"
|
|
511
|
+
key_values = {
|
|
512
|
+
"say": "hello",
|
|
513
|
+
}
|
|
514
|
+
STX = stxID
|
|
515
|
+
label = "say:hello"
|
|
516
|
+
partners = ["public"]
|
|
517
|
+
txID = await cell.create_tx(descr, key_values, STX, label, partners)
|
|
518
|
+
|
|
519
|
+
|
|
504
520
|
app_path = project_path / "app.py"
|
|
505
521
|
app_path.write_text(f"""\
|
|
506
522
|
import asyncio
|
|
@@ -521,27 +537,31 @@ cell = neuronum.Cell(
|
|
|
521
537
|
synapse=synapse
|
|
522
538
|
)
|
|
523
539
|
|
|
524
|
-
async def main():
|
|
525
|
-
STX = "
|
|
540
|
+
async def main():
|
|
541
|
+
STX = "{stxID}"
|
|
526
542
|
async for operation in cell.sync(STX):
|
|
527
543
|
txID = operation.get("txID")
|
|
528
544
|
client = operation.get("operator")
|
|
529
545
|
|
|
530
|
-
if txID == "
|
|
546
|
+
if txID == "{txID}":
|
|
531
547
|
data = {{
|
|
532
|
-
"
|
|
533
|
-
|
|
534
|
-
|
|
548
|
+
"json": f"Hello {{client}} from {nodeID}",
|
|
549
|
+
"html": f\"\"\"
|
|
550
|
+
<!DOCTYPE html>
|
|
551
|
+
<html>
|
|
552
|
+
<head>
|
|
553
|
+
<meta charset="UTF-8">
|
|
554
|
+
<title>Greeting Node</title>
|
|
555
|
+
</head>
|
|
556
|
+
<body>
|
|
557
|
+
<div class="card">
|
|
558
|
+
<h1>Hello, {{client}}</h1>
|
|
559
|
+
<p>Greetings from <span class="node">{nodeID}</span></p>
|
|
560
|
+
</div>
|
|
561
|
+
</body>
|
|
562
|
+
</html>
|
|
563
|
+
\"\"\"
|
|
535
564
|
|
|
536
|
-
if txID == "id::tx":
|
|
537
|
-
data = {{
|
|
538
|
-
"response": "TX activated!"
|
|
539
|
-
}}
|
|
540
|
-
await cell.tx_response(txID, client, data)
|
|
541
|
-
|
|
542
|
-
if txID == "id::tx":
|
|
543
|
-
data = {{
|
|
544
|
-
"response": "TX activated!"
|
|
545
565
|
}}
|
|
546
566
|
await cell.tx_response(txID, client, data)
|
|
547
567
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: neuronum
|
|
3
|
-
Version: 5.
|
|
3
|
+
Version: 5.3.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
|
|
@@ -39,6 +39,7 @@ Dynamic: summary
|
|
|
39
39
|
- Learn about Neuronum
|
|
40
40
|
- Connect to Neuronum
|
|
41
41
|
- Build on Neuronum
|
|
42
|
+
- Interact with Neuronum
|
|
42
43
|
|
|
43
44
|
|
|
44
45
|
### **About Neuronum**
|
|
@@ -58,7 +59,7 @@ Neuronum is a framework to build serverless connected app & data gateways automa
|
|
|
58
59
|
|
|
59
60
|
#### Requirements
|
|
60
61
|
- Python >= 3.8 -> https://www.python.org/downloads/
|
|
61
|
-
- neuronum >=
|
|
62
|
+
- neuronum >= 5.3.0 -> https://pypi.org/project/neuronum/
|
|
62
63
|
|
|
63
64
|
|
|
64
65
|
------------------
|
|
@@ -75,29 +76,19 @@ Create Cell:
|
|
|
75
76
|
neuronum create-cell # create Cell / Cell type / Cell network
|
|
76
77
|
```
|
|
77
78
|
|
|
78
|
-
or
|
|
79
|
-
|
|
80
|
-
Connect Cell:
|
|
81
|
-
```sh
|
|
82
|
-
neuronum connect-cell # connect Cell
|
|
83
|
-
```
|
|
84
|
-
|
|
85
|
-
View connected Cell:
|
|
86
|
-
```sh
|
|
87
|
-
neuronum view-cell # view Cell / output = Connected Cell: 'cell_id'"
|
|
88
|
-
```
|
|
89
|
-
|
|
90
79
|
|
|
91
80
|
------------------
|
|
92
81
|
|
|
93
82
|
|
|
94
83
|
### **Build on Neuronum**
|
|
95
|
-
|
|
96
|
-
|
|
84
|
+
Initialize Node (app template):
|
|
85
|
+
```sh
|
|
86
|
+
neuronum init-node --app # initialize a Node with app template
|
|
87
|
+
```
|
|
97
88
|
|
|
98
|
-
|
|
89
|
+
Change into Node folder
|
|
99
90
|
```sh
|
|
100
|
-
|
|
91
|
+
cd node_node_id # change directory
|
|
101
92
|
```
|
|
102
93
|
|
|
103
94
|
Start Node:
|
|
@@ -105,12 +96,15 @@ Start Node:
|
|
|
105
96
|
neuronum start-node # start Node
|
|
106
97
|
```
|
|
107
98
|
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
neuronum stop-node # stop Node
|
|
111
|
-
```
|
|
99
|
+
**Node Examples**
|
|
100
|
+
Visit: https://github.com/neuronumcybernetics/neuronum/tree/main/how_tos/nodes
|
|
112
101
|
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
102
|
+
|
|
103
|
+
------------------
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
### **Interact with Neuronum**
|
|
107
|
+
1. Visit: https://neuronum.net
|
|
108
|
+
2. Connect your Cell
|
|
109
|
+
3. Explore Transmitters
|
|
110
|
+
4. Activate Transmitters
|
|
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
|