naeural-client 2.6.1__tar.gz → 2.6.2__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
Files changed (142) hide show
  1. {naeural_client-2.6.1 → naeural_client-2.6.2}/PKG-INFO +1 -1
  2. {naeural_client-2.6.1 → naeural_client-2.6.2}/naeural_client/_ver.py +1 -1
  3. {naeural_client-2.6.1 → naeural_client-2.6.2}/naeural_client/bc/base.py +8 -3
  4. {naeural_client-2.6.1 → naeural_client-2.6.2}/naeural_client/cli/cli.py +1 -1
  5. {naeural_client-2.6.1 → naeural_client-2.6.2}/naeural_client/cli/cli_commands.py +5 -0
  6. {naeural_client-2.6.1 → naeural_client-2.6.2}/naeural_client/utils/config.py +27 -15
  7. {naeural_client-2.6.1 → naeural_client-2.6.2}/pyproject.toml +1 -1
  8. {naeural_client-2.6.1 → naeural_client-2.6.2}/.devcontainer/Dockerfile +0 -0
  9. {naeural_client-2.6.1 → naeural_client-2.6.2}/.devcontainer/devcontainer.json +0 -0
  10. {naeural_client-2.6.1 → naeural_client-2.6.2}/.gitattributes +0 -0
  11. {naeural_client-2.6.1 → naeural_client-2.6.2}/.github/workflows/python-publish.yml +0 -0
  12. {naeural_client-2.6.1 → naeural_client-2.6.2}/.gitignore +0 -0
  13. {naeural_client-2.6.1 → naeural_client-2.6.2}/.vscode/launch.json +0 -0
  14. {naeural_client-2.6.1 → naeural_client-2.6.2}/LICENSE +0 -0
  15. {naeural_client-2.6.1 → naeural_client-2.6.2}/README.md +0 -0
  16. {naeural_client-2.6.1 → naeural_client-2.6.2}/TODOs.md +0 -0
  17. {naeural_client-2.6.1 → naeural_client-2.6.2}/__init__.py +0 -0
  18. {naeural_client-2.6.1 → naeural_client-2.6.2}/naeural_client/__init__.py +0 -0
  19. {naeural_client-2.6.1 → naeural_client-2.6.2}/naeural_client/base/__init__.py +0 -0
  20. {naeural_client-2.6.1 → naeural_client-2.6.2}/naeural_client/base/distributed_custom_code_presets.py +0 -0
  21. {naeural_client-2.6.1 → naeural_client-2.6.2}/naeural_client/base/generic_session.py +0 -0
  22. {naeural_client-2.6.1 → naeural_client-2.6.2}/naeural_client/base/instance.py +0 -0
  23. {naeural_client-2.6.1 → naeural_client-2.6.2}/naeural_client/base/payload/__init__.py +0 -0
  24. {naeural_client-2.6.1 → naeural_client-2.6.2}/naeural_client/base/payload/payload.py +0 -0
  25. {naeural_client-2.6.1 → naeural_client-2.6.2}/naeural_client/base/pipeline.py +0 -0
  26. {naeural_client-2.6.1 → naeural_client-2.6.2}/naeural_client/base/plugin_template.py +0 -0
  27. {naeural_client-2.6.1 → naeural_client-2.6.2}/naeural_client/base/responses.py +0 -0
  28. {naeural_client-2.6.1 → naeural_client-2.6.2}/naeural_client/base/transaction.py +0 -0
  29. {naeural_client-2.6.1 → naeural_client-2.6.2}/naeural_client/base/webapp_pipeline.py +0 -0
  30. {naeural_client-2.6.1 → naeural_client-2.6.2}/naeural_client/base_decentra_object.py +0 -0
  31. {naeural_client-2.6.1 → naeural_client-2.6.2}/naeural_client/bc/__init__.py +0 -0
  32. {naeural_client-2.6.1 → naeural_client-2.6.2}/naeural_client/bc/chain.py +0 -0
  33. {naeural_client-2.6.1 → naeural_client-2.6.2}/naeural_client/bc/ec.py +0 -0
  34. {naeural_client-2.6.1 → naeural_client-2.6.2}/naeural_client/certs/__init__.py +0 -0
  35. {naeural_client-2.6.1 → naeural_client-2.6.2}/naeural_client/certs/r9092118.ala.eu-central-1.emqxsl.com.crt +0 -0
  36. {naeural_client-2.6.1 → naeural_client-2.6.2}/naeural_client/cli/README.md +0 -0
  37. {naeural_client-2.6.1 → naeural_client-2.6.2}/naeural_client/cli/nodes.py +0 -0
  38. {naeural_client-2.6.1 → naeural_client-2.6.2}/naeural_client/code_cheker/__init__.py +0 -0
  39. {naeural_client-2.6.1 → naeural_client-2.6.2}/naeural_client/code_cheker/base.py +0 -0
  40. {naeural_client-2.6.1 → naeural_client-2.6.2}/naeural_client/code_cheker/checker.py +0 -0
  41. {naeural_client-2.6.1 → naeural_client-2.6.2}/naeural_client/comm/__init__.py +0 -0
  42. {naeural_client-2.6.1 → naeural_client-2.6.2}/naeural_client/comm/amqp_wrapper.py +0 -0
  43. {naeural_client-2.6.1 → naeural_client-2.6.2}/naeural_client/comm/mqtt_wrapper.py +0 -0
  44. {naeural_client-2.6.1 → naeural_client-2.6.2}/naeural_client/const/README.md +0 -0
  45. {naeural_client-2.6.1 → naeural_client-2.6.2}/naeural_client/const/__init__.py +0 -0
  46. {naeural_client-2.6.1 → naeural_client-2.6.2}/naeural_client/const/apps.py +0 -0
  47. {naeural_client-2.6.1 → naeural_client-2.6.2}/naeural_client/const/base.py +0 -0
  48. {naeural_client-2.6.1 → naeural_client-2.6.2}/naeural_client/const/comms.py +0 -0
  49. {naeural_client-2.6.1 → naeural_client-2.6.2}/naeural_client/const/environment.py +0 -0
  50. {naeural_client-2.6.1 → naeural_client-2.6.2}/naeural_client/const/formatter.py +0 -0
  51. {naeural_client-2.6.1 → naeural_client-2.6.2}/naeural_client/const/heartbeat.py +0 -0
  52. {naeural_client-2.6.1 → naeural_client-2.6.2}/naeural_client/const/misc.py +0 -0
  53. {naeural_client-2.6.1 → naeural_client-2.6.2}/naeural_client/const/payload.py +0 -0
  54. {naeural_client-2.6.1 → naeural_client-2.6.2}/naeural_client/default/__init__.py +0 -0
  55. {naeural_client-2.6.1 → naeural_client-2.6.2}/naeural_client/default/instance/__init__.py +0 -0
  56. {naeural_client-2.6.1 → naeural_client-2.6.2}/naeural_client/default/instance/chain_dist_custom_job_01_plugin.py +0 -0
  57. {naeural_client-2.6.1 → naeural_client-2.6.2}/naeural_client/default/instance/custom_webapi_01_plugin.py +0 -0
  58. {naeural_client-2.6.1 → naeural_client-2.6.2}/naeural_client/default/instance/net_mon_01_plugin.py +0 -0
  59. {naeural_client-2.6.1 → naeural_client-2.6.2}/naeural_client/default/instance/telegram_basic_bot_01_plugin.py +0 -0
  60. {naeural_client-2.6.1 → naeural_client-2.6.2}/naeural_client/default/instance/telegram_conversational_bot_01_plugin.py +0 -0
  61. {naeural_client-2.6.1 → naeural_client-2.6.2}/naeural_client/default/instance/view_scene_01_plugin.py +0 -0
  62. {naeural_client-2.6.1 → naeural_client-2.6.2}/naeural_client/default/session/mqtt_session.py +0 -0
  63. {naeural_client-2.6.1 → naeural_client-2.6.2}/naeural_client/io_formatter/__init__.py +0 -0
  64. {naeural_client-2.6.1 → naeural_client-2.6.2}/naeural_client/io_formatter/base/__init__.py +0 -0
  65. {naeural_client-2.6.1 → naeural_client-2.6.2}/naeural_client/io_formatter/base/base_formatter.py +0 -0
  66. {naeural_client-2.6.1 → naeural_client-2.6.2}/naeural_client/io_formatter/default/__init__.py +0 -0
  67. {naeural_client-2.6.1 → naeural_client-2.6.2}/naeural_client/io_formatter/default/a_dummy.py +0 -0
  68. {naeural_client-2.6.1 → naeural_client-2.6.2}/naeural_client/io_formatter/default/aixp1.py +0 -0
  69. {naeural_client-2.6.1 → naeural_client-2.6.2}/naeural_client/io_formatter/default/default.py +0 -0
  70. {naeural_client-2.6.1 → naeural_client-2.6.2}/naeural_client/io_formatter/io_formatter_manager.py +0 -0
  71. {naeural_client-2.6.1 → naeural_client-2.6.2}/naeural_client/logging/__init__.py +0 -0
  72. {naeural_client-2.6.1 → naeural_client-2.6.2}/naeural_client/logging/base_logger.py +0 -0
  73. {naeural_client-2.6.1 → naeural_client-2.6.2}/naeural_client/logging/logger_mixins/__init__.py +0 -0
  74. {naeural_client-2.6.1 → naeural_client-2.6.2}/naeural_client/logging/logger_mixins/class_instance_mixin.py +0 -0
  75. {naeural_client-2.6.1 → naeural_client-2.6.2}/naeural_client/logging/logger_mixins/computer_vision_mixin.py +0 -0
  76. {naeural_client-2.6.1 → naeural_client-2.6.2}/naeural_client/logging/logger_mixins/datetime_mixin.py +0 -0
  77. {naeural_client-2.6.1 → naeural_client-2.6.2}/naeural_client/logging/logger_mixins/download_mixin.py +0 -0
  78. {naeural_client-2.6.1 → naeural_client-2.6.2}/naeural_client/logging/logger_mixins/general_serialization_mixin.py +0 -0
  79. {naeural_client-2.6.1 → naeural_client-2.6.2}/naeural_client/logging/logger_mixins/json_serialization_mixin.py +0 -0
  80. {naeural_client-2.6.1 → naeural_client-2.6.2}/naeural_client/logging/logger_mixins/pickle_serialization_mixin.py +0 -0
  81. {naeural_client-2.6.1 → naeural_client-2.6.2}/naeural_client/logging/logger_mixins/process_mixin.py +0 -0
  82. {naeural_client-2.6.1 → naeural_client-2.6.2}/naeural_client/logging/logger_mixins/resource_size_mixin.py +0 -0
  83. {naeural_client-2.6.1 → naeural_client-2.6.2}/naeural_client/logging/logger_mixins/timers_mixin.py +0 -0
  84. {naeural_client-2.6.1 → naeural_client-2.6.2}/naeural_client/logging/logger_mixins/upload_mixin.py +0 -0
  85. {naeural_client-2.6.1 → naeural_client-2.6.2}/naeural_client/logging/logger_mixins/utils_mixin.py +0 -0
  86. {naeural_client-2.6.1 → naeural_client-2.6.2}/naeural_client/logging/small_logger.py +0 -0
  87. {naeural_client-2.6.1 → naeural_client-2.6.2}/naeural_client/logging/tzlocal/__init__.py +0 -0
  88. {naeural_client-2.6.1 → naeural_client-2.6.2}/naeural_client/logging/tzlocal/unix.py +0 -0
  89. {naeural_client-2.6.1 → naeural_client-2.6.2}/naeural_client/logging/tzlocal/utils.py +0 -0
  90. {naeural_client-2.6.1 → naeural_client-2.6.2}/naeural_client/logging/tzlocal/win32.py +0 -0
  91. {naeural_client-2.6.1 → naeural_client-2.6.2}/naeural_client/logging/tzlocal/windows_tz.py +0 -0
  92. {naeural_client-2.6.1 → naeural_client-2.6.2}/naeural_client/plugins_manager_mixin.py +0 -0
  93. {naeural_client-2.6.1 → naeural_client-2.6.2}/naeural_client/utils/__init__.py +0 -0
  94. {naeural_client-2.6.1 → naeural_client-2.6.2}/naeural_client/utils/comm_utils.py +0 -0
  95. {naeural_client-2.6.1 → naeural_client-2.6.2}/naeural_client/utils/dotenv.py +0 -0
  96. {naeural_client-2.6.1 → naeural_client-2.6.2}/nepctl.MD +0 -0
  97. {naeural_client-2.6.1 → naeural_client-2.6.2}/requirements.txt +0 -0
  98. {naeural_client-2.6.1 → naeural_client-2.6.2}/tutorials/.example_env +0 -0
  99. {naeural_client-2.6.1 → naeural_client-2.6.2}/tutorials/8. custom_code_fastapi_assets/index.html +0 -0
  100. {naeural_client-2.6.1 → naeural_client-2.6.2}/tutorials/9. code_sandbox_from_scratch_assets/index.html +0 -0
  101. {naeural_client-2.6.1 → naeural_client-2.6.2}/tutorials/_example_pk_sdk.pem +0 -0
  102. {naeural_client-2.6.1 → naeural_client-2.6.2}/tutorials/ex01_part1_connect.py +0 -0
  103. {naeural_client-2.6.1 → naeural_client-2.6.2}/tutorials/ex01_part2_filter.py +0 -0
  104. {naeural_client-2.6.1 → naeural_client-2.6.2}/tutorials/ex01_part3_adv_filter.py +0 -0
  105. {naeural_client-2.6.1 → naeural_client-2.6.2}/tutorials/ex02_first_deploy.py +0 -0
  106. {naeural_client-2.6.1 → naeural_client-2.6.2}/tutorials/ex03_custom_code_on_one_remote__example_1.py +0 -0
  107. {naeural_client-2.6.1 → naeural_client-2.6.2}/tutorials/ex04_custom_code_on_one_remote__example_2.py +0 -0
  108. {naeural_client-2.6.1 → naeural_client-2.6.2}/tutorials/ex05_custom_code_on_one_remote__example_3.py +0 -0
  109. {naeural_client-2.6.1 → naeural_client-2.6.2}/tutorials/ex06_custom_code_on_multiple_remotes__example_1.py +0 -0
  110. {naeural_client-2.6.1 → naeural_client-2.6.2}/tutorials/ex07_custom_code_on_multiple_remotes__example_2.py +0 -0
  111. {naeural_client-2.6.1 → naeural_client-2.6.2}/tutorials/ex08_custom_webapi.py +0 -0
  112. {naeural_client-2.6.1 → naeural_client-2.6.2}/tutorials/ex09_code_sandbox_from_scratch.py +0 -0
  113. {naeural_client-2.6.1 → naeural_client-2.6.2}/tutorials/ex10_telegram_echo_bot.py +0 -0
  114. {naeural_client-2.6.1 → naeural_client-2.6.2}/tutorials/ex11_telegram_blackjack_bot.py +0 -0
  115. {naeural_client-2.6.1 → naeural_client-2.6.2}/tutorials/ex12_telegram_smart_bot.py +0 -0
  116. {naeural_client-2.6.1 → naeural_client-2.6.2}/tutorials/ex13_launch_repo_based_webapp.py +0 -0
  117. {naeural_client-2.6.1 → naeural_client-2.6.2}/tutorials/video_presentation/1. hello_world.ipynb +0 -0
  118. {naeural_client-2.6.1 → naeural_client-2.6.2}/winrun.bat +0 -0
  119. {naeural_client-2.6.1 → naeural_client-2.6.2}/xperimental/.example_env +0 -0
  120. {naeural_client-2.6.1 → naeural_client-2.6.2}/xperimental/_archive/test.py +0 -0
  121. {naeural_client-2.6.1 → naeural_client-2.6.2}/xperimental/_tutorials/3. simple_real_time_custom_code.py +0 -0
  122. {naeural_client-2.6.1 → naeural_client-2.6.2}/xperimental/_tutorials/4. real_time_custom_code_2.py +0 -0
  123. {naeural_client-2.6.1 → naeural_client-2.6.2}/xperimental/_tutorials/8. chatbot.py +0 -0
  124. {naeural_client-2.6.1 → naeural_client-2.6.2}/xperimental/auth/t1.py +0 -0
  125. {naeural_client-2.6.1 → naeural_client-2.6.2}/xperimental/check_local_keys/check1.py +0 -0
  126. {naeural_client-2.6.1 → naeural_client-2.6.2}/xperimental/decentralized/chain_dist_example.py +0 -0
  127. {naeural_client-2.6.1 → naeural_client-2.6.2}/xperimental/decentralized/chain_dist_example_initiator.py +0 -0
  128. {naeural_client-2.6.1 → naeural_client-2.6.2}/xperimental/decentralized/chain_dist_example_worker.py +0 -0
  129. {naeural_client-2.6.1 → naeural_client-2.6.2}/xperimental/enc_dec/enc_dec_test.py +0 -0
  130. {naeural_client-2.6.1 → naeural_client-2.6.2}/xperimental/eth/eth_sign.py +0 -0
  131. {naeural_client-2.6.1 → naeural_client-2.6.2}/xperimental/eth/info.md +0 -0
  132. {naeural_client-2.6.1 → naeural_client-2.6.2}/xperimental/eth/sign.py +0 -0
  133. {naeural_client-2.6.1 → naeural_client-2.6.2}/xperimental/multi-enc-dec/multi_test1.py +0 -0
  134. {naeural_client-2.6.1 → naeural_client-2.6.2}/xperimental/multi-enc-dec/multi_test2.py +0 -0
  135. {naeural_client-2.6.1 → naeural_client-2.6.2}/xperimental/sign/test_sign1.py +0 -0
  136. {naeural_client-2.6.1 → naeural_client-2.6.2}/xperimental/utils/get_documentation.py +0 -0
  137. {naeural_client-2.6.1 → naeural_client-2.6.2}/xperimental/various/README.md +0 -0
  138. {naeural_client-2.6.1 → naeural_client-2.6.2}/xperimental/various/attach_example.py +0 -0
  139. {naeural_client-2.6.1 → naeural_client-2.6.2}/xperimental/various/ex1.py +0 -0
  140. {naeural_client-2.6.1 → naeural_client-2.6.2}/xperimental/various/hello.py +0 -0
  141. {naeural_client-2.6.1 → naeural_client-2.6.2}/xperimental/various/remote_exec.py +0 -0
  142. {naeural_client-2.6.1 → naeural_client-2.6.2}/xperimental/various/save_images.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: naeural_client
