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.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: neuronum
3
- Version: 6.0.0
3
+ Version: 6.0.1
4
4
  Summary: Official client library to interact with the Neuronum Network
5
5
  Home-page: https://neuronum.net
6
6
  Author: Neuronum Cybernetics
@@ -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
- if app:
319
- config_path = project_path / "config.json"
320
- await asyncio.to_thread(config_path.write_text, """{
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
- 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""")
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
- node_type = questionary.select(
832
- "Who can view your Node?:",
833
- choices=["public", "private", "partners"]
834
- ).ask()
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 = (
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: neuronum
3
- Version: 6.0.0
3
+ Version: 6.0.1
4
4
  Summary: Official client library to interact with the Neuronum Network
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='6.0.0',
5
+ version='6.0.1',
6
6
  author='Neuronum Cybernetics',
7
7
  author_email='welcome@neuronum.net',
8
8
  description='Official client library to interact with the Neuronum Network',
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes