neuronum 8.2.0__py3-none-any.whl → 8.4.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.
- cli/main.py +10 -20
- {neuronum-8.2.0.dist-info → neuronum-8.4.0.dist-info}/METADATA +1 -1
- neuronum-8.4.0.dist-info/RECORD +10 -0
- neuronum-8.2.0.dist-info/RECORD +0 -10
- {neuronum-8.2.0.dist-info → neuronum-8.4.0.dist-info}/WHEEL +0 -0
- {neuronum-8.2.0.dist-info → neuronum-8.4.0.dist-info}/entry_points.txt +0 -0
- {neuronum-8.2.0.dist-info → neuronum-8.4.0.dist-info}/licenses/LICENSE.md +0 -0
- {neuronum-8.2.0.dist-info → neuronum-8.4.0.dist-info}/top_level.txt +0 -0
cli/main.py
CHANGED
|
@@ -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
|
}}
|
|
@@ -535,19 +534,10 @@ f"""{{
|
|
|
535
534
|
"name": "{descr}",
|
|
536
535
|
"version": "1.0.0",
|
|
537
536
|
"author": "{host}",
|
|
538
|
-
"audience": "private"
|
|
537
|
+
"audience": "private",
|
|
538
|
+
"logo": "https://neuronum.net/static/logo.png",
|
|
539
|
+
"node_id": "{node_id}"
|
|
539
540
|
}},
|
|
540
|
-
"data_gateways": [
|
|
541
|
-
{{
|
|
542
|
-
"node_id": "{node_id}",
|
|
543
|
-
"actions": [
|
|
544
|
-
{{
|
|
545
|
-
"action": "ping_node",
|
|
546
|
-
"info": "Ping Node"
|
|
547
|
-
}}
|
|
548
|
-
]
|
|
549
|
-
}}
|
|
550
|
-
],
|
|
551
541
|
"legals": {{
|
|
552
542
|
"terms": "https://url_to_your/terms",
|
|
553
543
|
"privacy_policy": "https://url_to_your/privacy_policy"
|
|
@@ -634,7 +624,7 @@ def check_node():
|
|
|
634
624
|
with open('config.json', 'r') as f:
|
|
635
625
|
data = json.load(f)
|
|
636
626
|
|
|
637
|
-
nodeID = data['
|
|
627
|
+
nodeID = data['app_metadata']['node_id']
|
|
638
628
|
|
|
639
629
|
except FileNotFoundError:
|
|
640
630
|
click.echo("Error: .env with credentials not found")
|
|
@@ -698,7 +688,7 @@ def restart_node(d):
|
|
|
698
688
|
with open('config.json', 'r') as f:
|
|
699
689
|
data = json.load(f)
|
|
700
690
|
|
|
701
|
-
nodeID = data['
|
|
691
|
+
nodeID = data['app_metadata']['node_id']
|
|
702
692
|
|
|
703
693
|
except FileNotFoundError:
|
|
704
694
|
print("Error: .env with credentials not found")
|
|
@@ -780,7 +770,7 @@ async def async_stop_node():
|
|
|
780
770
|
with open('config.json', 'r') as f:
|
|
781
771
|
data = json.load(f)
|
|
782
772
|
|
|
783
|
-
nodeID = data['
|
|
773
|
+
nodeID = data['app_metadata']['node_id']
|
|
784
774
|
|
|
785
775
|
except FileNotFoundError:
|
|
786
776
|
print("Error: .env with credentials not found")
|
|
@@ -862,7 +852,7 @@ async def async_update_node(env_data, config_data, audience: str, descr: str):
|
|
|
862
852
|
network = env_data.get("NETWORK", "")
|
|
863
853
|
synapse = env_data.get("SYNAPSE", "")
|
|
864
854
|
|
|
865
|
-
node_id = config_data.get("
|
|
855
|
+
node_id = config_data.get("app_metadata", [{}]).get("node_id", "")
|
|
866
856
|
|
|
867
857
|
with open("config.json", "r") as f:
|
|
868
858
|
config_file_content = f.read()
|
|
@@ -940,7 +930,7 @@ async def _async_update_node_at_start(env_data, config_data, audience, descr):
|
|
|
940
930
|
network = env_data.get("NETWORK", "")
|
|
941
931
|
synapse = env_data.get("SYNAPSE", "")
|
|
942
932
|
|
|
943
|
-
node_id = config_data.get("
|
|
933
|
+
node_id = config_data.get("app_metadata", [{}]).get("node_id", "")
|
|
944
934
|
|
|
945
935
|
try:
|
|
946
936
|
with open("config.json", "r") as f:
|
|
@@ -994,7 +984,7 @@ async def async_delete_node():
|
|
|
994
984
|
with open('config.json', 'r') as f:
|
|
995
985
|
data = json.load(f)
|
|
996
986
|
|
|
997
|
-
nodeID = data['
|
|
987
|
+
nodeID = data['app_metadata']['node_id']
|
|
998
988
|
|
|
999
989
|
except FileNotFoundError:
|
|
1000
990
|
click.echo("Error: .env with credentials not found")
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
+
cli/main.py,sha256=00LpvST8Z9qpLD4A6F3hoxpmSjBfM7XXqljPrBPn3DE,31645
|
|
3
|
+
neuronum/__init__.py,sha256=qkAz6fpiS2KKnaKwPbS15y7lRCQV-XaWNTkVUarluPk,26
|
|
4
|
+
neuronum/neuronum.py,sha256=4iZjeQ1XTKPhUpojmpkYQiOaNZPZE6t7JUyhLPMOyuA,13183
|
|
5
|
+
neuronum-8.4.0.dist-info/licenses/LICENSE.md,sha256=m7pw_FktMNCs4tcy2UXP3QQP2S_je28P1SepdYoo0Xo,1961
|
|
6
|
+
neuronum-8.4.0.dist-info/METADATA,sha256=faLCIILYHaBhPmAOtIV59jeoF51q6UE31fSRRPA0LRE,3448
|
|
7
|
+
neuronum-8.4.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
8
|
+
neuronum-8.4.0.dist-info/entry_points.txt,sha256=XKYBcRNxGeJpZZkDPsa8HA_RaJ7Km_R_JaUq5T9Nk2U,42
|
|
9
|
+
neuronum-8.4.0.dist-info/top_level.txt,sha256=ru8Fr84cHm6oHr_DcJ8-uaq3RTiuCRFIr6AC8V0zPu4,13
|
|
10
|
+
neuronum-8.4.0.dist-info/RECORD,,
|
neuronum-8.2.0.dist-info/RECORD
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
-
cli/main.py,sha256=lNzUeW_cJKS9sTbaWO1wXZvLcvZ_PbUC3vYYTNGDEfs,31747
|
|
3
|
-
neuronum/__init__.py,sha256=qkAz6fpiS2KKnaKwPbS15y7lRCQV-XaWNTkVUarluPk,26
|
|
4
|
-
neuronum/neuronum.py,sha256=4iZjeQ1XTKPhUpojmpkYQiOaNZPZE6t7JUyhLPMOyuA,13183
|
|
5
|
-
neuronum-8.2.0.dist-info/licenses/LICENSE.md,sha256=m7pw_FktMNCs4tcy2UXP3QQP2S_je28P1SepdYoo0Xo,1961
|
|
6
|
-
neuronum-8.2.0.dist-info/METADATA,sha256=WK0q97Q2HOJstFkcaPiotF2LeczYr1afQ__zGYqDkaw,3448
|
|
7
|
-
neuronum-8.2.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
8
|
-
neuronum-8.2.0.dist-info/entry_points.txt,sha256=XKYBcRNxGeJpZZkDPsa8HA_RaJ7Km_R_JaUq5T9Nk2U,42
|
|
9
|
-
neuronum-8.2.0.dist-info/top_level.txt,sha256=ru8Fr84cHm6oHr_DcJ8-uaq3RTiuCRFIr6AC8V0zPu4,13
|
|
10
|
-
neuronum-8.2.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|