neuronum 5.8.5__py3-none-any.whl → 5.9.0__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.

neuronum/neuronum.py CHANGED
@@ -490,4 +490,30 @@ class Cell:
490
490
  print(f"Unexpected error: {e}")
491
491
 
492
492
 
493
+ async def notify(self, receiver: str, title: str, message: str):
494
+ full_url = f"https://{self.network}/api/notify"
495
+
496
+ notify_payload = {
497
+ "receiver": receiver,
498
+ "notification": {
499
+ "title": title,
500
+ "message": message
501
+ },
502
+ "cell": self.to_dict()
503
+ }
504
+
505
+ async with aiohttp.ClientSession() as session:
506
+ try:
507
+ async with session.post(full_url, json=notify_payload) as response:
508
+ response.raise_for_status()
509
+ data = await response.json()
510
+ print(f"Notification sent successfully: {data}")
511
+ return data
512
+
513
+ except aiohttp.ClientError as e:
514
+ print(f"HTTP error while sending notification: {e}")
515
+ except Exception as e:
516
+ print(f"Unexpected error: {e}")
517
+
518
+
493
519
  __all__ = ['Cell']
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: neuronum
3
- Version: 5.8.5
3
+ Version: 5.9.0
4
4
  Summary: Official client library to interact with the Neuronum Network
5
5
  Home-page: https://neuronum.net
6
6
  Author: Neuronum Cybernetics
@@ -34,7 +34,7 @@ Dynamic: summary
34
34
  <h1 align="center">
35
35
  <img src="https://neuronum.net/static/neuronum.svg" alt="Neuronum" width="80">
36
36
  </h1>
37
- <h4 align="center">Neuronum: Build Apps that Connect the World</h4>
37
+ <h4 align="center">Neuronum: The Real Time Data Engine</h4>
38
38
 
39
39
  <p align="center">
40
40
  <a href="https://neuronum.net">
@@ -64,12 +64,12 @@ In this brief getting started guide, you will:
64
64
  ------------------
65
65
 
66
66
  ### **About Neuronum**
67
- Neuronum empowers developers to build, ship & connect apps, services, and devices into serverless networks able to exchange data in real time
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
68
 
69
69
  ### **Features**
70
70
  **Cell & Nodes**
71
71
  - Cell: Account to connect and interact with Neuronum. [Learn More](https://github.com/neuronumcybernetics/neuronum/tree/main/features/cell)
72
- - Nodes: Soft- and Hardware components hosting Neuronum data gateways. [Learn More](https://github.com/neuronumcybernetics/neuronum/tree/main/features/nodes)
72
+ - Nodes (Apps): Soft- and Hardware components hosting Neuronum data gateways. [Learn More](https://github.com/neuronumcybernetics/neuronum/tree/main/features/nodes)
73
73
 
74
74
  **Data Gateways**
75
75
  - Transmitters (TX): Securely transmit and receive data packages. [Learn More](https://github.com/neuronumcybernetics/neuronum/tree/main/features/transmitters)
@@ -0,0 +1,10 @@
1
+ cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ cli/main.py,sha256=Yec9ovjqM6iI6IyUU8nhgrpcd7rIMocSoZI8QWY1KC4,35684
3
+ neuronum/__init__.py,sha256=Drsm263_w3_VWgl1YsKLUr8WwVodqV3TSjqpxLjyq_M,46
4
+ neuronum/neuronum.py,sha256=coAcZQFovKZeGVg8qQpfBkp2NdK4MpiIMdg22Vmi7nc,18490
5
+ neuronum-5.9.0.dist-info/licenses/LICENSE.md,sha256=zGst0rjgnp6oFuRVwFwB1Ql4sDXt_nw9xbUR49Gf99A,2008
6
+ neuronum-5.9.0.dist-info/METADATA,sha256=BlBH6oDflT_V2QmOm1JZjYOaONu4QDWto7QJBTGVL2g,7437
7
+ neuronum-5.9.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
8
+ neuronum-5.9.0.dist-info/entry_points.txt,sha256=XKYBcRNxGeJpZZkDPsa8HA_RaJ7Km_R_JaUq5T9Nk2U,42
9
+ neuronum-5.9.0.dist-info/top_level.txt,sha256=ru8Fr84cHm6oHr_DcJ8-uaq3RTiuCRFIr6AC8V0zPu4,13
10
+ neuronum-5.9.0.dist-info/RECORD,,
@@ -1,10 +0,0 @@
1
- cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- cli/main.py,sha256=Yec9ovjqM6iI6IyUU8nhgrpcd7rIMocSoZI8QWY1KC4,35684
3
- neuronum/__init__.py,sha256=Drsm263_w3_VWgl1YsKLUr8WwVodqV3TSjqpxLjyq_M,46
4
- neuronum/neuronum.py,sha256=ShcnqXZshUlRuqMQC-8S7_A0xutsW8R5UUr8zvvjm0g,17565
5
- neuronum-5.8.5.dist-info/licenses/LICENSE.md,sha256=zGst0rjgnp6oFuRVwFwB1Ql4sDXt_nw9xbUR49Gf99A,2008
6
- neuronum-5.8.5.dist-info/METADATA,sha256=WJLvc2xnldC7tN-iC9jyAFx5AngFFhCYxC8xJKLlG8Q,7443
7
- neuronum-5.8.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
8
- neuronum-5.8.5.dist-info/entry_points.txt,sha256=XKYBcRNxGeJpZZkDPsa8HA_RaJ7Km_R_JaUq5T9Nk2U,42
9
- neuronum-5.8.5.dist-info/top_level.txt,sha256=ru8Fr84cHm6oHr_DcJ8-uaq3RTiuCRFIr6AC8V0zPu4,13
10
- neuronum-5.8.5.dist-info/RECORD,,