neuronum 5.9.0__tar.gz → 6.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.

@@ -1,47 +1,47 @@
1
- <h1 align="center">
2
- <img src="https://neuronum.net/static/neuronum.svg" alt="Neuronum" width="80">
3
- </h1>
4
- <h4 align="center">LICENSE of the Neuronum library</h4>
5
-
6
- <p align="center">
7
- <a href="https://neuronum.net">
8
- <img src="https://img.shields.io/badge/Website-Neuronum-blue" alt="Website">
9
- </a>
10
- <a href="https://github.com/neuronumcybernetics/neuronum">
11
- <img src="https://img.shields.io/badge/Docs-Read%20now-green" alt="Documentation">
12
- </a>
13
- <a href="https://pypi.org/project/neuronum/">
14
- <img src="https://img.shields.io/pypi/v/neuronum.svg" alt="PyPI Version">
15
- </a>
16
- <img src="https://img.shields.io/badge/Python-3.8%2B-yellow" alt="Python Version">
17
- <a href="https://github.com/neuronumcybernetics/neuronum/blob/main/LICENSE.md">
18
- <img src="https://img.shields.io/badge/License-MIT-blue.svg" alt="License">
19
- </a>
20
- </p>
21
-
22
- ---
23
-
24
- MIT License
25
-
26
- Copyright (c) 2025 Neuronum Cybernetics UG (limited liability)
27
-
28
- Permission is hereby granted, free of charge, to any person obtaining a copy
29
- of this software and associated documentation files (the "Software"), to deal
30
- in the Software without restriction, including without limitation the rights
31
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
32
- copies of the Software, and to permit persons to whom the Software is
33
- furnished to do so, subject to the following conditions:
34
-
35
- The above copyright notice and this permission notice shall be included in all
36
- copies or substantial portions of the Software.
37
-
38
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
39
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
40
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
41
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
42
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
43
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
44
- SOFTWARE.
45
-
46
-
47
-
1
+ <h1 align="center">
2
+ <img src="https://neuronum.net/static/neuronum.svg" alt="Neuronum" width="80">
3
+ </h1>
4
+ <h4 align="center">LICENSE of the Neuronum library</h4>
5
+
6
+ <p align="center">
7
+ <a href="https://neuronum.net">
8
+ <img src="https://img.shields.io/badge/Website-Neuronum-blue" alt="Website">
9
+ </a>
10
+ <a href="https://github.com/neuronumcybernetics/neuronum">
11
+ <img src="https://img.shields.io/badge/Docs-Read%20now-green" alt="Documentation">
12
+ </a>
13
+ <a href="https://pypi.org/project/neuronum/">
14
+ <img src="https://img.shields.io/pypi/v/neuronum.svg" alt="PyPI Version">
15
+ </a>
16
+ <img src="https://img.shields.io/badge/Python-3.8%2B-yellow" alt="Python Version">
17
+ <a href="https://github.com/neuronumcybernetics/neuronum/blob/main/LICENSE.md">
18
+ <img src="https://img.shields.io/badge/License-MIT-blue.svg" alt="License">
19
+ </a>
20
+ </p>
21
+
22
+ ---
23
+
24
+ MIT License
25
+
26
+ Copyright (c) 2025 Neuronum Cybernetics UG (limited liability)
27
+
28
+ Permission is hereby granted, free of charge, to any person obtaining a copy
29
+ of this software and associated documentation files (the "Software"), to deal
30
+ in the Software without restriction, including without limitation the rights
31
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
32
+ copies of the Software, and to permit persons to whom the Software is
33
+ furnished to do so, subject to the following conditions:
34
+
35
+ The above copyright notice and this permission notice shall be included in all
36
+ copies or substantial portions of the Software.
37
+
38
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
39
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
40
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
41
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
42
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
43
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
44
+ SOFTWARE.
45
+
46
+
47
+
@@ -1,248 +1,252 @@
1
- Metadata-Version: 2.4
2
- Name: neuronum
3
- Version: 5.9.0
4
- Summary: Official client library to interact with the Neuronum Network
5
- Home-page: https://neuronum.net
6
- Author: Neuronum Cybernetics
7
- Author-email: welcome@neuronum.net
8
- Project-URL: GitHub, https://github.com/neuronumcybernetics/neuronum
9
- Classifier: Programming Language :: Python :: 3
10
- Classifier: License :: OSI Approved :: MIT License
11
- Classifier: Operating System :: OS Independent
12
- Requires-Python: >=3.8
13
- Description-Content-Type: text/markdown
14
- License-File: LICENSE.md
15
- Requires-Dist: aiohttp
16
- Requires-Dist: websockets
17
- Requires-Dist: click
18
- Requires-Dist: questionary
19
- Requires-Dist: python-dotenv
20
- Requires-Dist: requests
21
- Requires-Dist: psutil
22
- Dynamic: author
23
- Dynamic: author-email
24
- Dynamic: classifier
25
- Dynamic: description
26
- Dynamic: description-content-type
27
- Dynamic: home-page
28
- Dynamic: license-file
29
- Dynamic: project-url
30
- Dynamic: requires-dist
31
- Dynamic: requires-python
32
- Dynamic: summary
33
-
34
- <h1 align="center">
35
- <img src="https://neuronum.net/static/neuronum.svg" alt="Neuronum" width="80">
36
- </h1>
37
- <h4 align="center">Neuronum: The Real Time Data Engine</h4>
38
-
39
- <p align="center">
40
- <a href="https://neuronum.net">
41
- <img src="https://img.shields.io/badge/Website-Neuronum-blue" alt="Website">
42
- </a>
43
- <a href="https://github.com/neuronumcybernetics/neuronum">
44
- <img src="https://img.shields.io/badge/Docs-Read%20now-green" alt="Documentation">
45
- </a>
46
- <a href="https://pypi.org/project/neuronum/">
47
- <img src="https://img.shields.io/pypi/v/neuronum.svg" alt="PyPI Version">
48
- </a><br>
49
- <img src="https://img.shields.io/badge/Python-3.8%2B-yellow" alt="Python Version">
50
- <a href="https://github.com/neuronumcybernetics/neuronum/blob/main/LICENSE.md">
51
- <img src="https://img.shields.io/badge/License-MIT-blue.svg" alt="License">
52
- </a>
53
- </p>
54
-
55
- ------------------
56
-
57
- ### **A Getting Started into the Neuronum Network**
58
- In this brief getting started guide, you will:
59
- - [Learn about Neuronum](#about-neuronum)
60
- - [Connect to the Network](#connect-to-neuronum)
61
- - [Build a Neuronum Node](#build-on-neuronum)
62
- - [Interact with your Node](#interact-with-neuronum)
63
-
64
- ------------------
65
-
66
- ### **About Neuronum**
67
- Neuronum is the real-time data engine designed for developers to build event-driven apps and services in minutes using high-level Python
68
-
69
- ### **Features**
70
- **Cell & Nodes**
71
- - Cell: Account to connect and interact with Neuronum. [Learn More](https://github.com/neuronumcybernetics/neuronum/tree/main/features/cell)
72
- - Nodes (Apps): Soft- and Hardware components hosting Neuronum data gateways. [Learn More](https://github.com/neuronumcybernetics/neuronum/tree/main/features/nodes)
73
-
74
- **Data Gateways**
75
- - Transmitters (TX): Securely transmit and receive data packages. [Learn More](https://github.com/neuronumcybernetics/neuronum/tree/main/features/transmitters)
76
- - Circuits (CTX): Store data in cloud-based key-value-label databases. [Learn More](https://github.com/neuronumcybernetics/neuronum/tree/main/features/circuits)
77
- - Streams (STX): Stream, synchronize, and control data in real time. [Learn More](https://github.com/neuronumcybernetics/neuronum/tree/main/features/streams)
78
-
79
- ### Requirements
80
- - Python >= 3.8
81
- - neuronum >= 5.5.0
82
-
83
- ------------------
84
-
85
- ### **Connect To Neuronum**
86
- Installation (optional but recommended: create a virtual environment)
87
- ```sh
88
- pip install neuronum # install Neuronum dependencies
89
- ```
90
-
91
- Create your Cell:
92
- ```sh
93
- neuronum create-cell # create Cell / Cell type / Cell network
94
- ```
95
-
96
- or
97
-
98
- Connect your Cell:
99
- ```sh
100
- neuronum connect-cell # connect Cell
101
- ```
102
-
103
- ------------------
104
-
105
-
106
- ### **Build On Neuronum**
107
- To dive deeper into Neuronum App development, visit & build with [Node Examples](https://github.com/neuronumcybernetics/neuronum/tree/main/features/nodes/examples)
108
-
109
-
110
- Initialize a Node (app template):
111
- ```sh
112
- neuronum init-node --app # initialize a Node with app template
113
- ```
114
-
115
- This command prompts you to enter a Node description (e.g Getting Started Node) and creates a new directory named node_<node_id> containing the following files:
116
-
117
- .env
118
- ```env
119
- NODE=your_node_id
120
- HOST=your_cell_id
121
- PASSWORD=your_password
122
- NETWORK=neuronum.net
123
- SYNAPSE=your_synapse # auth token
124
- ```
125
-
126
- app.py
127
- ```python
128
- import asyncio
129
- import neuronum
130
- import os
131
- from dotenv import load_dotenv
132
-
133
- load_dotenv()
134
- host = os.getenv("HOST")
135
- password = os.getenv("PASSWORD")
136
- network = os.getenv("NETWORK")
137
- synapse = os.getenv("SYNAPSE")
138
-
139
- cell = neuronum.Cell(
140
- host=host,
141
- password=password,
142
- network=network,
143
- synapse=synapse
144
- )
145
-
146
- async def main():
147
- STX = "id::stx"
148
- async for operation in cell.sync(STX):
149
- txID = operation.get("txID")
150
- client = operation.get("operator")
151
-
152
- if txID == "id::tx":
153
- data = {
154
- "json": f"Hello {client}",
155
- "html": f"""
156
- <!DOCTYPE html>
157
- <html>
158
- <head>
159
- <meta charset="UTF-8">
160
- <title>Greeting Node</title>
161
- </head>
162
- <body>
163
- <div class="card">
164
- <h1>Hello, {client}</h1>
165
- </div>
166
- </body>
167
- </html>
168
- """
169
-
170
- }
171
- await cell.tx_response(txID, client, data)
172
-
173
- asyncio.run(main())
174
- ```
175
-
176
- NODE.md
177
- ```
178
- ```json
179
- {
180
- "gateways": [
181
- {
182
- "type": "stream",
183
- "id": "id::stx",
184
- "link": "https://neuronum.net/stream/id::stx",
185
- "info": "stream info"
186
- },
187
- {
188
- "type": "transmitter",
189
- "id": "id::tx",
190
- "link": "https://neuronum.net/tx/id::tx",
191
- "info": "transmitter info"
192
- },
193
- {
194
- "type": "circuit",
195
- "id": "id::ctx",
196
- "link": "https://neuronum.net/circuit/id::ctx",
197
- "info": "circuit info"
198
- }
199
- ]
200
- }
201
- ```
202
-
203
- Change into Node folder
204
- ```sh
205
- cd node_node_id # change directory
206
- ```
207
-
208
- Start your Node:
209
- ```sh
210
- neuronum start-node # start Node
211
- ```
212
-
213
- ------------------
214
-
215
- ### **Interact with Neuronum**
216
- #### **Web-based**
217
- 1. [Visit Neuronum](https://neuronum.net)
218
- 2. [Connect your Cell](https://neuronum.net/connect)
219
- 3. [Explore Transmitters](https://neuronum.net/explore)
220
- 4. Activate Transmitters
221
-
222
- #### **Code-based**
223
- ```python
224
- import asyncio
225
- import neuronum
226
-
227
- cell = neuronum.Cell( # set Cell connection
228
- host="host", # Cell host
229
- password="password", # Cell password
230
- network="neuronum.net", # Cell network -> neuronum.net
231
- synapse="synapse" # Cell synapse
232
- )
233
-
234
- async def main():
235
-
236
- TX = "id::tx" # select the Transmitter TX
237
- data = {"say": "hello"}
238
- tx_response = await cell.activate_tx(TX, data) # activate TX - > get response back
239
- print(tx_response) # print tx response
240
-
241
- asyncio.run(main())
242
- ```
243
-
244
- #### **CLI-based**
245
- ```sh
246
- neuronum activate --tx id::tx 'say:hello'
247
- ```
248
-
1
+ Metadata-Version: 2.4
2
+ Name: neuronum
3
+ Version: 6.0.0
4
+ Summary: Official client library to interact with the Neuronum Network
5
+ Home-page: https://neuronum.net
6
+ Author: Neuronum Cybernetics
7
+ Author-email: welcome@neuronum.net
8
+ Project-URL: GitHub, https://github.com/neuronumcybernetics/neuronum
9
+ Classifier: Programming Language :: Python :: 3
10
+ Classifier: License :: OSI Approved :: MIT License
11
+ Classifier: Operating System :: OS Independent
12
+ Requires-Python: >=3.8
13
+ Description-Content-Type: text/markdown
14
+ License-File: LICENSE.md
15
+ Requires-Dist: aiohttp
16
+ Requires-Dist: websockets
17
+ Requires-Dist: click
18
+ Requires-Dist: questionary
19
+ Requires-Dist: python-dotenv
20
+ Requires-Dist: requests
21
+ Requires-Dist: psutil
22
+ Dynamic: author
23
+ Dynamic: author-email
24
+ Dynamic: classifier
25
+ Dynamic: description
26
+ Dynamic: description-content-type
27
+ Dynamic: home-page
28
+ Dynamic: license-file
29
+ Dynamic: project-url
30
+ Dynamic: requires-dist
31
+ Dynamic: requires-python
32
+ Dynamic: summary
33
+
34
+ <h1 align="center">
35
+ <img src="https://neuronum.net/static/neuronum.svg" alt="Neuronum" width="80">
36
+ </h1>
37
+ <h4 align="center">Neuronum: The Real Time Data Engine</h4>
38
+
39
+ <p align="center">
40
+ <a href="https://neuronum.net">
41
+ <img src="https://img.shields.io/badge/Website-Neuronum-blue" alt="Website">
42
+ </a>
43
+ <a href="https://github.com/neuronumcybernetics/neuronum">
44
+ <img src="https://img.shields.io/badge/Docs-Read%20now-green" alt="Documentation">
45
+ </a>
46
+ <a href="https://pypi.org/project/neuronum/">
47
+ <img src="https://img.shields.io/pypi/v/neuronum.svg" alt="PyPI Version">
48
+ </a><br>
49
+ <img src="https://img.shields.io/badge/Python-3.8%2B-yellow" alt="Python Version">
50
+ <a href="https://github.com/neuronumcybernetics/neuronum/blob/main/LICENSE.md">
51
+ <img src="https://img.shields.io/badge/License-MIT-blue.svg" alt="License">
52
+ </a>
53
+ </p>
54
+
55
+ ------------------
56
+
57
+ ### **A Getting Started into the Neuronum Network**
58
+ In this brief getting started guide, you will:
59
+ - [Learn about Neuronum](#about-neuronum)
60
+ - [Connect to the Network](#connect-to-neuronum)
61
+ - [Build a Neuronum Node](#build-on-neuronum)
62
+ - [Interact with your Node](#interact-with-neuronum)
63
+
64
+ ------------------
65
+
66
+ ### **About Neuronum**
67
+ Neuronum is the real-time data engine designed for developers to build event-driven apps and services in minutes using high-level Python
68
+
69
+ ### **Features**
70
+ **Cell & Nodes**
71
+ - Cell: Account to connect and interact with Neuronum. [Learn More](https://github.com/neuronumcybernetics/neuronum/tree/main/features/cell)
72
+ - Nodes (Apps): Soft- and Hardware components hosting Neuronum data gateways. [Learn More](https://github.com/neuronumcybernetics/neuronum/tree/main/features/nodes)
73
+
74
+ **Data Gateways**
75
+ - Transmitters (TX): Securely transmit and receive data packages. [Learn More](https://github.com/neuronumcybernetics/neuronum/tree/main/features/transmitters)
76
+ - Circuits (CTX): Store data in cloud-based key-value-label databases. [Learn More](https://github.com/neuronumcybernetics/neuronum/tree/main/features/circuits)
77
+ - Streams (STX): Stream, synchronize, and control data in real time. [Learn More](https://github.com/neuronumcybernetics/neuronum/tree/main/features/streams)
78
+
79
+ ### Requirements
80
+ - Python >= 3.8
81
+ - neuronum >= 5.5.0
82
+
83
+ ------------------
84
+
85
+ ### **Connect To Neuronum**
86
+ Installation (optional but recommended: create a virtual environment)
87
+ ```sh
88
+ pip install neuronum # install Neuronum dependencies
89
+ ```
90
+
91
+ Create your Cell:
92
+ ```sh
93
+ neuronum create-cell # create Cell / Cell type / Cell network
94
+ ```
95
+
96
+ or
97
+
98
+ Connect your Cell:
99
+ ```sh
100
+ neuronum connect-cell # connect Cell
101
+ ```
102
+
103
+ ------------------
104
+
105
+
106
+ ### **Build On Neuronum**
107
+ To dive deeper into Neuronum App development, visit & build with [Node Examples](https://github.com/neuronumcybernetics/neuronum/tree/main/features/nodes/examples)
108
+
109
+ Initialize a Node (app template):
110
+ ```sh
111
+ neuronum init-node --app # initialize a Node with app template
112
+ ```
113
+
114
+ This command prompts you to enter a Node description (e.g Test App) and creates a new directory named node_<node_id> containing the following files:
115
+
116
+ .env
117
+ ```env
118
+ NODE=your_node_id
119
+ HOST=your_cell_id
120
+ PASSWORD=your_password
121
+ NETWORK=neuronum.net
122
+ SYNAPSE=your_synapse # auth token
123
+ ```
124
+
125
+ app.py
126
+ ```python
127
+ import asyncio
128
+ import neuronum
129
+ import os
130
+ from dotenv import load_dotenv
131
+
132
+ load_dotenv()
133
+ host = os.getenv("HOST")
134
+ password = os.getenv("PASSWORD")
135
+ network = os.getenv("NETWORK")
136
+ synapse = os.getenv("SYNAPSE")
137
+
138
+ cell = neuronum.Cell(
139
+ host=host,
140
+ password=password,
141
+ network=network,
142
+ synapse=synapse
143
+ )
144
+
145
+ async def main():
146
+ STX = "id::stx"
147
+ async for operation in cell.sync(STX):
148
+ txID = operation.get("txID")
149
+ client = operation.get("operator")
150
+
151
+ if txID == "id::tx":
152
+ data = {
153
+ "json": f"Hello {client}",
154
+ "html": f"""
155
+ <!DOCTYPE html>
156
+ <html>
157
+ <head>
158
+ <meta charset="UTF-8">
159
+ <title>Greeting Node</title>
160
+ </head>
161
+ <body>
162
+ <div class="card">
163
+ <h1>Hello, {client}</h1>
164
+ </div>
165
+ </body>
166
+ </html>
167
+ """
168
+
169
+ }
170
+ await cell.tx_response(txID, client, data)
171
+
172
+ asyncio.run(main())
173
+ ```
174
+
175
+ config.json (required if you want to make your app accessible to Cellai (currently in testing))
176
+ ```json
177
+ {
178
+ "data_gateways": [
179
+ {
180
+ "type": "stream",
181
+ "id": "id::stx",
182
+ "info": "provide a detailed description about the stream"
183
+ },
184
+ {
185
+ "type": "transmitter",
186
+ "id": "id::tx",
187
+ "info": "provide a detailed description about the transmitter"
188
+ },
189
+ {
190
+ "type": "circuit",
191
+ "id": "id::ctx",
192
+ "info": "provide a detailed description about the circuit"
193
+ }
194
+ ]
195
+ }
196
+ ```
197
+
198
+ NODE.md (required if you want to publish your App)
199
+ ```
200
+ ### NODE.md: Create a detailed Markdown File on how to interact with this Node
201
+ ```
202
+
203
+
204
+ Change into Node folder
205
+ ```sh
206
+ cd node_node_id # change directory
207
+ ```
208
+
209
+ Start your Node:
210
+ ```sh
211
+ neuronum start-node # start Node
212
+ ```
213
+
214
+ ------------------
215
+
216
+ ### **Interact with Neuronum**
217
+ #### **Web-based**
218
+ 1. [Visit Neuronum](https://neuronum.net)
219
+ 2. [Connect your Cell](https://neuronum.net/connect)
220
+ 3. [Explore Transmitters](https://neuronum.net/explore)
221
+ 4. Activate Transmitters
222
+
223
+ #### **Code-based**
224
+ ```python
225
+ import asyncio
226
+ import neuronum
227
+
228
+ cell = neuronum.Cell( # set Cell connection
229
+ host="host", # Cell host
230
+ password="password", # Cell password
231
+ network="neuronum.net", # Cell network -> neuronum.net
232
+ synapse="synapse" # Cell synapse
233
+ )
234
+
235
+ async def main():
236
+
237
+ TX = "id::tx" # select the Transmitter TX
238
+ data = {"say": "hello"}
239
+ tx_response = await cell.activate_tx(TX, data) # activate TX - > get response back
240
+ print(tx_response) # print tx response
241
+
242
+ asyncio.run(main())
243
+ ```
244
+
245
+ #### **CLI-based**
246
+ ```sh
247
+ neuronum activate --tx id::tx 'say:hello'
248
+ ```
249
+
250
+ #### **Cellai**
251
+ Cellai is a mobile interface that lets you interact with Neuronum apps using natural language. It is currently in testing.
252
+