neuronum 5.8.3__tar.gz → 5.8.4__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: 5.8.3
3
+ Version: 5.8.4
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: A Serverless Data Network in Pure Python</h4>
37
+ <h4 align="center">Neuronum: Build Apps that Connect the World</h4>
38
38
 
39
39
  <p align="center">
40
40
  <a href="https://neuronum.net">
@@ -1,7 +1,7 @@
1
1
  <h1 align="center">
2
2
  <img src="https://neuronum.net/static/neuronum.svg" alt="Neuronum" width="80">
3
3
  </h1>
4
- <h4 align="center">Neuronum: A Serverless Data Network in Pure Python</h4>
4
+ <h4 align="center">Neuronum: Build Apps that Connect the World</h4>
5
5
 
6
6
  <p align="center">
7
7
  <a href="https://neuronum.net">
@@ -841,10 +841,23 @@ async def async_stop_node():
841
841
 
842
842
  @click.command()
843
843
  def update_node():
844
+ click.echo("Update your Node")
844
845
  node_type = questionary.select(
845
- "Update Node type:",
846
- choices=["public", "private"]
846
+ "Who can view your Node?:",
847
+ choices=["public", "private", "partners"]
847
848
  ).ask()
849
+ partners = "None"
850
+ if node_type == "partners":
851
+ prompt_msg = (
852
+ "Enter the list of partners who can view this Node.\n"
853
+ "Format: partner::cell, partner::cell, partner::cell\n"
854
+ "Press Enter to leave the list unchanged"
855
+ )
856
+ partners = click.prompt(
857
+ prompt_msg,
858
+ default="None",
859
+ show_default=False
860
+ ).strip()
848
861
  descr = click.prompt(
849
862
  "Update Node description: Type up to 25 characters, or press Enter to leave it unchanged",
850
863
  default="None",
@@ -853,9 +866,9 @@ def update_node():
853
866
  if descr and len(descr) > 25:
854
867
  click.echo("Description too long. Max 25 characters allowed.")
855
868
  return
856
- asyncio.run(async_update_node(node_type, descr))
869
+ asyncio.run(async_update_node(node_type, descr, partners))
857
870
 
858
- async def async_update_node(node_type: str, descr: str) -> None:
871
+ async def async_update_node(node_type: str, descr: str, partners:str) -> None:
859
872
  env_data = {}
860
873
 
861
874
  try:
@@ -887,6 +900,9 @@ async def async_update_node(node_type: str, descr: str) -> None:
887
900
  except Exception as e:
888
901
  click.echo(f"Error reading NODE.md file: {e}")
889
902
  return
903
+
904
+ if node_type == "partners":
905
+ node_type = partners
890
906
 
891
907
  url = f"https://{network}/api/update_node"
892
908
  node = {
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: neuronum
3
- Version: 5.8.3
3
+ Version: 5.8.4
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: A Serverless Data Network in Pure Python</h4>
37
+ <h4 align="center">Neuronum: Build Apps that Connect the World</h4>
38
38
 
39
39
  <p align="center">
40
40
  <a href="https://neuronum.net">
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name='neuronum',
5
- version='5.8.3',
5
+ version='5.8.4',
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