neuronum 1.4.0__tar.gz → 1.4.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.4.0 → neuronum-1.4.1}/PKG-INFO +16 -7
- {neuronum-1.4.0 → neuronum-1.4.1}/README.md +14 -5
- {neuronum-1.4.0 → neuronum-1.4.1}/neuronum/neuronum.py +11 -5
- {neuronum-1.4.0 → neuronum-1.4.1}/neuronum.egg-info/PKG-INFO +16 -7
- {neuronum-1.4.0 → neuronum-1.4.1}/setup.py +2 -2
- {neuronum-1.4.0 → neuronum-1.4.1}/LICENSE +0 -0
- {neuronum-1.4.0 → neuronum-1.4.1}/neuronum/__init__.py +0 -0
- {neuronum-1.4.0 → neuronum-1.4.1}/neuronum.egg-info/SOURCES.txt +0 -0
- {neuronum-1.4.0 → neuronum-1.4.1}/neuronum.egg-info/dependency_links.txt +0 -0
- {neuronum-1.4.0 → neuronum-1.4.1}/neuronum.egg-info/requires.txt +0 -0
- {neuronum-1.4.0 → neuronum-1.4.1}/neuronum.egg-info/top_level.txt +0 -0
- {neuronum-1.4.0 → neuronum-1.4.1}/setup.cfg +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: neuronum
|
|
3
|
-
Version: 1.4.
|
|
4
|
-
Summary: Interact with the Neuronum Network to build, connect & automate
|
|
3
|
+
Version: 1.4.1
|
|
4
|
+
Summary: Interact with the Neuronum Network to build, connect & automate real-time data streams
|
|
5
5
|
Home-page: https://neuronum.net
|
|
6
6
|
Author: Neuronum Cybernetics
|
|
7
7
|
Author-email: welcome@neuronum.net
|
|
@@ -21,13 +21,13 @@ Requires-Dist: websocket-client
|
|
|
21
21
|
[](https://github.com/neuronumcybernetics/neuronum)
|
|
22
22
|
[](https://www.youtube.com/@neuronumnet)
|
|
23
23
|
|
|
24
|
-
Interact with the `Neuronum Network` to build, connect & automate
|
|
24
|
+
Interact with the `Neuronum Network` to build, connect & automate real-time data streams.
|
|
25
25
|
|
|
26
26
|
## Cell Features
|
|
27
27
|
- **Transmitters (TX)**: Automate economic data transfer + Circuits Integration
|
|
28
28
|
- **Circuits (CTX)**: A simple Key-Value-Label database to store economic data
|
|
29
29
|
- **Streams (STX)**: Stream, synchronize and control data in real time
|
|
30
|
-
- **Nodes**: Register
|
|
30
|
+
- **Nodes**: Register hardware nodes actively streaming real-time data into the network
|
|
31
31
|
|
|
32
32
|
## Getting Started
|
|
33
33
|
Create your Neuronum Cell: [Create Cell](https://neuronum.net/createcell)
|
|
@@ -177,10 +177,19 @@ for operation in stream:
|
|
|
177
177
|
```
|
|
178
178
|
|
|
179
179
|
### Nodes
|
|
180
|
-
Register a
|
|
180
|
+
Register a public Node with its associated Stream (STX):
|
|
181
181
|
```bash
|
|
182
|
-
node = "
|
|
182
|
+
node = "node_name" # Unique node name
|
|
183
|
+
mode = "public"
|
|
183
184
|
STX = "id::stx"
|
|
184
|
-
cell.register(node, STX)
|
|
185
|
+
cell.register(node, mode, STX)
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
Register a private Node with its associated Stream (STX):
|
|
189
|
+
```bash
|
|
190
|
+
node = "node_name" # Unique node name
|
|
191
|
+
mode = "private"
|
|
192
|
+
STX = "id::stx"
|
|
193
|
+
cell.register(node, mode, STX)
|
|
185
194
|
```
|
|
186
195
|
|
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
[](https://github.com/neuronumcybernetics/neuronum)
|
|
5
5
|
[](https://www.youtube.com/@neuronumnet)
|
|
6
6
|
|
|
7
|
-
Interact with the `Neuronum Network` to build, connect & automate
|
|
7
|
+
Interact with the `Neuronum Network` to build, connect & automate real-time data streams.
|
|
8
8
|
|
|
9
9
|
## Cell Features
|
|
10
10
|
- **Transmitters (TX)**: Automate economic data transfer + Circuits Integration
|
|
11
11
|
- **Circuits (CTX)**: A simple Key-Value-Label database to store economic data
|
|
12
12
|
- **Streams (STX)**: Stream, synchronize and control data in real time
|
|
13
|
-
- **Nodes**: Register
|
|
13
|
+
- **Nodes**: Register hardware nodes actively streaming real-time data into the network
|
|
14
14
|
|
|
15
15
|
## Getting Started
|
|
16
16
|
Create your Neuronum Cell: [Create Cell](https://neuronum.net/createcell)
|
|
@@ -160,10 +160,19 @@ for operation in stream:
|
|
|
160
160
|
```
|
|
161
161
|
|
|
162
162
|
### Nodes
|
|
163
|
-
Register a
|
|
163
|
+
Register a public Node with its associated Stream (STX):
|
|
164
164
|
```bash
|
|
165
|
-
node = "
|
|
165
|
+
node = "node_name" # Unique node name
|
|
166
|
+
mode = "public"
|
|
166
167
|
STX = "id::stx"
|
|
167
|
-
cell.register(node, STX)
|
|
168
|
+
cell.register(node, mode, STX)
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
Register a private Node with its associated Stream (STX):
|
|
172
|
+
```bash
|
|
173
|
+
node = "node_name" # Unique node name
|
|
174
|
+
mode = "private"
|
|
175
|
+
STX = "id::stx"
|
|
176
|
+
cell.register(node, mode, STX)
|
|
168
177
|
```
|
|
169
178
|
|
|
@@ -59,11 +59,17 @@ class Cell:
|
|
|
59
59
|
|
|
60
60
|
|
|
61
61
|
|
|
62
|
-
def register(self, node: str, stx: str):
|
|
63
|
-
|
|
62
|
+
def register(self, node: str, mode: str, stx: str):
|
|
63
|
+
if mode == "public":
|
|
64
|
+
url = f"https://{self.network}/register/node/public"
|
|
65
|
+
elif mode == "private":
|
|
66
|
+
url = f"https://{self.network}/register/node/private"
|
|
67
|
+
else:
|
|
68
|
+
return {"error": "Invalid mode", "message": "Mode has to be 'public' or 'private'"}
|
|
64
69
|
|
|
65
|
-
|
|
66
|
-
"
|
|
70
|
+
node_data = {
|
|
71
|
+
"name": node,
|
|
72
|
+
"mode": mode,
|
|
67
73
|
"stream": stx,
|
|
68
74
|
"cell": self.to_dict()
|
|
69
75
|
}
|
|
@@ -71,7 +77,7 @@ class Cell:
|
|
|
71
77
|
try:
|
|
72
78
|
response = requests.post(
|
|
73
79
|
url,
|
|
74
|
-
json=
|
|
80
|
+
json=node_data,
|
|
75
81
|
)
|
|
76
82
|
|
|
77
83
|
response.raise_for_status()
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: neuronum
|
|
3
|
-
Version: 1.4.
|
|
4
|
-
Summary: Interact with the Neuronum Network to build, connect & automate
|
|
3
|
+
Version: 1.4.1
|
|
4
|
+
Summary: Interact with the Neuronum Network to build, connect & automate real-time data streams
|
|
5
5
|
Home-page: https://neuronum.net
|
|
6
6
|
Author: Neuronum Cybernetics
|
|
7
7
|
Author-email: welcome@neuronum.net
|
|
@@ -21,13 +21,13 @@ Requires-Dist: websocket-client
|
|
|
21
21
|
[](https://github.com/neuronumcybernetics/neuronum)
|
|
22
22
|
[](https://www.youtube.com/@neuronumnet)
|
|
23
23
|
|
|
24
|
-
Interact with the `Neuronum Network` to build, connect & automate
|
|
24
|
+
Interact with the `Neuronum Network` to build, connect & automate real-time data streams.
|
|
25
25
|
|
|
26
26
|
## Cell Features
|
|
27
27
|
- **Transmitters (TX)**: Automate economic data transfer + Circuits Integration
|
|
28
28
|
- **Circuits (CTX)**: A simple Key-Value-Label database to store economic data
|
|
29
29
|
- **Streams (STX)**: Stream, synchronize and control data in real time
|
|
30
|
-
- **Nodes**: Register
|
|
30
|
+
- **Nodes**: Register hardware nodes actively streaming real-time data into the network
|
|
31
31
|
|
|
32
32
|
## Getting Started
|
|
33
33
|
Create your Neuronum Cell: [Create Cell](https://neuronum.net/createcell)
|
|
@@ -177,10 +177,19 @@ for operation in stream:
|
|
|
177
177
|
```
|
|
178
178
|
|
|
179
179
|
### Nodes
|
|
180
|
-
Register a
|
|
180
|
+
Register a public Node with its associated Stream (STX):
|
|
181
181
|
```bash
|
|
182
|
-
node = "
|
|
182
|
+
node = "node_name" # Unique node name
|
|
183
|
+
mode = "public"
|
|
183
184
|
STX = "id::stx"
|
|
184
|
-
cell.register(node, STX)
|
|
185
|
+
cell.register(node, mode, STX)
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
Register a private Node with its associated Stream (STX):
|
|
189
|
+
```bash
|
|
190
|
+
node = "node_name" # Unique node name
|
|
191
|
+
mode = "private"
|
|
192
|
+
STX = "id::stx"
|
|
193
|
+
cell.register(node, mode, STX)
|
|
185
194
|
```
|
|
186
195
|
|
|
@@ -2,10 +2,10 @@ from setuptools import setup, find_packages
|
|
|
2
2
|
|
|
3
3
|
setup(
|
|
4
4
|
name='neuronum',
|
|
5
|
-
version='1.4.
|
|
5
|
+
version='1.4.1',
|
|
6
6
|
author='Neuronum Cybernetics',
|
|
7
7
|
author_email='welcome@neuronum.net',
|
|
8
|
-
description='Interact with the Neuronum Network to build, connect & automate
|
|
8
|
+
description='Interact with the Neuronum Network to build, connect & automate real-time data streams',
|
|
9
9
|
long_description=open("README.md").read(),
|
|
10
10
|
long_description_content_type="text/markdown",
|
|
11
11
|
url="https://neuronum.net",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|