neuronum 8.3.0__tar.gz → 8.4.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,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: neuronum
3
- Version: 8.3.0
3
+ Version: 8.4.0
4
4
  Summary: The E2E Web Engine
5
5
  Home-page: https://neuronum.net
6
6
  Author: Neuronum Cybernetics
@@ -364,7 +364,7 @@ async def main():
364
364
 
365
365
  response_data = {{}}
366
366
 
367
- if action == "ping_node":
367
+ if action == "ping_node" or action == "start_app":
368
368
 
369
369
  html_content = template.render(client=client, ts=ts, data=action, transmitter_id=transmitter_id)
370
370
 
@@ -516,7 +516,6 @@ asyncio.run(main())
516
516
  data: {{ "action": "ping_node" }},
517
517
  nodePublicKey: '{pem_public_oneline}',
518
518
  }};
519
-
520
519
  if (window.parent) {{
521
520
  window.parent.postMessage(messagePayload, '*');
522
521
  }}
@@ -536,19 +535,9 @@ f"""{{
536
535
  "version": "1.0.0",
537
536
  "author": "{host}",
538
537
  "audience": "private",
539
- "logo": "https://neuronum.net/static/logo.png"
538
+ "logo": "https://neuronum.net/static/logo.png",
539
+ "node_id": "{node_id}"
540
540
  }},
541
- "data_gateways": [
542
- {{
543
- "node_id": "{node_id}",
544
- "actions": [
545
- {{
546
- "action": "ping_node",
547
- "info": "Ping Node"
548
- }}
549
- ]
550
- }}
551
- ],
552
541
  "legals": {{
553
542
  "terms": "https://url_to_your/terms",
554
543
  "privacy_policy": "https://url_to_your/privacy_policy"
@@ -635,7 +624,7 @@ def check_node():
635
624
  with open('config.json', 'r') as f:
636
625
  data = json.load(f)
637
626
 
638
- nodeID = data['data_gateways'][0]['node_id']
627
+ nodeID = data['app_metadata']['node_id']
639
628
 
640
629
  except FileNotFoundError:
641
630
  click.echo("Error: .env with credentials not found")
@@ -699,7 +688,7 @@ def restart_node(d):
699
688
  with open('config.json', 'r') as f:
700
689
  data = json.load(f)
701
690
 
702
- nodeID = data['data_gateways'][0]['node_id']
691
+ nodeID = data['app_metadata']['node_id']
703
692
 
704
693
  except FileNotFoundError:
705
694
  print("Error: .env with credentials not found")
@@ -781,7 +770,7 @@ async def async_stop_node():
781
770
  with open('config.json', 'r') as f:
782
771
  data = json.load(f)
783
772
 
784
- nodeID = data['data_gateways'][0]['node_id']
773
+ nodeID = data['app_metadata']['node_id']
785
774
 
786
775
  except FileNotFoundError:
787
776
  print("Error: .env with credentials not found")
@@ -863,7 +852,7 @@ async def async_update_node(env_data, config_data, audience: str, descr: str):
863
852
  network = env_data.get("NETWORK", "")
864
853
  synapse = env_data.get("SYNAPSE", "")
865
854
 
866
- node_id = config_data.get("data_gateways", [{}])[0].get("node_id", "")
855
+ node_id = config_data.get("app_metadata", [{}]).get("node_id", "")
867
856
 
868
857
  with open("config.json", "r") as f:
869
858
  config_file_content = f.read()
@@ -941,7 +930,7 @@ async def _async_update_node_at_start(env_data, config_data, audience, descr):
941
930
  network = env_data.get("NETWORK", "")
942
931
  synapse = env_data.get("SYNAPSE", "")
943
932
 
944
- node_id = config_data.get("data_gateways", [{}])[0].get("node_id", "")
933
+ node_id = config_data.get("app_metadata", [{}]).get("node_id", "")
945
934
 
946
935
  try:
947
936
  with open("config.json", "r") as f:
@@ -995,7 +984,7 @@ async def async_delete_node():
995
984
  with open('config.json', 'r') as f:
996
985
  data = json.load(f)
997
986
 
998
- nodeID = data['data_gateways'][0]['node_id']
987
+ nodeID = data['app_metadata']['node_id']
999
988
 
1000
989
  except FileNotFoundError:
1001
990
  click.echo("Error: .env with credentials not found")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: neuronum
3
- Version: 8.3.0
3
+ Version: 8.4.0
4
4
  Summary: The E2E Web Engine
5
5
  Home-page: https://neuronum.net
6
6
  Author: Neuronum Cybernetics
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name='neuronum',
5
- version='8.3.0',
5
+ version='8.4.0',
6
6
  author='Neuronum Cybernetics',
7
7
  author_email='welcome@neuronum.net',
8
8
  description='The E2E Web Engine',
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes