naeural-client 2.6.0__tar.gz → 2.6.1__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.0 → naeural_client-2.6.1}/PKG-INFO +1 -1
  2. {naeural_client-2.6.0 → naeural_client-2.6.1}/naeural_client/_ver.py +1 -1
  3. {naeural_client-2.6.0 → naeural_client-2.6.1}/naeural_client/logging/base_logger.py +10 -4
  4. {naeural_client-2.6.0 → naeural_client-2.6.1}/pyproject.toml +1 -1
  5. {naeural_client-2.6.0 → naeural_client-2.6.1}/.devcontainer/Dockerfile +0 -0
  6. {naeural_client-2.6.0 → naeural_client-2.6.1}/.devcontainer/devcontainer.json +0 -0
  7. {naeural_client-2.6.0 → naeural_client-2.6.1}/.gitattributes +0 -0
  8. {naeural_client-2.6.0 → naeural_client-2.6.1}/.github/workflows/python-publish.yml +0 -0
  9. {naeural_client-2.6.0 → naeural_client-2.6.1}/.gitignore +0 -0
  10. {naeural_client-2.6.0 → naeural_client-2.6.1}/.vscode/launch.json +0 -0
  11. {naeural_client-2.6.0 → naeural_client-2.6.1}/LICENSE +0 -0
  12. {naeural_client-2.6.0 → naeural_client-2.6.1}/README.md +0 -0
  13. {naeural_client-2.6.0 → naeural_client-2.6.1}/TODOs.md +0 -0
  14. {naeural_client-2.6.0 → naeural_client-2.6.1}/__init__.py +0 -0
  15. {naeural_client-2.6.0 → naeural_client-2.6.1}/naeural_client/__init__.py +0 -0
  16. {naeural_client-2.6.0 → naeural_client-2.6.1}/naeural_client/base/__init__.py +0 -0
  17. {naeural_client-2.6.0 → naeural_client-2.6.1}/naeural_client/base/distributed_custom_code_presets.py +0 -0
  18. {naeural_client-2.6.0 → naeural_client-2.6.1}/naeural_client/base/generic_session.py +0 -0
  19. {naeural_client-2.6.0 → naeural_client-2.6.1}/naeural_client/base/instance.py +0 -0
  20. {naeural_client-2.6.0 → naeural_client-2.6.1}/naeural_client/base/payload/__init__.py +0 -0
  21. {naeural_client-2.6.0 → naeural_client-2.6.1}/naeural_client/base/payload/payload.py +0 -0
  22. {naeural_client-2.6.0 → naeural_client-2.6.1}/naeural_client/base/pipeline.py +0 -0
  23. {naeural_client-2.6.0 → naeural_client-2.6.1}/naeural_client/base/plugin_template.py +0 -0
  24. {naeural_client-2.6.0 → naeural_client-2.6.1}/naeural_client/base/responses.py +0 -0
  25. {naeural_client-2.6.0 → naeural_client-2.6.1}/naeural_client/base/transaction.py +0 -0
  26. {naeural_client-2.6.0 → naeural_client-2.6.1}/naeural_client/base/webapp_pipeline.py +0 -0
  27. {naeural_client-2.6.0 → naeural_client-2.6.1}/naeural_client/base_decentra_object.py +0 -0
  28. {naeural_client-2.6.0 → naeural_client-2.6.1}/naeural_client/bc/__init__.py +0 -0
  29. {naeural_client-2.6.0 → naeural_client-2.6.1}/naeural_client/bc/base.py +0 -0
  30. {naeural_client-2.6.0 → naeural_client-2.6.1}/naeural_client/bc/chain.py +0 -0
  31. {naeural_client-2.6.0 → naeural_client-2.6.1}/naeural_client/bc/ec.py +0 -0
  32. {naeural_client-2.6.0 → naeural_client-2.6.1}/naeural_client/certs/__init__.py +0 -0
  33. {naeural_client-2.6.0 → naeural_client-2.6.1}/naeural_client/certs/r9092118.ala.eu-central-1.emqxsl.com.crt +0 -0
  34. {naeural_client-2.6.0 → naeural_client-2.6.1}/naeural_client/cli/README.md +0 -0
  35. {naeural_client-2.6.0 → naeural_client-2.6.1}/naeural_client/cli/cli.py +0 -0
  36. {naeural_client-2.6.0 → naeural_client-2.6.1}/naeural_client/cli/cli_commands.py +0 -0
  37. {naeural_client-2.6.0 → naeural_client-2.6.1}/naeural_client/cli/nodes.py +0 -0
  38. {naeural_client-2.6.0 → naeural_client-2.6.1}/naeural_client/code_cheker/__init__.py +0 -0
  39. {naeural_client-2.6.0 → naeural_client-2.6.1}/naeural_client/code_cheker/base.py +0 -0
  40. {naeural_client-2.6.0 → naeural_client-2.6.1}/naeural_client/code_cheker/checker.py +0 -0
  41. {naeural_client-2.6.0 → naeural_client-2.6.1}/naeural_client/comm/__init__.py +0 -0
  42. {naeural_client-2.6.0 → naeural_client-2.6.1}/naeural_client/comm/amqp_wrapper.py +0 -0
  43. {naeural_client-2.6.0 → naeural_client-2.6.1}/naeural_client/comm/mqtt_wrapper.py +0 -0
  44. {naeural_client-2.6.0 → naeural_client-2.6.1}/naeural_client/const/README.md +0 -0
  45. {naeural_client-2.6.0 → naeural_client-2.6.1}/naeural_client/const/__init__.py +0 -0
  46. {naeural_client-2.6.0 → naeural_client-2.6.1}/naeural_client/const/apps.py +0 -0
  47. {naeural_client-2.6.0 → naeural_client-2.6.1}/naeural_client/const/base.py +0 -0
  48. {naeural_client-2.6.0 → naeural_client-2.6.1}/naeural_client/const/comms.py +0 -0
  49. {naeural_client-2.6.0 → naeural_client-2.6.1}/naeural_client/const/environment.py +0 -0
  50. {naeural_client-2.6.0 → naeural_client-2.6.1}/naeural_client/const/formatter.py +0 -0
  51. {naeural_client-2.6.0 → naeural_client-2.6.1}/naeural_client/const/heartbeat.py +0 -0
  52. {naeural_client-2.6.0 → naeural_client-2.6.1}/naeural_client/const/misc.py +0 -0
  53. {naeural_client-2.6.0 → naeural_client-2.6.1}/naeural_client/const/payload.py +0 -0
  54. {naeural_client-2.6.0 → naeural_client-2.6.1}/naeural_client/default/__init__.py +0 -0
  55. {naeural_client-2.6.0 → naeural_client-2.6.1}/naeural_client/default/instance/__init__.py +0 -0
  56. {naeural_client-2.6.0 → naeural_client-2.6.1}/naeural_client/default/instance/chain_dist_custom_job_01_plugin.py +0 -0
  57. {naeural_client-2.6.0 → naeural_client-2.6.1}/naeural_client/default/instance/custom_webapi_01_plugin.py +0 -0
  58. {naeural_client-2.6.0 → naeural_client-2.6.1}/naeural_client/default/instance/net_mon_01_plugin.py +0 -0
  59. {naeural_client-2.6.0 → naeural_client-2.6.1}/naeural_client/default/instance/telegram_basic_bot_01_plugin.py +0 -0
  60. {naeural_client-2.6.0 → naeural_client-2.6.1}/naeural_client/default/instance/telegram_conversational_bot_01_plugin.py +0 -0
  61. {naeural_client-2.6.0 → naeural_client-2.6.1}/naeural_client/default/instance/view_scene_01_plugin.py +0 -0
  62. {naeural_client-2.6.0 → naeural_client-2.6.1}/naeural_client/default/session/mqtt_session.py +0 -0
  63. {naeural_client-2.6.0 → naeural_client-2.6.1}/naeural_client/io_formatter/__init__.py +0 -0
  64. {naeural_client-2.6.0 → naeural_client-2.6.1}/naeural_client/io_formatter/base/__init__.py +0 -0
  65. {naeural_client-2.6.0 → naeural_client-2.6.1}/naeural_client/io_formatter/base/base_formatter.py +0 -0
  66. {naeural_client-2.6.0 → naeural_client-2.6.1}/naeural_client/io_formatter/default/__init__.py +0 -0
  67. {naeural_client-2.6.0 → naeural_client-2.6.1}/naeural_client/io_formatter/default/a_dummy.py +0 -0
  68. {naeural_client-2.6.0 → naeural_client-2.6.1}/naeural_client/io_formatter/default/aixp1.py +0 -0
  69. {naeural_client-2.6.0 → naeural_client-2.6.1}/naeural_client/io_formatter/default/default.py +0 -0
  70. {naeural_client-2.6.0 → naeural_client-2.6.1}/naeural_client/io_formatter/io_formatter_manager.py +0 -0
  71. {naeural_client-2.6.0 → naeural_client-2.6.1}/naeural_client/logging/__init__.py +0 -0
  72. {naeural_client-2.6.0 → naeural_client-2.6.1}/naeural_client/logging/logger_mixins/__init__.py +0 -0
  73. {naeural_client-2.6.0 → naeural_client-2.6.1}/naeural_client/logging/logger_mixins/class_instance_mixin.py +0 -0
  74. {naeural_client-2.6.0 → naeural_client-2.6.1}/naeural_client/logging/logger_mixins/computer_vision_mixin.py +0 -0
  75. {naeural_client-2.6.0 → naeural_client-2.6.1}/naeural_client/logging/logger_mixins/datetime_mixin.py +0 -0
  76. {naeural_client-2.6.0 → naeural_client-2.6.1}/naeural_client/logging/logger_mixins/download_mixin.py +0 -0
  77. {naeural_client-2.6.0 → naeural_client-2.6.1}/naeural_client/logging/logger_mixins/general_serialization_mixin.py +0 -0
  78. {naeural_client-2.6.0 → naeural_client-2.6.1}/naeural_client/logging/logger_mixins/json_serialization_mixin.py +0 -0
  79. {naeural_client-2.6.0 → naeural_client-2.6.1}/naeural_client/logging/logger_mixins/pickle_serialization_mixin.py +0 -0
  80. {naeural_client-2.6.0 → naeural_client-2.6.1}/naeural_client/logging/logger_mixins/process_mixin.py +0 -0
  81. {naeural_client-2.6.0 → naeural_client-2.6.1}/naeural_client/logging/logger_mixins/resource_size_mixin.py +0 -0
  82. {naeural_client-2.6.0 → naeural_client-2.6.1}/naeural_client/logging/logger_mixins/timers_mixin.py +0 -0
  83. {naeural_client-2.6.0 → naeural_client-2.6.1}/naeural_client/logging/logger_mixins/upload_mixin.py +0 -0
  84. {naeural_client-2.6.0 → naeural_client-2.6.1}/naeural_client/logging/logger_mixins/utils_mixin.py +0 -0
  85. {naeural_client-2.6.0 → naeural_client-2.6.1}/naeural_client/logging/small_logger.py +0 -0
  86. {naeural_client-2.6.0 → naeural_client-2.6.1}/naeural_client/logging/tzlocal/__init__.py +0 -0
  87. {naeural_client-2.6.0 → naeural_client-2.6.1}/naeural_client/logging/tzlocal/unix.py +0 -0
  88. {naeural_client-2.6.0 → naeural_client-2.6.1}/naeural_client/logging/tzlocal/utils.py +0 -0
  89. {naeural_client-2.6.0 → naeural_client-2.6.1}/naeural_client/logging/tzlocal/win32.py +0 -0
  90. {naeural_client-2.6.0 → naeural_client-2.6.1}/naeural_client/logging/tzlocal/windows_tz.py +0 -0
  91. {naeural_client-2.6.0 → naeural_client-2.6.1}/naeural_client/plugins_manager_mixin.py +0 -0
  92. {naeural_client-2.6.0 → naeural_client-2.6.1}/naeural_client/utils/__init__.py +0 -0
  93. {naeural_client-2.6.0 → naeural_client-2.6.1}/naeural_client/utils/comm_utils.py +0 -0
  94. {naeural_client-2.6.0 → naeural_client-2.6.1}/naeural_client/utils/config.py +0 -0
  95. {naeural_client-2.6.0 → naeural_client-2.6.1}/naeural_client/utils/dotenv.py +0 -0
  96. {naeural_client-2.6.0 → naeural_client-2.6.1}/nepctl.MD +0 -0
  97. {naeural_client-2.6.0 → naeural_client-2.6.1}/requirements.txt +0 -0
  98. {naeural_client-2.6.0 → naeural_client-2.6.1}/tutorials/.example_env +0 -0
  99. {naeural_client-2.6.0 → naeural_client-2.6.1}/tutorials/8. custom_code_fastapi_assets/index.html +0 -0
  100. {naeural_client-2.6.0 → naeural_client-2.6.1}/tutorials/9. code_sandbox_from_scratch_assets/index.html +0 -0
  101. {naeural_client-2.6.0 → naeural_client-2.6.1}/tutorials/_example_pk_sdk.pem +0 -0
  102. {naeural_client-2.6.0 → naeural_client-2.6.1}/tutorials/ex01_part1_connect.py +0 -0
  103. {naeural_client-2.6.0 → naeural_client-2.6.1}/tutorials/ex01_part2_filter.py +0 -0
  104. {naeural_client-2.6.0 → naeural_client-2.6.1}/tutorials/ex01_part3_adv_filter.py +0 -0
  105. {naeural_client-2.6.0 → naeural_client-2.6.1}/tutorials/ex02_first_deploy.py +0 -0
  106. {naeural_client-2.6.0 → naeural_client-2.6.1}/tutorials/ex03_custom_code_on_one_remote__example_1.py +0 -0
  107. {naeural_client-2.6.0 → naeural_client-2.6.1}/tutorials/ex04_custom_code_on_one_remote__example_2.py +0 -0
  108. {naeural_client-2.6.0 → naeural_client-2.6.1}/tutorials/ex05_custom_code_on_one_remote__example_3.py +0 -0
  109. {naeural_client-2.6.0 → naeural_client-2.6.1}/tutorials/ex06_custom_code_on_multiple_remotes__example_1.py +0 -0
  110. {naeural_client-2.6.0 → naeural_client-2.6.1}/tutorials/ex07_custom_code_on_multiple_remotes__example_2.py +0 -0
  111. {naeural_client-2.6.0 → naeural_client-2.6.1}/tutorials/ex08_custom_webapi.py +0 -0
  112. {naeural_client-2.6.0 → naeural_client-2.6.1}/tutorials/ex09_code_sandbox_from_scratch.py +0 -0
  113. {naeural_client-2.6.0 → naeural_client-2.6.1}/tutorials/ex10_telegram_echo_bot.py +0 -0
  114. {naeural_client-2.6.0 → naeural_client-2.6.1}/tutorials/ex11_telegram_blackjack_bot.py +0 -0
  115. {naeural_client-2.6.0 → naeural_client-2.6.1}/tutorials/ex12_telegram_smart_bot.py +0 -0
  116. {naeural_client-2.6.0 → naeural_client-2.6.1}/tutorials/ex13_launch_repo_based_webapp.py +0 -0
  117. {naeural_client-2.6.0 → naeural_client-2.6.1}/tutorials/video_presentation/1. hello_world.ipynb +0 -0
  118. {naeural_client-2.6.0 → naeural_client-2.6.1}/winrun.bat +0 -0
  119. {naeural_client-2.6.0 → naeural_client-2.6.1}/xperimental/.example_env +0 -0
  120. {naeural_client-2.6.0 → naeural_client-2.6.1}/xperimental/_archive/test.py +0 -0
  121. {naeural_client-2.6.0 → naeural_client-2.6.1}/xperimental/_tutorials/3. simple_real_time_custom_code.py +0 -0
  122. {naeural_client-2.6.0 → naeural_client-2.6.1}/xperimental/_tutorials/4. real_time_custom_code_2.py +0 -0
  123. {naeural_client-2.6.0 → naeural_client-2.6.1}/xperimental/_tutorials/8. chatbot.py +0 -0
  124. {naeural_client-2.6.0 → naeural_client-2.6.1}/xperimental/auth/t1.py +0 -0
  125. {naeural_client-2.6.0 → naeural_client-2.6.1}/xperimental/check_local_keys/check1.py +0 -0
  126. {naeural_client-2.6.0 → naeural_client-2.6.1}/xperimental/decentralized/chain_dist_example.py +0 -0
  127. {naeural_client-2.6.0 → naeural_client-2.6.1}/xperimental/decentralized/chain_dist_example_initiator.py +0 -0
  128. {naeural_client-2.6.0 → naeural_client-2.6.1}/xperimental/decentralized/chain_dist_example_worker.py +0 -0
  129. {naeural_client-2.6.0 → naeural_client-2.6.1}/xperimental/enc_dec/enc_dec_test.py +0 -0
  130. {naeural_client-2.6.0 → naeural_client-2.6.1}/xperimental/eth/eth_sign.py +0 -0
  131. {naeural_client-2.6.0 → naeural_client-2.6.1}/xperimental/eth/info.md +0 -0
  132. {naeural_client-2.6.0 → naeural_client-2.6.1}/xperimental/eth/sign.py +0 -0
  133. {naeural_client-2.6.0 → naeural_client-2.6.1}/xperimental/multi-enc-dec/multi_test1.py +0 -0
  134. {naeural_client-2.6.0 → naeural_client-2.6.1}/xperimental/multi-enc-dec/multi_test2.py +0 -0
  135. {naeural_client-2.6.0 → naeural_client-2.6.1}/xperimental/sign/test_sign1.py +0 -0
  136. {naeural_client-2.6.0 → naeural_client-2.6.1}/xperimental/utils/get_documentation.py +0 -0
  137. {naeural_client-2.6.0 → naeural_client-2.6.1}/xperimental/various/README.md +0 -0
  138. {naeural_client-2.6.0 → naeural_client-2.6.1}/xperimental/various/attach_example.py +0 -0
  139. {naeural_client-2.6.0 → naeural_client-2.6.1}/xperimental/various/ex1.py +0 -0
  140. {naeural_client-2.6.0 → naeural_client-2.6.1}/xperimental/various/hello.py +0 -0
  141. {naeural_client-2.6.0 → naeural_client-2.6.1}/xperimental/various/remote_exec.py +0 -0
  142. {naeural_client-2.6.0 → naeural_client-2.6.1}/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.0