3
- Version: 2.6.1
3
+ Version: 2.6.2
4
4
  Summary: `naeural_client` is the Python SDK required for client app development for the Naeural Edge Protocol Edge Protocol framework
5
5
  Project-URL: Homepage, https://github.com/NaeuralEdgeProtocol/naeural_client
6
6
  Project-URL: Bug Tracker, https://github.com/NaeuralEdgeProtocol/naeural_client/issues
@@ -1,4 +1,4 @@
1
- __VER__ = "2.6.1"
1
+ __VER__ = "2.6.2"
2
2
 
3
3
  if __name__ == "__main__":
4
4
  with open("pyproject.toml", "rt") as fd:
@@ -1252,15 +1252,20 @@ class BaseBlockEngine:
1252
1252
  dct_env = {k : v for k,v in dct_result.items() if k.startswith('EE_')}
1253
1253
  self.P("Found {} keys in dAuth response.".format(len(dct_env)), color='g')
1254
1254
  for k, v in dct_env.items():
1255
+ try:
1256
+ if not isinstance(v, str):
1257
+ v = json.dumps(v)
1258
+ except:
1259
+ v = str(v)
1255
1260
  if k not in os.environ:
1256
- self.P(f" Adding key `{k}{'=' + str(v) if debug else ''}` to env.", color='y')
1261
+ self.P(f" Adding key `{k}{'=' + str(v) + ' ({})'.format(type(v).__name__) if debug else ''}` to env.", color='y')
1257
1262
  else:
