neuronum 6.0.0__tar.gz → 6.0.1__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.
- {neuronum-6.0.0/neuronum.egg-info → neuronum-6.0.1}/PKG-INFO +1 -1
- {neuronum-6.0.0 → neuronum-6.0.1}/cli/main.py +34 -11
- {neuronum-6.0.0 → neuronum-6.0.1/neuronum.egg-info}/PKG-INFO +1 -1
- {neuronum-6.0.0 → neuronum-6.0.1}/setup.py +1 -1
- {neuronum-6.0.0 → neuronum-6.0.1}/LICENSE.md +0 -0
- {neuronum-6.0.0 → neuronum-6.0.1}/README.md +0 -0
- {neuronum-6.0.0 → neuronum-6.0.1}/cli/__init__.py +0 -0
- {neuronum-6.0.0 → neuronum-6.0.1}/neuronum/__init__.py +0 -0
- {neuronum-6.0.0 → neuronum-6.0.1}/neuronum/neuronum.py +0 -0
- {neuronum-6.0.0 → neuronum-6.0.1}/neuronum.egg-info/SOURCES.txt +0 -0
- {neuronum-6.0.0 → neuronum-6.0.1}/neuronum.egg-info/dependency_links.txt +0 -0
- {neuronum-6.0.0 → neuronum-6.0.1}/neuronum.egg-info/entry_points.txt +0 -0
- {neuronum-6.0.0 → neuronum-6.0.1}/neuronum.egg-info/requires.txt +0 -0
- {neuronum-6.0.0 → neuronum-6.0.1}/neuronum.egg-info/top_level.txt +0 -0
- {neuronum-6.0.0 → neuronum-6.0.1}/setup.cfg +0 -0
|
@@ -315,9 +315,9 @@ async def async_init_node(sync, stream, app, descr):
|
|
|
315
315
|
env_path = project_path / ".env"
|
|
316
316
|
await asyncio.to_thread(env_path.write_text, f"NODE={nodeID}\nHOST={host}\nPASSWORD={password}\nNETWORK={network}\nSYNAPSE={synapse}\n")
|
|
317
317
|
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
318
|
+
|
|
319
|
+
config_path = project_path / "config.json"
|
|
320
|
+
await asyncio.to_thread(config_path.write_text, """{
|
|
321
321
|
"data_gateways": [
|
|
322
322
|
{
|
|
323
323
|
"type": "stream",
|
|
@@ -333,14 +333,14 @@ async def async_init_node(sync, stream, app, descr):
|
|
|
333
333
|
"type": "circuit",
|
|
334
334
|
"id": "id::ctx",
|
|
335
335
|
"info": "provide a detailed description about the circuit"
|
|
336
|
-
}
|
|
336
|
+
}
|
|
337
337
|
]
|
|
338
338
|
}
|
|
339
|
-
|
|
339
|
+
"""
|
|
340
340
|
)
|
|
341
341
|
|
|
342
|
-
|
|
343
|
-
|
|
342
|
+
nodemd_path = project_path / "NODE.md"
|
|
343
|
+
await asyncio.to_thread(nodemd_path.write_text, """### NODE.md: Create a detailed Markdown File on how to interact with this Node""")
|
|
344
344
|
|
|
345
345
|
stx = sync[0] if sync else (stream[0] if stream else host.replace("::cell", "::stx"))
|
|
346
346
|
|
|
@@ -828,10 +828,33 @@ async def async_stop_node():
|
|
|
828
828
|
@click.command()
|
|
829
829
|
def update_node():
|
|
830
830
|
click.echo("Update your Node")
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
831
|
+
env_data = {}
|
|
832
|
+
|
|
833
|
+
try:
|
|
834
|
+
with open(".env", "r") as f:
|
|
835
|
+
for line in f:
|
|
836
|
+
key, value = line.strip().split("=")
|
|
837
|
+
env_data[key] = value
|
|
838
|
+
|
|
839
|
+
host = env_data.get("HOST", "")
|
|
840
|
+
|
|
841
|
+
except FileNotFoundError:
|
|
842
|
+
click.echo("Error: .env with credentials not found")
|
|
843
|
+
return
|
|
844
|
+
except Exception as e:
|
|
845
|
+
click.echo(f"Error reading .env file: {e}")
|
|
846
|
+
return
|
|
847
|
+
|
|
848
|
+
if host.startswith("CMTY_"):
|
|
849
|
+
node_type = questionary.select(
|
|
850
|
+
"Community Cells can only create private Nodes",
|
|
851
|
+
choices=["private"]
|
|
852
|
+
).ask()
|
|
853
|
+
else:
|
|
854
|
+
node_type = questionary.select(
|
|
855
|
+
"Who can view your Node?:",
|
|
856
|
+
choices=["public", "private", "partners"]
|
|
857
|
+
).ask()
|
|
835
858
|
partners = "None"
|
|
836
859
|
if node_type == "partners":
|
|
837
860
|
prompt_msg = (
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|