neuronum 9.0.0__py3-none-any.whl → 10.0.1__py3-none-any.whl
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.
- cli/main.py +229 -945
- neuronum/__init__.py +1 -1
- neuronum/neuronum.py +671 -290
- neuronum-10.0.1.dist-info/METADATA +159 -0
- neuronum-10.0.1.dist-info/RECORD +10 -0
- neuronum-9.0.0.dist-info/METADATA +0 -124
- neuronum-9.0.0.dist-info/RECORD +0 -10
- {neuronum-9.0.0.dist-info → neuronum-10.0.1.dist-info}/WHEEL +0 -0
- {neuronum-9.0.0.dist-info → neuronum-10.0.1.dist-info}/entry_points.txt +0 -0
- {neuronum-9.0.0.dist-info → neuronum-10.0.1.dist-info}/licenses/LICENSE.md +0 -0
- {neuronum-9.0.0.dist-info → neuronum-10.0.1.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: neuronum
|
|
3
|
+
Version: 10.0.1
|
|
4
|
+
Summary: An E2EE Data Engine
|
|
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: aiofiles
|
|
17
|
+
Requires-Dist: websockets
|
|
18
|
+
Requires-Dist: click
|
|
19
|
+
Requires-Dist: questionary
|
|
20
|
+
Requires-Dist: python-dotenv
|
|
21
|
+
Requires-Dist: requests
|
|
22
|
+
Requires-Dist: cryptography
|
|
23
|
+
Requires-Dist: bip_utils
|
|
24
|
+
Dynamic: author
|
|
25
|
+
Dynamic: author-email
|
|
26
|
+
Dynamic: classifier
|
|
27
|
+
Dynamic: description
|
|
28
|
+
Dynamic: description-content-type
|
|
29
|
+
Dynamic: home-page
|
|
30
|
+
Dynamic: license-file
|
|
31
|
+
Dynamic: project-url
|
|
32
|
+
Dynamic: requires-dist
|
|
33
|
+
Dynamic: requires-python
|
|
34
|
+
Dynamic: summary
|
|
35
|
+
|
|
36
|
+
<h1 align="center">
|
|
37
|
+
<img src="https://neuronum.net/static/neuronum.svg" alt="Neuronum" width="80">
|
|
38
|
+
</h1>
|
|
39
|
+
<h4 align="center">Neuronum: An E2EE Data Engine</h4>
|
|
40
|
+
|
|
41
|
+
<p align="center">
|
|
42
|
+
<a href="https://neuronum.net">
|
|
43
|
+
<img src="https://img.shields.io/badge/Website-Neuronum-blue" alt="Website">
|
|
44
|
+
</a>
|
|
45
|
+
<a href="https://github.com/neuronumcybernetics/neuronum">
|
|
46
|
+
<img src="https://img.shields.io/badge/Docs-Read%20now-green" alt="Documentation">
|
|
47
|
+
</a>
|
|
48
|
+
<a href="https://pypi.org/project/neuronum/">
|
|
49
|
+
<img src="https://img.shields.io/pypi/v/neuronum.svg" alt="PyPI Version">
|
|
50
|
+
</a><br>
|
|
51
|
+
<img src="https://img.shields.io/badge/Python-3.8%2B-yellow" alt="Python Version">
|
|
52
|
+
<a href="https://github.com/neuronumcybernetics/neuronum/blob/main/LICENSE.md">
|
|
53
|
+
<img src="https://img.shields.io/badge/License-MIT-blue.svg" alt="License">
|
|
54
|
+
</a>
|
|
55
|
+
</p>
|
|
56
|
+
|
|
57
|
+
------------------
|
|
58
|
+
|
|
59
|
+
### **Getting Started into the Neuronum Network**
|
|
60
|
+
In this brief getting started guide, you will:
|
|
61
|
+
- [Learn about Neuronum](#about-neuronum)
|
|
62
|
+
- [Connect to the Network](#connect-to-neuronum)
|
|
63
|
+
- [Transmit Data Securely](#transmit-data-securely)
|
|
64
|
+
- [Receive Data Securely](#receive-data-securely)
|
|
65
|
+
|
|
66
|
+
------------------
|
|
67
|
+
|
|
68
|
+
### **About Neuronum**
|
|
69
|
+
Neuronum is a real-time, end-to-end encrypted data engine built in Python. It enables secure communication between devices and services by encrypting data client-side using the recipient's public key. Encrypted messages are transmitted through a passive relay server and decrypted on the recipient’s device using its private key. The relay server facilitates connectivity but cannot access or alter the content of messages.
|
|
70
|
+
|
|
71
|
+
### Requirements
|
|
72
|
+
- Python >= 3.8
|
|
73
|
+
|
|
74
|
+
------------------
|
|
75
|
+
|
|
76
|
+
### **Connect To Neuronum**
|
|
77
|
+
Installation (optional but recommended: create a virtual environment)
|
|
78
|
+
```sh
|
|
79
|
+
pip install neuronum
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
Create your Cell (your secure identity):
|
|
83
|
+
```sh
|
|
84
|
+
neuronum create-cell
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
or
|
|
88
|
+
|
|
89
|
+
Connect an existing Cell (your secure identity):
|
|
90
|
+
```sh
|
|
91
|
+
neuronum connect-cell
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
------------------
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
### **Transmit Data Securely**
|
|
98
|
+
```python
|
|
99
|
+
import asyncio
|
|
100
|
+
from neuronum import Cell
|
|
101
|
+
|
|
102
|
+
async def main():
|
|
103
|
+
|
|
104
|
+
async with Cell() as cell:
|
|
105
|
+
|
|
106
|
+
data = {
|
|
107
|
+
"some": "data" # Replace with your actual payload
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
# Use activate_tx() if you expect a response from the other cell
|
|
111
|
+
# Replace id with the actual Cell ID
|
|
112
|
+
tx_response = await cell.activate_tx("id::cell", data)
|
|
113
|
+
print(tx_response)
|
|
114
|
+
|
|
115
|
+
# Stream data to another cell (no response expected)
|
|
116
|
+
# Replace id with the actual Cell ID
|
|
117
|
+
await cell.stream("id::cell", data)
|
|
118
|
+
|
|
119
|
+
if __name__ == '__main__':
|
|
120
|
+
asyncio.run(main())
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
### **Receive Data Securely**
|
|
125
|
+
```python
|
|
126
|
+
import asyncio
|
|
127
|
+
from neuronum import Cell
|
|
128
|
+
|
|
129
|
+
async def main():
|
|
130
|
+
async with Cell() as cell:
|
|
131
|
+
|
|
132
|
+
async for transmitter in cell.sync():
|
|
133
|
+
ts_str = transmitter.get("time")
|
|
134
|
+
data = transmitter.get("data")
|
|
135
|
+
transmitter_id = transmitter.get("transmitter_id")
|
|
136
|
+
client_public_key = data.get("public_key", {})
|
|
137
|
+
|
|
138
|
+
response_data = {
|
|
139
|
+
"json": "Data Received Securely - Your request was processed successfully",
|
|
140
|
+
"html": """
|
|
141
|
+
<!DOCTYPE html>
|
|
142
|
+
<html lang="en">
|
|
143
|
+
<head>
|
|
144
|
+
<meta charset="UTF-8">
|
|
145
|
+
<title>Secure Data Response</title>
|
|
146
|
+
</head>
|
|
147
|
+
<body>
|
|
148
|
+
<h3>Data Received Securely</h3>
|
|
149
|
+
<p>Your request was processed successfully.</p>
|
|
150
|
+
</body>
|
|
151
|
+
</html>
|
|
152
|
+
"""
|
|
153
|
+
}
|
|
154
|
+
await cell.tx_response(transmitter_id, response_data, client_public_key)
|
|
155
|
+
|
|
156
|
+
if __name__ == '__main__':
|
|
157
|
+
asyncio.run(main())
|
|
158
|
+
```
|
|
159
|
+
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
+
cli/main.py,sha256=Xw3iK0BdWqN89EryBw2k3uWwLrYWxdIt_d0sJKNnErk,10878
|
|
3
|
+
neuronum/__init__.py,sha256=yjm4pci0EGNN01F6soBxYa8HAhljCM20klbEORPbWbc,26
|
|
4
|
+
neuronum/neuronum.py,sha256=_LSl0x2DkZLd_bblFHy1ptJnWC-res00a0cjSu3Ngrs,28212
|
|
5
|
+
neuronum-10.0.1.dist-info/licenses/LICENSE.md,sha256=m7pw_FktMNCs4tcy2UXP3QQP2S_je28P1SepdYoo0Xo,1961
|
|
6
|
+
neuronum-10.0.1.dist-info/METADATA,sha256=cB_3TbDFEbyzajti3rUKlkmVF41iwWZQmH8ZaTRB7Y0,4773
|
|
7
|
+
neuronum-10.0.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
8
|
+
neuronum-10.0.1.dist-info/entry_points.txt,sha256=XKYBcRNxGeJpZZkDPsa8HA_RaJ7Km_R_JaUq5T9Nk2U,42
|
|
9
|
+
neuronum-10.0.1.dist-info/top_level.txt,sha256=ru8Fr84cHm6oHr_DcJ8-uaq3RTiuCRFIr6AC8V0zPu4,13
|
|
10
|
+
neuronum-10.0.1.dist-info/RECORD,,
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: neuronum
|
|
3
|
-
Version: 9.0.0
|
|
4
|
-
Summary: The E2E Web Engine
|
|
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
|
-
Requires-Dist: jinja2
|
|
23
|
-
Requires-Dist: cryptography
|
|
24
|
-
Dynamic: author
|
|
25
|
-
Dynamic: author-email
|
|
26
|
-
Dynamic: classifier
|
|
27
|
-
Dynamic: description
|
|
28
|
-
Dynamic: description-content-type
|
|
29
|
-
Dynamic: home-page
|
|
30
|
-
Dynamic: license-file
|
|
31
|
-
Dynamic: project-url
|
|
32
|
-
Dynamic: requires-dist
|
|
33
|
-
Dynamic: requires-python
|
|
34
|
-
Dynamic: summary
|
|
35
|
-
|
|
36
|
-
<h1 align="center">
|
|
37
|
-
<img src="https://neuronum.net/static/neuronum.svg" alt="Neuronum" width="80">
|
|
38
|
-
</h1>
|
|
39
|
-
<h4 align="center">Neuronum: The E2E Web Engine</h4>
|
|
40
|
-
|
|
41
|
-
<p align="center">
|
|
42
|
-
<a href="https://neuronum.net">
|
|
43
|
-
<img src="https://img.shields.io/badge/Website-Neuronum-blue" alt="Website">
|
|
44
|
-
</a>
|
|
45
|
-
<a href="https://github.com/neuronumcybernetics/neuronum">
|
|
46
|
-
<img src="https://img.shields.io/badge/Docs-Read%20now-green" alt="Documentation">
|
|
47
|
-
</a>
|
|
48
|
-
<a href="https://pypi.org/project/neuronum/">
|
|
49
|
-
<img src="https://img.shields.io/pypi/v/neuronum.svg" alt="PyPI Version">
|
|
50
|
-
</a><br>
|
|
51
|
-
<img src="https://img.shields.io/badge/Python-3.8%2B-yellow" alt="Python Version">
|
|
52
|
-
<a href="https://github.com/neuronumcybernetics/neuronum/blob/main/LICENSE.md">
|
|
53
|
-
<img src="https://img.shields.io/badge/License-MIT-blue.svg" alt="License">
|
|
54
|
-
</a>
|
|
55
|
-
</p>
|
|
56
|
-
|
|
57
|
-
------------------
|
|
58
|
-
|
|
59
|
-
### **A Getting Started into the Neuronum Network**
|
|
60
|
-
In this brief getting started guide, you will:
|
|
61
|
-
- [Learn about Neuronum](#about-neuronum)
|
|
62
|
-
- [Connect to the Network](#connect-to-neuronum)
|
|
63
|
-
- [Build a Neuronum Node](#build-on-neuronum)
|
|
64
|
-
- [Interact with your Node](#interact-with-your-node)
|
|
65
|
-
|
|
66
|
-
------------------
|
|
67
|
-
|
|
68
|
-
### **About Neuronum**
|
|
69
|
-
Neuronum is a real-time web engine designed for developers to build E2E-native apps and services in minutes using high-level Python
|
|
70
|
-
|
|
71
|
-
### **Tools & Features**
|
|
72
|
-
- Cell: Account to interact with Neuronum
|
|
73
|
-
- Nodes: Apps & Services built on Neuronum
|
|
74
|
-
- Browser: Web Browser built on Neuronum -> [build from source](https://github.com/neuronumcybernetics/neuronum_browser)
|
|
75
|
-
|
|
76
|
-
### Requirements
|
|
77
|
-
- Python >= 3.8
|
|
78
|
-
|
|
79
|
-
------------------
|
|
80
|
-
|
|
81
|
-
### **Connect To Neuronum**
|
|
82
|
-
Installation (optional but recommended: create a virtual environment)
|
|
83
|
-
```sh
|
|
84
|
-
pip install neuronum
|
|
85
|
-
```
|
|
86
|
-
|
|
87
|
-
Create your Cell:
|
|
88
|
-
```sh
|
|
89
|
-
neuronum create-cell
|
|
90
|
-
```
|
|
91
|
-
|
|
92
|
-
or
|
|
93
|
-
|
|
94
|
-
Connect your Cell:
|
|
95
|
-
```sh
|
|
96
|
-
neuronum connect-cell
|
|
97
|
-
```
|
|
98
|
-
|
|
99
|
-
------------------
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
### **Build On Neuronum**
|
|
103
|
-
To get started, initialize a new Node with the command below.
|
|
104
|
-
```sh
|
|
105
|
-
neuronum init-node
|
|
106
|
-
```
|
|
107
|
-
|
|
108
|
-
This command will prompt you for a description (e.g. App) and will create a new directory named "App_<your_node_id>" with the necessary files to run your Node
|
|
109
|
-
|
|
110
|
-
Change into Node folder
|
|
111
|
-
```sh
|
|
112
|
-
cd App_<your_node_id>
|
|
113
|
-
```
|
|
114
|
-
|
|
115
|
-
Start your Node:
|
|
116
|
-
```sh
|
|
117
|
-
neuronum start-node
|
|
118
|
-
```
|
|
119
|
-
|
|
120
|
-
------------------
|
|
121
|
-
|
|
122
|
-
### **Interact with your Node**
|
|
123
|
-
|
|
124
|
-
The **Neuronum Browser** is an open source E2E web browser that allows you to interact with your nodes -> [build from source](https://github.com/neuronumcybernetics/neuronum_browser)
|
neuronum-9.0.0.dist-info/RECORD
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
-
cli/main.py,sha256=Ol3kyxh7odt03buze27PGCCaDS0iOax8nbTWYHvK1pA,31798
|
|
3
|
-
neuronum/__init__.py,sha256=qkAz6fpiS2KKnaKwPbS15y7lRCQV-XaWNTkVUarluPk,26
|
|
4
|
-
neuronum/neuronum.py,sha256=3Sway-04-Yb3PHcnbIVumL0kQMB__fiO5w9vDXbkWGk,16186
|
|
5
|
-
neuronum-9.0.0.dist-info/licenses/LICENSE.md,sha256=m7pw_FktMNCs4tcy2UXP3QQP2S_je28P1SepdYoo0Xo,1961
|
|
6
|
-
neuronum-9.0.0.dist-info/METADATA,sha256=UIovNeYOTcpaZz0FUhJvWQ5EqIu7dDvVpxgrxu8DTWM,3448
|
|
7
|
-
neuronum-9.0.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
8
|
-
neuronum-9.0.0.dist-info/entry_points.txt,sha256=XKYBcRNxGeJpZZkDPsa8HA_RaJ7Km_R_JaUq5T9Nk2U,42
|
|
9
|
-
neuronum-9.0.0.dist-info/top_level.txt,sha256=ru8Fr84cHm6oHr_DcJ8-uaq3RTiuCRFIr6AC8V0zPu4,13
|
|
10
|
-
neuronum-9.0.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|