1258
- self.P(f" Overwrite `{k}{'=' + str(v) if debug else ''}` in env.", color='y')
1263
+ self.P(f" Overwrite `{k}{'=' + str(v) + ' ({})'.format(type(v).__name__) if debug else ''}` in env.", color='y')
1259
1264
  if add_env:
1260
1265
  os.environ[k] = v
1261
1266
  done = True
1262
1267
  except Exception as exc:
1263
- self.P(f"Error in dAuth URL request: {exc}", color='r')
1268
+ self.P(f"Error in dAuth URL request: {exc}. Received: {dct_result}", color='r')
1264
1269
  #end try
1265
1270
  tries += 1
1266
1271
  if tries >= max_tries:
@@ -34,7 +34,7 @@ def build_parser():
34
34
  """
35
35
  global_parser = create_global_parser() # Add global parameters
36
36
 
37
- title = f"nepctl v{version} - CLI for Naeural Edge Protocol SDK package"
37
+ title = f"nepctl for SDK v{version} - CLI for Naeural Edge Protocol SDK package"
38
38
  parser = argparse.ArgumentParser(description=title, parents=[global_parser])
39
39
  subparsers = parser.add_subparsers(dest="command", help="Available commands")
40
40
 
@@ -31,6 +31,11 @@ CLI_COMMANDS = {
31
31
  "reset": {
32
32
  "func": reset_config, # DONE
33
33
  "description": "Reset the configuration to default",
34
+ # "params": {
35
+ # ### use "(flag)" at the end of the description to indicate a boolean flag
36
+ # ### otherwise it will be treated as a str parameter
37
+ # "--force": "Force reset (flag)", # DONE
38
+ # }
34
39
  },
35
40
  "addr": {
36
41
  "func": show_address, # DONE
@@ -3,6 +3,7 @@ from pathlib import Path
3
3
  import shutil
4
4
 
5
5
  from naeural_client.const.base import BCct
6
+ from naeural_client._ver import __VER__ as version
6
7
 
7
8
 
8
9
  CONFIG_FILE = "config"
@@ -70,7 +71,9 @@ def log_with_color(s, color='n'):
70
71
  'b': "\033[36m", # bright cyan
71
72
  'w': '\033[97m', # Light white
72
73
  'c': "\033[36m", # bright cyan
73
- 'n': '\033[37m', # Dark white (default)
74
+ 'n': '\033[37m', # white (default)
75
+ 'd': "\033[90m", # dark gray
76
+
74
77
  }
75
78
 
76
79
  reset_code = '\033[0m' # Reset color
@@ -90,7 +93,7 @@ def get_user_config_file():
90
93
  """
