neuronum 1.6.0__tar.gz → 1.7.1__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.6.0 → neuronum-1.7.1}/PKG-INFO +62 -47
- {neuronum-1.6.0 → neuronum-1.7.1}/README.md +59 -44
- neuronum-1.7.1/cli/main.py +596 -0
- {neuronum-1.6.0 → neuronum-1.7.1}/neuronum/neuronum.py +32 -35
- {neuronum-1.6.0 → neuronum-1.7.1}/neuronum.egg-info/PKG-INFO +62 -47
- {neuronum-1.6.0 → neuronum-1.7.1}/setup.py +3 -3
- neuronum-1.6.0/cli/main.py +0 -341
- {neuronum-1.6.0 → neuronum-1.7.1}/LICENSE +0 -0
- {neuronum-1.6.0 → neuronum-1.7.1}/cli/__init__.py +0 -0
- {neuronum-1.6.0 → neuronum-1.7.1}/neuronum/__init__.py +0 -0
- {neuronum-1.6.0 → neuronum-1.7.1}/neuronum.egg-info/SOURCES.txt +0 -0
- {neuronum-1.6.0 → neuronum-1.7.1}/neuronum.egg-info/dependency_links.txt +0 -0
- {neuronum-1.6.0 → neuronum-1.7.1}/neuronum.egg-info/entry_points.txt +0 -0
- {neuronum-1.6.0 → neuronum-1.7.1}/neuronum.egg-info/requires.txt +0 -0
- {neuronum-1.6.0 → neuronum-1.7.1}/neuronum.egg-info/top_level.txt +0 -0
- {neuronum-1.6.0 → neuronum-1.7.1}/setup.cfg +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: neuronum
|
|
3
|
-
Version: 1.
|
|
4
|
-
Summary:
|
|
3
|
+
Version: 1.7.1
|
|
4
|
+
Summary: Official client library to interact with the Neuronum Network
|
|
5
5
|
Home-page: https://neuronum.net
|
|
6
6
|
Author: Neuronum Cybernetics
|
|
7
7
|
Author-email: welcome@neuronum.net
|
|
@@ -9,7 +9,7 @@ Project-URL: GitHub, https://github.com/neuronumcybernetics/neuronum
|
|
|
9
9
|
Classifier: Programming Language :: Python :: 3
|
|
10
10
|
Classifier: License :: OSI Approved :: MIT License
|
|
11
11
|
Classifier: Operating System :: OS Independent
|
|
12
|
-
Requires-Python: >=3.
|
|
12
|
+
Requires-Python: >=3.8
|
|
13
13
|
Description-Content-Type: text/markdown
|
|
14
14
|
License-File: LICENSE
|
|
15
15
|
Requires-Dist: requests
|
|
@@ -22,75 +22,90 @@ Requires-Dist: python-dotenv
|
|
|
22
22
|
|
|
23
23
|
[](https://neuronum.net) [](https://github.com/neuronumcybernetics/neuronum)
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
Build, deploy and automate serverless IoT connectivity with `Neuronum`
|
|
26
26
|
|
|
27
27
|
## Features
|
|
28
|
-
- **Cell**:
|
|
29
|
-
- **Nodes/Node-CLI**: Setup and manage Neuronum Nodes from the command line
|
|
28
|
+
- **Cells/Cell-CLI**: Create and manage Neuronum Cells from the command line
|
|
29
|
+
- **Nodes/Node-CLI**: Setup and manage Neuronum Nodes from the command line
|
|
30
30
|
- **Transmitters (TX)**: Automate economic data transfer
|
|
31
31
|
- **Circuits (CTX)**: Store data in Key-Value-Label databases
|
|
32
32
|
- **Streams (STX)**: Stream, synchronize and control data in real time
|
|
33
|
-
- **Contracts/Tokens**: Automate
|
|
34
|
-
|
|
33
|
+
- **Contracts/Tokens**: Automate services exchange and authorization between Cells and Nodes
|
|
35
34
|
|
|
36
35
|
### Installation
|
|
37
36
|
Install the Neuronum library using pip:
|
|
38
|
-
```
|
|
39
|
-
pip install neuronum
|
|
37
|
+
```sh
|
|
38
|
+
$ pip install neuronum
|
|
40
39
|
```
|
|
41
40
|
|
|
42
|
-
### Cell
|
|
43
|
-
To interact with the Network you
|
|
44
|
-
Create your Cell: [Create Cell](https://neuronum.net/createcell)
|
|
41
|
+
### Cells/Cell-CLI
|
|
42
|
+
To interact with the Neuronum Network, you must first create a Neuronum Cell
|
|
45
43
|
|
|
46
|
-
|
|
47
|
-
```
|
|
48
|
-
|
|
44
|
+
Create Cell:
|
|
45
|
+
```sh
|
|
46
|
+
$ neuronum create-cell
|
|
47
|
+
```
|
|
49
48
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
49
|
+
Connect Cell:
|
|
50
|
+
```sh
|
|
51
|
+
$ neuronum connect-cell
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
View connected Cell:
|
|
55
|
+
```sh
|
|
56
|
+
$ neuronum view-cell
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Disconnect Cell:
|
|
60
|
+
```sh
|
|
61
|
+
$ neuronum disconnect-cell
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
Delete Cell:
|
|
65
|
+
```sh
|
|
66
|
+
$ neuronum delete-cell
|
|
57
67
|
```
|
|
58
68
|
|
|
59
69
|
### Nodes/Node-CLI
|
|
60
|
-
Neuronum Nodes are
|
|
70
|
+
Neuronum Nodes are soft- and hardware components that power the Neuronum Network, enabling seamless communication between Nodes and Cells
|
|
61
71
|
|
|
62
|
-
Initialize
|
|
63
|
-
```
|
|
64
|
-
|
|
72
|
+
Initialize a Node:
|
|
73
|
+
```sh
|
|
74
|
+
$ neuronum init-node # neuronum init-node --sync id::stx (optional)
|
|
65
75
|
```
|
|
66
76
|
|
|
67
|
-
Start
|
|
68
|
-
```
|
|
69
|
-
|
|
77
|
+
Start a Node:
|
|
78
|
+
```sh
|
|
79
|
+
$ neuronum start-node
|
|
70
80
|
```
|
|
71
81
|
|
|
72
|
-
Stop
|
|
73
|
-
```
|
|
74
|
-
|
|
82
|
+
Stop a Node:
|
|
83
|
+
```sh
|
|
84
|
+
$ neuronum stop-node
|
|
75
85
|
```
|
|
76
86
|
|
|
77
|
-
Register
|
|
78
|
-
```
|
|
79
|
-
|
|
87
|
+
Register a Node on the Neuronum Network:
|
|
88
|
+
```sh
|
|
89
|
+
$ neuronum register-node
|
|
80
90
|
```
|
|
81
91
|
|
|
82
|
-
Update
|
|
83
|
-
```
|
|
84
|
-
|
|
92
|
+
Update a Node:
|
|
93
|
+
```sh
|
|
94
|
+
$ neuronum update-node
|
|
85
95
|
```
|
|
86
96
|
|
|
87
|
-
Delete
|
|
88
|
-
```
|
|
89
|
-
|
|
97
|
+
Delete a Node:
|
|
98
|
+
```sh
|
|
99
|
+
$ neuronum delete-node
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
List Nodes your Cell can interact with:
|
|
103
|
+
```python
|
|
104
|
+
nodesList = cell.list_nodes() # list Nodes
|
|
90
105
|
```
|
|
91
106
|
|
|
92
107
|
### Transmitters (TX)
|
|
93
|
-
Transmitters (TX) are used to create predefined templates to receive and send data in a standardized format
|
|
108
|
+
Transmitters (TX) are used to create predefined templates to receive and send data in a standardized format
|
|
94
109
|
|
|
95
110
|
Create Transmitter (TX):
|
|
96
111
|
```python
|
|
@@ -283,15 +298,15 @@ stxList = cell.list_stx() # list Streams
|
|
|
283
298
|
```
|
|
284
299
|
|
|
285
300
|
### Contracts/Tokens
|
|
286
|
-
Contracts
|
|
301
|
+
Contracts are predefined token-based rules to automate service exchange and authorization between Cells and Nodes
|
|
287
302
|
|
|
288
303
|
Create a Contract:
|
|
289
304
|
```python
|
|
290
305
|
descr = "Test Contract" # short description (max 25 characters)
|
|
291
306
|
details = { # define token details
|
|
292
|
-
"price_in_eur":
|
|
293
|
-
"max_usage":
|
|
294
|
-
"validity_in_min":
|
|
307
|
+
"price_in_eur": False, # token price in EUR (int, float or False)
|
|
308
|
+
"max_usage": False, # max number of uses (int or False)
|
|
309
|
+
"validity_in_min": False # token expiration time in min (int, float or False)
|
|
295
310
|
}
|
|
296
311
|
partners = ["id::cell", "id::cell"]
|
|
297
312
|
contractID = cell.create_contract(descr, details, partners)
|
|
@@ -2,75 +2,90 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://neuronum.net) [](https://github.com/neuronumcybernetics/neuronum)
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Build, deploy and automate serverless IoT connectivity with `Neuronum`
|
|
6
6
|
|
|
7
7
|
## Features
|
|
8
|
-
- **Cell**:
|
|
9
|
-
- **Nodes/Node-CLI**: Setup and manage Neuronum Nodes from the command line
|
|
8
|
+
- **Cells/Cell-CLI**: Create and manage Neuronum Cells from the command line
|
|
9
|
+
- **Nodes/Node-CLI**: Setup and manage Neuronum Nodes from the command line
|
|
10
10
|
- **Transmitters (TX)**: Automate economic data transfer
|
|
11
11
|
- **Circuits (CTX)**: Store data in Key-Value-Label databases
|
|
12
12
|
- **Streams (STX)**: Stream, synchronize and control data in real time
|
|
13
|
-
- **Contracts/Tokens**: Automate
|
|
14
|
-
|
|
13
|
+
- **Contracts/Tokens**: Automate services exchange and authorization between Cells and Nodes
|
|
15
14
|
|
|
16
15
|
### Installation
|
|
17
16
|
Install the Neuronum library using pip:
|
|
18
|
-
```
|
|
19
|
-
pip install neuronum
|
|
17
|
+
```sh
|
|
18
|
+
$ pip install neuronum
|
|
20
19
|
```
|
|
21
20
|
|
|
22
|
-
### Cell
|
|
23
|
-
To interact with the Network you
|
|
24
|
-
Create your Cell: [Create Cell](https://neuronum.net/createcell)
|
|
21
|
+
### Cells/Cell-CLI
|
|
22
|
+
To interact with the Neuronum Network, you must first create a Neuronum Cell
|
|
25
23
|
|
|
26
|
-
|
|
27
|
-
```
|
|
28
|
-
|
|
24
|
+
Create Cell:
|
|
25
|
+
```sh
|
|
26
|
+
$ neuronum create-cell
|
|
27
|
+
```
|
|
29
28
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
29
|
+
Connect Cell:
|
|
30
|
+
```sh
|
|
31
|
+
$ neuronum connect-cell
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
View connected Cell:
|
|
35
|
+
```sh
|
|
36
|
+
$ neuronum view-cell
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
Disconnect Cell:
|
|
40
|
+
```sh
|
|
41
|
+
$ neuronum disconnect-cell
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Delete Cell:
|
|
45
|
+
```sh
|
|
46
|
+
$ neuronum delete-cell
|
|
37
47
|
```
|
|
38
48
|
|
|
39
49
|
### Nodes/Node-CLI
|
|
40
|
-
Neuronum Nodes are
|
|
50
|
+
Neuronum Nodes are soft- and hardware components that power the Neuronum Network, enabling seamless communication between Nodes and Cells
|
|
41
51
|
|
|
42
|
-
Initialize
|
|
43
|
-
```
|
|
44
|
-
|
|
52
|
+
Initialize a Node:
|
|
53
|
+
```sh
|
|
54
|
+
$ neuronum init-node # neuronum init-node --sync id::stx (optional)
|
|
45
55
|
```
|
|
46
56
|
|
|
47
|
-
Start
|
|
48
|
-
```
|
|
49
|
-
|
|
57
|
+
Start a Node:
|
|
58
|
+
```sh
|
|
59
|
+
$ neuronum start-node
|
|
50
60
|
```
|
|
51
61
|
|
|
52
|
-
Stop
|
|
53
|
-
```
|
|
54
|
-
|
|
62
|
+
Stop a Node:
|
|
63
|
+
```sh
|
|
64
|
+
$ neuronum stop-node
|
|
55
65
|
```
|
|
56
66
|
|
|
57
|
-
Register
|
|
58
|
-
```
|
|
59
|
-
|
|
67
|
+
Register a Node on the Neuronum Network:
|
|
68
|
+
```sh
|
|
69
|
+
$ neuronum register-node
|
|
60
70
|
```
|
|
61
71
|
|
|
62
|
-
Update
|
|
63
|
-
```
|
|
64
|
-
|
|
72
|
+
Update a Node:
|
|
73
|
+
```sh
|
|
74
|
+
$ neuronum update-node
|
|
65
75
|
```
|
|
66
76
|
|
|
67
|
-
Delete
|
|
68
|
-
```
|
|
69
|
-
|
|
77
|
+
Delete a Node:
|
|
78
|
+
```sh
|
|
79
|
+
$ neuronum delete-node
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
List Nodes your Cell can interact with:
|
|
83
|
+
```python
|
|
84
|
+
nodesList = cell.list_nodes() # list Nodes
|
|
70
85
|
```
|
|
71
86
|
|
|
72
87
|
### Transmitters (TX)
|
|
73
|
-
Transmitters (TX) are used to create predefined templates to receive and send data in a standardized format
|
|
88
|
+
Transmitters (TX) are used to create predefined templates to receive and send data in a standardized format
|
|
74
89
|
|
|
75
90
|
Create Transmitter (TX):
|
|
76
91
|
```python
|
|
@@ -263,15 +278,15 @@ stxList = cell.list_stx() # list Streams
|
|
|
263
278
|
```
|
|
264
279
|
|
|
265
280
|
### Contracts/Tokens
|
|
266
|
-
Contracts
|
|
281
|
+
Contracts are predefined token-based rules to automate service exchange and authorization between Cells and Nodes
|
|
267
282
|
|
|
268
283
|
Create a Contract:
|
|
269
284
|
```python
|
|
270
285
|
descr = "Test Contract" # short description (max 25 characters)
|
|
271
286
|
details = { # define token details
|
|
272
|
-
"price_in_eur":
|
|
273
|
-
"max_usage":
|
|
274
|
-
"validity_in_min":
|
|
287
|
+
"price_in_eur": False, # token price in EUR (int, float or False)
|
|
288
|
+
"max_usage": False, # max number of uses (int or False)
|
|
289
|
+
"validity_in_min": False # token expiration time in min (int, float or False)
|
|
275
290
|
}
|
|
276
291
|
partners = ["id::cell", "id::cell"]
|
|
277
292
|
contractID = cell.create_contract(descr, details, partners)
|