3
+ Version: 2.6.1
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.0"
1
+ __VER__ = "2.6.1"
2
2
 
3
3
  if __name__ == "__main__":
4
4
  with open("pyproject.toml", "rt") as fd:
@@ -335,7 +335,7 @@ class BaseLogger(object):
335
335
  return False
336
336
 
337
337
  @staticmethod
338
- def replace_secrets(dct_config, pattern='$EE_'):
338
+ def replace_secrets(dct_config, pattern='$EE_', allow_missing=False):
339
339
  matches = []
340
340
  missing = []
341
341
  stack = [dct_config]
@@ -349,6 +349,8 @@ class BaseLogger(object):
349
349
  env_var_name = value[1:]
350
350
  if env_var_name not in os.environ:
351
351
  missing.append(env_var_name)
352
+ if allow_missing:
353
+ current[key] = None
352
354
  else:
353
355
  current[key] = os.environ[env_var_name]
354
356
  elif isinstance(value, (dict, list)):
@@ -358,9 +360,13 @@ class BaseLogger(object):
358
360
  if isinstance(item, (dict, list)):
359
361
  stack.append(item)
360
362
  if len(missing) > 0:
361
- raise ValueError('Required environment configuration for keys {} was not found in current envirnoment. Please setup your docker or bare-metal config to provide this missing key(s)'.format(
363
+ msg = 'Required environment configuration for keys {} was not found in current envirnoment. Please setup your docker or bare-metal config to provide this missing key(s)'.format(
362
364
  ",".join(['"' + x + '"' for x in missing])
363
- ))
365
+ )
366
+ if allow_missing:
367
+ BaseLogger.print_color(msg, color='r')
368
+ else:
369
+ raise ValueError(msg)
364
370
  return matches
365
371
 
366
372
 
@@ -1087,7 +1093,7 @@ class BaseLogger(object):
1087
1093
  **self.__init_config_data,
1088
1094
  }
1089
1095
 
1090
- matches = self.replace_secrets(self.config_data)
1096
+ matches = self.replace_secrets(self.config_data, allow_missing=True)
1091
1097
  if not self.silent:
1092
1098
  if len(matches) > 0:
1093
1099
  print(" Config modified with following env vars: {}".format(matches))
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "naeural_client"
7
- version = "2.6.0"
7
+ version = "2.6.1"
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