91
94
  return get_user_folder() / CONFIG_FILE
92
95
 
93
- def reset_config(*larg, **kwargs):
96
+ def reset_config(*larg, keep_existing=False, **kwargs):
94
97
  """
95
98
  Resets the configuration by creating a ~/.naeural folder and populating
96
99
  ~/.naeural/config with values from a local .env file, if it exists.
@@ -130,7 +133,12 @@ def reset_config(*larg, **kwargs):
130
133
  log_with_color(f"Copying local PEM file {local_pem} to {target_pem}", color='y')
131
134
  shutil.copy(local_pem, target_pem)
132
135
  else:
133
- log_with_color(f"No local PEM file found at {local_pem}. A default private key will be generated.", color='r')
136
+ log_with_color(f"No local PEM file found locally {local_pem}.", color='r')
137
+ if target_pem.exists():
138
+ log_with_color(f"Found already existing {target_pem}.", color='y')
139
+ if not keep_existing:
140
+ target_pem.unlink()
141
+ log_with_color(f"Deleted {target_pem}. A default key will be generated.", color='b')
134
142
  return
135
143
 
136
144
  def show_address(args):
@@ -144,25 +152,29 @@ def show_address(args):
144
152
  log_with_color(f"{sess.get_client_address()}", color='b')
145
153
  return
146
154
 
147
-
148
- def show_config(args):
149
- """
150
- Displays the current configuration from ~/.naeural/config.
151
- """
155
+ def show_version():
152
156
  from naeural_client import Session
153
157
  sess = Session(
154
158
  silent=True
155
- )
159
+ )
156
160
 
157
- user_folder = get_user_folder()
158
- config_file = get_user_config_file()
161
+ user_folder = get_user_folder()
159
162
 
160
163
  log_with_color(f"NEP SDK folder: {user_folder}", color='b')
164
+ log_with_color(f"NEP SDK version: {version}", color='b')
161
165
  log_with_color(f"SDK Client address: {sess.get_client_address()}", color='b')
166
+ return
167
+
168
+
169
+ def show_config(args):
170
+ """
171
+ Displays the current configuration from ~/.naeural/config.
172
+ """
173
+ show_version()
174
+ config_file = get_user_config_file()
162
175
  if config_file.exists():
163
- log_with_color(f"Current configuration ({config_file}):", color='y')
164
176
  with config_file.open("r") as file:
165
- log_with_color(file.read())
177
+ log_with_color(f"Current configuration ({config_file}):\n{file.read()}", color='d')
166
178
  else:
167
179
  log_with_color(f"No configuration found at {config_file}. Please run `reset_config` first.", color="r")
168
180
  return
@@ -202,7 +214,7 @@ def maybe_init_config():
202
214
  """
203
215
  config_file = get_user_config_file()
204
216
  if not config_file.exists():
205
- log_with_color(f"No configuration file found at {config_file}. Initializing configuration...", color="y")
206
- reset_config()
217
+ log_with_color(f"No configuration file found at {config_file}. Initializing configuration...", color="y")
218
+ reset_config(keep_existing=True)
207
219
  return False
208
220
  return load_user_defined_config()
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "naeural_client"
7
- version = "2.6.1"
7
+ version = "2.6.2"
8
8
  authors = [
9
9
  { name="Andrei Ionut Damian", email="andrei.damian@me.com" },
10
10
  { name="Cristan Bleotiu", email="cristibleotiu@gmail.com" },
File without changes
File without changes
File without changes
File without changes