neuronum 1.6.0__tar.gz → 1.7.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.

@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: neuronum
3
- Version: 1.6.0
4
- Summary: Interact with the Neuronum Network to build & automate interconnected networks of soft- and hardware components
3
+ Version: 1.7.0
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.6
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,85 @@ Requires-Dist: python-dotenv
22
22
 
23
23
  [![Website](https://img.shields.io/badge/Website-Neuronum-blue)](https://neuronum.net) [![Documentation](https://img.shields.io/badge/Docs-Read%20now-green)](https://github.com/neuronumcybernetics/neuronum)
24
24
 
25
- `Neuronum` is a cybernetic framework enabling businesses to build & automate interconnected networks of soft- and hardware components
25
+ Build, deploy and automate IoT connectivity with `Neuronum`
26
26
 
27
27
  ## Features
28
- - **Cell**: Identity to connect and interact with the Neuronum Network
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 contract-based authorization between Nodes and Cells
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
- ```python
39
- pip install neuronum
37
+ ```sh
38
+ $ pip install neuronum
40
39
  ```
41
40
 
42
- ### Cell
43
- To interact with the Network you will need to create a Neuronum Cell.
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
- Set and test Cell connection:
47
- ```python
48
- import neuronum
44
+ Create Cell:
45
+ ```sh
46
+ $ neuronum create-cell
47
+ ```
48
+
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
+ ```
49
63
 
50
- cell = neuronum.Cell(
51
- host="host::cell", # cell host
52
- password="your_password", # cell password
53
- network="neuronum.net", # cell network
54
- synapse="your_synapse" # cell synapse
55
- )
56
- cell.connect() # connect to network
64
+ Delete Cell:
65
+ ```sh
66
+ $ neuronum delete-cell
57
67
  ```
58
68
 
59
69
  ### Nodes/Node-CLI
60
- Neuronum Nodes are computing hardware powered by the Neuronum library, enabling seamless communication between Nodes and Cells.
70
+ Neuronum Nodes are soft- and hardware components that power the Neuronum Network, enabling seamless communication between Nodes and Cells
61
71
 
62
- Initialize your Node:
63
- ```bash
64
- >>> neuronum init-node
72
+ Initialize a Node:
73
+ ```sh
74
+ $ neuronum init-node # neuronum init-node --sync id::stx (optional)
65
75
  ```
66
76
 
67
- Start your Node:
68
- ```bash
69
- >>> neuronum start-node
77
+ Start a Node:
78
+ ```sh
79
+ $ neuronum start-node
70
80
  ```
71
81
 
72
- Stop your Node:
73
- ```bash
74
- >>> neuronum stop-node
82
+ Stop a Node:
83
+ ```sh
84
+ $ neuronum stop-node
75
85
  ```
76
86
 
77
- Register your Node on the Neuronum Network:
78
- ```bash
79
- >>> neuronum register-node
87
+ Register a Node on the Neuronum Network:
88
+ ```sh
89
+ $ neuronum register-node
80
90
  ```
81
91
 
82
- Update your Node:
83
- ```bash
84
- >>> neuronum update-node
92
+ Update a Node:
93
+ ```sh
94
+ $ neuronum update-node
85
95
  ```
86
96
 
87
- Delete your Node:
88
- ```bash
89
- >>> neuronum delete-node
97
+ Delete a Node:
98
+ ```sh
99
+ $ neuronum delete-node
90
100
  ```
91
101
 
92
102
  ### Transmitters (TX)
93
- Transmitters (TX) are used to create predefined templates to receive and send data in a standardized format.
103
+ Transmitters (TX) are used to create predefined templates to receive and send data in a standardized format
94
104
 
95
105
  Create Transmitter (TX):
96
106
  ```python
@@ -283,15 +293,15 @@ stxList = cell.list_stx() # list Streams
283
293
  ```
284
294
 
285
295
  ### Contracts/Tokens
286
- Contracts define rules for authorization, allowing users to sign and generate unique tokens for secure access
296
+ Contracts are predefined token-based rules to automate service exchange and authorization between Cells and Nodes
287
297
 
288
298
  Create a Contract:
289
299
  ```python
290
300
  descr = "Test Contract" # short description (max 25 characters)
291
301
  details = { # define token details
292
- "price_in_eur": 10, # token price in EUR
293
- "max_usage": 10, # max number of uses
294
- "validity_in_min": 10 # token expiration time (minutes)
302
+ "price_in_eur": False, # token price in EUR (int, float or False)
303
+ "max_usage": False, # max number of uses (int or False)
304
+ "validity_in_min": False # token expiration time in min (int, float or False)
295
305
  }
296
306
  partners = ["id::cell", "id::cell"]
297
307
  contractID = cell.create_contract(descr, details, partners)
@@ -2,75 +2,85 @@
2
2
 
3
3
  [![Website](https://img.shields.io/badge/Website-Neuronum-blue)](https://neuronum.net) [![Documentation](https://img.shields.io/badge/Docs-Read%20now-green)](https://github.com/neuronumcybernetics/neuronum)
4
4
 
5
- `Neuronum` is a cybernetic framework enabling businesses to build & automate interconnected networks of soft- and hardware components
5
+ Build, deploy and automate IoT connectivity with `Neuronum`
6
6
 
7
7
  ## Features
8
- - **Cell**: Identity to connect and interact with the Neuronum Network
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 contract-based authorization between Nodes and Cells
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
- ```python
19
- pip install neuronum
17
+ ```sh
18
+ $ pip install neuronum
20
19
  ```
21
20
 
22
- ### Cell
23
- To interact with the Network you will need to create a Neuronum Cell.
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
- Set and test Cell connection:
27
- ```python
28
- import neuronum
24
+ Create Cell:
25
+ ```sh
26
+ $ neuronum create-cell
27
+ ```
28
+
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
+ ```
29
43
 
30
- cell = neuronum.Cell(
31
- host="host::cell", # cell host
32
- password="your_password", # cell password
33
- network="neuronum.net", # cell network
34
- synapse="your_synapse" # cell synapse
35
- )
36
- cell.connect() # connect to network
44
+ Delete Cell:
45
+ ```sh
46
+ $ neuronum delete-cell
37
47
  ```
38
48
 
39
49
  ### Nodes/Node-CLI
40
- Neuronum Nodes are computing hardware powered by the Neuronum library, enabling seamless communication between Nodes and Cells.
50
+ Neuronum Nodes are soft- and hardware components that power the Neuronum Network, enabling seamless communication between Nodes and Cells
41
51
 
42
- Initialize your Node:
43
- ```bash
44
- >>> neuronum init-node
52
+ Initialize a Node:
53
+ ```sh
54
+ $ neuronum init-node # neuronum init-node --sync id::stx (optional)
45
55
  ```
46
56
 
47
- Start your Node:
48
- ```bash
49
- >>> neuronum start-node
57
+ Start a Node:
58
+ ```sh
59
+ $ neuronum start-node
50
60
  ```
51
61
 
52
- Stop your Node:
53
- ```bash
54
- >>> neuronum stop-node
62
+ Stop a Node:
63
+ ```sh
64
+ $ neuronum stop-node
55
65
  ```
56
66
 
57
- Register your Node on the Neuronum Network:
58
- ```bash
59
- >>> neuronum register-node
67
+ Register a Node on the Neuronum Network:
68
+ ```sh
69
+ $ neuronum register-node
60
70
  ```
61
71
 
62
- Update your Node:
63
- ```bash
64
- >>> neuronum update-node
72
+ Update a Node:
73
+ ```sh
74
+ $ neuronum update-node
65
75
  ```
66
76
 
67
- Delete your Node:
68
- ```bash
69
- >>> neuronum delete-node
77
+ Delete a Node:
78
+ ```sh
79
+ $ neuronum delete-node
70
80
  ```
71
81
 
72
82
  ### Transmitters (TX)
73
- Transmitters (TX) are used to create predefined templates to receive and send data in a standardized format.
83
+ Transmitters (TX) are used to create predefined templates to receive and send data in a standardized format
74
84
 
75
85
  Create Transmitter (TX):
76
86
  ```python
@@ -263,15 +273,15 @@ stxList = cell.list_stx() # list Streams
263
273
  ```
264
274
 
265
275
  ### Contracts/Tokens
266
- Contracts define rules for authorization, allowing users to sign and generate unique tokens for secure access
276
+ Contracts are predefined token-based rules to automate service exchange and authorization between Cells and Nodes
267
277
 
268
278
  Create a Contract:
269
279
  ```python
270
280
  descr = "Test Contract" # short description (max 25 characters)
271
281
  details = { # define token details
272
- "price_in_eur": 10, # token price in EUR
273
- "max_usage": 10, # max number of uses
274
- "validity_in_min": 10 # token expiration time (minutes)
282
+ "price_in_eur": False, # token price in EUR (int, float or False)
283
+ "max_usage": False, # max number of uses (int or False)
284
+ "validity_in_min": False # token expiration time in min (int, float or False)
275
285
  }
276
286
  partners = ["id::cell", "id::cell"]
277
287
  contractID = cell.create_contract(descr, details, partners)