naeural-client 2.6.10__tar.gz → 2.6.11__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.
Files changed (142) hide show
  1. {naeural_client-2.6.10 → naeural_client-2.6.11}/PKG-INFO +25 -41
  2. {naeural_client-2.6.10 → naeural_client-2.6.11}/README.md +24 -40
  3. {naeural_client-2.6.10 → naeural_client-2.6.11}/naeural_client/_ver.py +1 -1
  4. {naeural_client-2.6.10 → naeural_client-2.6.11}/naeural_client/const/base.py +3 -0
  5. {naeural_client-2.6.10 → naeural_client-2.6.11}/pyproject.toml +1 -1
  6. {naeural_client-2.6.10 → naeural_client-2.6.11}/xperimental/auth/t1.py +9 -8
  7. {naeural_client-2.6.10 → naeural_client-2.6.11}/.devcontainer/Dockerfile +0 -0
  8. {naeural_client-2.6.10 → naeural_client-2.6.11}/.devcontainer/devcontainer.json +0 -0
  9. {naeural_client-2.6.10 → naeural_client-2.6.11}/.gitattributes +0 -0
  10. {naeural_client-2.6.10 → naeural_client-2.6.11}/.github/workflows/python-publish.yml +0 -0
  11. {naeural_client-2.6.10 → naeural_client-2.6.11}/.gitignore +0 -0
  12. {naeural_client-2.6.10 → naeural_client-2.6.11}/.vscode/launch.json +0 -0
  13. {naeural_client-2.6.10 → naeural_client-2.6.11}/LICENSE +0 -0
  14. {naeural_client-2.6.10 → naeural_client-2.6.11}/TODOs.md +0 -0
  15. {naeural_client-2.6.10 → naeural_client-2.6.11}/__init__.py +0 -0
  16. {naeural_client-2.6.10 → naeural_client-2.6.11}/naeural_client/__init__.py +0 -0
  17. {naeural_client-2.6.10 → naeural_client-2.6.11}/naeural_client/base/__init__.py +0 -0
  18. {naeural_client-2.6.10 → naeural_client-2.6.11}/naeural_client/base/distributed_custom_code_presets.py +0 -0
  19. {naeural_client-2.6.10 → naeural_client-2.6.11}/naeural_client/base/generic_session.py +0 -0
  20. {naeural_client-2.6.10 → naeural_client-2.6.11}/naeural_client/base/instance.py +0 -0
  21. {naeural_client-2.6.10 → naeural_client-2.6.11}/naeural_client/base/payload/__init__.py +0 -0
  22. {naeural_client-2.6.10 → naeural_client-2.6.11}/naeural_client/base/payload/payload.py +0 -0
  23. {naeural_client-2.6.10 → naeural_client-2.6.11}/naeural_client/base/pipeline.py +0 -0
  24. {naeural_client-2.6.10 → naeural_client-2.6.11}/naeural_client/base/plugin_template.py +0 -0
  25. {naeural_client-2.6.10 → naeural_client-2.6.11}/naeural_client/base/responses.py +0 -0
  26. {naeural_client-2.6.10 → naeural_client-2.6.11}/naeural_client/base/transaction.py +0 -0
  27. {naeural_client-2.6.10 → naeural_client-2.6.11}/naeural_client/base/webapp_pipeline.py +0 -0
  28. {naeural_client-2.6.10 → naeural_client-2.6.11}/naeural_client/base_decentra_object.py +0 -0
  29. {naeural_client-2.6.10 → naeural_client-2.6.11}/naeural_client/bc/__init__.py +0 -0
  30. {naeural_client-2.6.10 → naeural_client-2.6.11}/naeural_client/bc/base.py +0 -0
  31. {naeural_client-2.6.10 → naeural_client-2.6.11}/naeural_client/bc/chain.py +0 -0
  32. {naeural_client-2.6.10 → naeural_client-2.6.11}/naeural_client/bc/ec.py +0 -0
  33. {naeural_client-2.6.10 → naeural_client-2.6.11}/naeural_client/certs/__init__.py +0 -0
  34. {naeural_client-2.6.10 → naeural_client-2.6.11}/naeural_client/certs/r9092118.ala.eu-central-1.emqxsl.com.crt +0 -0
  35. {naeural_client-2.6.10 → naeural_client-2.6.11}/naeural_client/cli/README.md +0 -0
  36. {naeural_client-2.6.10 → naeural_client-2.6.11}/naeural_client/cli/cli.py +0 -0
  37. {naeural_client-2.6.10 → naeural_client-2.6.11}/naeural_client/cli/cli_commands.py +0 -0
  38. {naeural_client-2.6.10 → naeural_client-2.6.11}/naeural_client/cli/nodes.py +0 -0
  39. {naeural_client-2.6.10 → naeural_client-2.6.11}/naeural_client/code_cheker/__init__.py +0 -0
  40. {naeural_client-2.6.10 → naeural_client-2.6.11}/naeural_client/code_cheker/base.py +0 -0
  41. {naeural_client-2.6.10 → naeural_client-2.6.11}/naeural_client/code_cheker/checker.py +0 -0
  42. {naeural_client-2.6.10 → naeural_client-2.6.11}/naeural_client/comm/__init__.py +0 -0
  43. {naeural_client-2.6.10 → naeural_client-2.6.11}/naeural_client/comm/amqp_wrapper.py +0 -0
  44. {naeural_client-2.6.10 → naeural_client-2.6.11}/naeural_client/comm/mqtt_wrapper.py +0 -0
  45. {naeural_client-2.6.10 → naeural_client-2.6.11}/naeural_client/const/README.md +0 -0
  46. {naeural_client-2.6.10 → naeural_client-2.6.11}/naeural_client/const/__init__.py +0 -0
  47. {naeural_client-2.6.10 → naeural_client-2.6.11}/naeural_client/const/apps.py +0 -0
  48. {naeural_client-2.6.10 → naeural_client-2.6.11}/naeural_client/const/comms.py +0 -0
  49. {naeural_client-2.6.10 → naeural_client-2.6.11}/naeural_client/const/environment.py +0 -0
  50. {naeural_client-2.6.10 → naeural_client-2.6.11}/naeural_client/const/formatter.py +0 -0
  51. {naeural_client-2.6.10 → naeural_client-2.6.11}/naeural_client/const/heartbeat.py +0 -0
  52. {naeural_client-2.6.10 → naeural_client-2.6.11}/naeural_client/const/misc.py +0 -0
  53. {naeural_client-2.6.10 → naeural_client-2.6.11}/naeural_client/const/payload.py +0 -0
  54. {naeural_client-2.6.10 → naeural_client-2.6.11}/naeural_client/default/__init__.py +0 -0
  55. {naeural_client-2.6.10 → naeural_client-2.6.11}/naeural_client/default/instance/__init__.py +0 -0
  56. {naeural_client-2.6.10 → naeural_client-2.6.11}/naeural_client/default/instance/chain_dist_custom_job_01_plugin.py +0 -0
  57. {naeural_client-2.6.10 → naeural_client-2.6.11}/naeural_client/default/instance/custom_webapi_01_plugin.py +0 -0
  58. {naeural_client-2.6.10 → naeural_client-2.6.11}/naeural_client/default/instance/net_mon_01_plugin.py +0 -0
  59. {naeural_client-2.6.10 → naeural_client-2.6.11}/naeural_client/default/instance/telegram_basic_bot_01_plugin.py +0 -0
  60. {naeural_client-2.6.10 → naeural_client-2.6.11}/naeural_client/default/instance/telegram_conversational_bot_01_plugin.py +0 -0
  61. {naeural_client-2.6.10 → naeural_client-2.6.11}/naeural_client/default/instance/view_scene_01_plugin.py +0 -0
  62. {naeural_client-2.6.10 → naeural_client-2.6.11}/naeural_client/default/session/mqtt_session.py +0 -0
  63. {naeural_client-2.6.10 → naeural_client-2.6.11}/naeural_client/io_formatter/__init__.py +0 -0
  64. {naeural_client-2.6.10 → naeural_client-2.6.11}/naeural_client/io_formatter/base/__init__.py +0 -0
  65. {naeural_client-2.6.10 → naeural_client-2.6.11}/naeural_client/io_formatter/base/base_formatter.py +0 -0
  66. {naeural_client-2.6.10 → naeural_client-2.6.11}/naeural_client/io_formatter/default/__init__.py +0 -0
  67. {naeural_client-2.6.10 → naeural_client-2.6.11}/naeural_client/io_formatter/default/a_dummy.py +0 -0
  68. {naeural_client-2.6.10 → naeural_client-2.6.11}/naeural_client/io_formatter/default/aixp1.py +0 -0
  69. {naeural_client-2.6.10 → naeural_client-2.6.11}/naeural_client/io_formatter/default/default.py +0 -0
  70. {naeural_client-2.6.10 → naeural_client-2.6.11}/naeural_client/io_formatter/io_formatter_manager.py +0 -0
  71. {naeural_client-2.6.10 → naeural_client-2.6.11}/naeural_client/logging/__init__.py +0 -0
  72. {naeural_client-2.6.10 → naeural_client-2.6.11}/naeural_client/logging/base_logger.py +0 -0
  73. {naeural_client-2.6.10 → naeural_client-2.6.11}/naeural_client/logging/logger_mixins/__init__.py +0 -0
  74. {naeural_client-2.6.10 → naeural_client-2.6.11}/naeural_client/logging/logger_mixins/class_instance_mixin.py +0 -0
  75. {naeural_client-2.6.10 → naeural_client-2.6.11}/naeural_client/logging/logger_mixins/computer_vision_mixin.py +0 -0
  76. {naeural_client-2.6.10 → naeural_client-2.6.11}/naeural_client/logging/logger_mixins/datetime_mixin.py +0 -0
  77. {naeural_client-2.6.10 → naeural_client-2.6.11}/naeural_client/logging/logger_mixins/download_mixin.py +0 -0
  78. {naeural_client-2.6.10 → naeural_client-2.6.11}/naeural_client/logging/logger_mixins/general_serialization_mixin.py +0 -0
  79. {naeural_client-2.6.10 → naeural_client-2.6.11}/naeural_client/logging/logger_mixins/json_serialization_mixin.py +0 -0
  80. {naeural_client-2.6.10 → naeural_client-2.6.11}/naeural_client/logging/logger_mixins/pickle_serialization_mixin.py +0 -0
  81. {naeural_client-2.6.10 → naeural_client-2.6.11}/naeural_client/logging/logger_mixins/process_mixin.py +0 -0
  82. {naeural_client-2.6.10 → naeural_client-2.6.11}/naeural_client/logging/logger_mixins/resource_size_mixin.py +0 -0
  83. {naeural_client-2.6.10 → naeural_client-2.6.11}/naeural_client/logging/logger_mixins/timers_mixin.py +0 -0
  84. {naeural_client-2.6.10 → naeural_client-2.6.11}/naeural_client/logging/logger_mixins/upload_mixin.py +0 -0
  85. {naeural_client-2.6.10 → naeural_client-2.6.11}/naeural_client/logging/logger_mixins/utils_mixin.py +0 -0
  86. {naeural_client-2.6.10 → naeural_client-2.6.11}/naeural_client/logging/small_logger.py +0 -0
  87. {naeural_client-2.6.10 → naeural_client-2.6.11}/naeural_client/logging/tzlocal/__init__.py +0 -0
  88. {naeural_client-2.6.10 → naeural_client-2.6.11}/naeural_client/logging/tzlocal/unix.py +0 -0
  89. {naeural_client-2.6.10 → naeural_client-2.6.11}/naeural_client/logging/tzlocal/utils.py +0 -0
  90. {naeural_client-2.6.10 → naeural_client-2.6.11}/naeural_client/logging/tzlocal/win32.py +0 -0
  91. {naeural_client-2.6.10 → naeural_client-2.6.11}/naeural_client/logging/tzlocal/windows_tz.py +0 -0
  92. {naeural_client-2.6.10 → naeural_client-2.6.11}/naeural_client/plugins_manager_mixin.py +0 -0
  93. {naeural_client-2.6.10 → naeural_client-2.6.11}/naeural_client/utils/__init__.py +0 -0
  94. {naeural_client-2.6.10 → naeural_client-2.6.11}/naeural_client/utils/comm_utils.py +0 -0
  95. {naeural_client-2.6.10 → naeural_client-2.6.11}/naeural_client/utils/config.py +0 -0
  96. {naeural_client-2.6.10 → naeural_client-2.6.11}/naeural_client/utils/dotenv.py +0 -0
  97. {naeural_client-2.6.10 → naeural_client-2.6.11}/nepctl.MD +0 -0
  98. {naeural_client-2.6.10 → naeural_client-2.6.11}/requirements.txt +0 -0
  99. {naeural_client-2.6.10 → naeural_client-2.6.11}/tutorials/.example_env +0 -0
  100. {naeural_client-2.6.10 → naeural_client-2.6.11}/tutorials/8. custom_code_fastapi_assets/index.html +0 -0
  101. {naeural_client-2.6.10 → naeural_client-2.6.11}/tutorials/9. code_sandbox_from_scratch_assets/index.html +0 -0
  102. {naeural_client-2.6.10 → naeural_client-2.6.11}/tutorials/_example_pk_sdk.pem +0 -0
  103. {naeural_client-2.6.10 → naeural_client-2.6.11}/tutorials/ex01_part1_connect.py +0 -0
  104. {naeural_client-2.6.10 → naeural_client-2.6.11}/tutorials/ex01_part2_filter.py +0 -0
  105. {naeural_client-2.6.10 → naeural_client-2.6.11}/tutorials/ex01_part3_adv_filter.py +0 -0
  106. {naeural_client-2.6.10 → naeural_client-2.6.11}/tutorials/ex02_first_deploy.py +0 -0
  107. {naeural_client-2.6.10 → naeural_client-2.6.11}/tutorials/ex03_custom_code_on_one_remote__example_1.py +0 -0
  108. {naeural_client-2.6.10 → naeural_client-2.6.11}/tutorials/ex04_custom_code_on_one_remote__example_2.py +0 -0
  109. {naeural_client-2.6.10 → naeural_client-2.6.11}/tutorials/ex05_custom_code_on_one_remote__example_3.py +0 -0
  110. {naeural_client-2.6.10 → naeural_client-2.6.11}/tutorials/ex06_custom_code_on_multiple_remotes__example_1.py +0 -0
  111. {naeural_client-2.6.10 → naeural_client-2.6.11}/tutorials/ex07_custom_code_on_multiple_remotes__example_2.py +0 -0
  112. {naeural_client-2.6.10 → naeural_client-2.6.11}/tutorials/ex08_custom_webapi.py +0 -0
  113. {naeural_client-2.6.10 → naeural_client-2.6.11}/tutorials/ex09_code_sandbox_from_scratch.py +0 -0
  114. {naeural_client-2.6.10 → naeural_client-2.6.11}/tutorials/ex10_telegram_echo_bot.py +0 -0
  115. {naeural_client-2.6.10 → naeural_client-2.6.11}/tutorials/ex11_telegram_blackjack_bot.py +0 -0
  116. {naeural_client-2.6.10 → naeural_client-2.6.11}/tutorials/ex12_telegram_smart_bot.py +0 -0
  117. {naeural_client-2.6.10 → naeural_client-2.6.11}/tutorials/ex13_launch_repo_based_webapp.py +0 -0
  118. {naeural_client-2.6.10 → naeural_client-2.6.11}/tutorials/video_presentation/1. hello_world.ipynb +0 -0
  119. {naeural_client-2.6.10 → naeural_client-2.6.11}/winrun.bat +0 -0
  120. {naeural_client-2.6.10 → naeural_client-2.6.11}/xperimental/.example_env +0 -0
  121. {naeural_client-2.6.10 → naeural_client-2.6.11}/xperimental/_archive/test.py +0 -0
  122. {naeural_client-2.6.10 → naeural_client-2.6.11}/xperimental/_tutorials/3. simple_real_time_custom_code.py +0 -0
  123. {naeural_client-2.6.10 → naeural_client-2.6.11}/xperimental/_tutorials/4. real_time_custom_code_2.py +0 -0
  124. {naeural_client-2.6.10 → naeural_client-2.6.11}/xperimental/_tutorials/8. chatbot.py +0 -0
  125. {naeural_client-2.6.10 → naeural_client-2.6.11}/xperimental/check_local_keys/check1.py +0 -0
  126. {naeural_client-2.6.10 → naeural_client-2.6.11}/xperimental/decentralized/chain_dist_example.py +0 -0
  127. {naeural_client-2.6.10 → naeural_client-2.6.11}/xperimental/decentralized/chain_dist_example_initiator.py +0 -0
  128. {naeural_client-2.6.10 → naeural_client-2.6.11}/xperimental/decentralized/chain_dist_example_worker.py +0 -0
  129. {naeural_client-2.6.10 → naeural_client-2.6.11}/xperimental/enc_dec/enc_dec_test.py +0 -0
  130. {naeural_client-2.6.10 → naeural_client-2.6.11}/xperimental/eth/eth_sign.py +0 -0
  131. {naeural_client-2.6.10 → naeural_client-2.6.11}/xperimental/eth/info.md +0 -0
  132. {naeural_client-2.6.10 → naeural_client-2.6.11}/xperimental/eth/sign.py +0 -0
  133. {naeural_client-2.6.10 → naeural_client-2.6.11}/xperimental/multi-enc-dec/multi_test1.py +0 -0
  134. {naeural_client-2.6.10 → naeural_client-2.6.11}/xperimental/multi-enc-dec/multi_test2.py +0 -0
  135. {naeural_client-2.6.10 → naeural_client-2.6.11}/xperimental/sign/test_sign1.py +0 -0
  136. {naeural_client-2.6.10 → naeural_client-2.6.11}/xperimental/utils/get_documentation.py +0 -0
  137. {naeural_client-2.6.10 → naeural_client-2.6.11}/xperimental/various/README.md +0 -0
  138. {naeural_client-2.6.10 → naeural_client-2.6.11}/xperimental/various/attach_example.py +0 -0
  139. {naeural_client-2.6.10 → naeural_client-2.6.11}/xperimental/various/ex1.py +0 -0
  140. {naeural_client-2.6.10 → naeural_client-2.6.11}/xperimental/various/hello.py +0 -0
  141. {naeural_client-2.6.10 → naeural_client-2.6.11}/xperimental/various/remote_exec.py +0 -0
  142. {naeural_client-2.6.10 → naeural_client-2.6.11}/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.10
3
+ Version: 2.6.11
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
@@ -21,18 +21,18 @@ Requires-Dist: python-dateutil
21
21
  Requires-Dist: web3
22
22
  Description-Content-Type: text/markdown
23
23
 
24
- # naeural_client SDK
24
+ # Ratio1 SDK (naeural_client SDK)
25
25
 
26
- This is the Python SDK package that allows interactions, development and deployment of jobs in Naeural Edge Protocol network. The SDK enables low-code development and deployment of end-to-end AI (and not only) cooperative application pipelines within the Naeural Edge Protocol Execution Engine processing nodes ecosystem. For further information please see [Naeural Edge Protocol AI OS - Decentralized ubiquitous computing MLOps execution engine](https://arxiv.org/pdf/2306.08708).
26
+ This is the Python SDK package that allows interactions, development and deployment of jobs in Ratio1 ecosystem formely known as Naeural Edge Protocol network. The SDK enables low-code development and deployment of end-to-end AI (and not only) cooperative application pipelines within the Ratio1 Edge Nodes ecosystem.
27
27
 
28
28
  ## Dependencies
29
29
 
30
- This packet depends on the following packets: `pika`, `paho-mqtt`, `numpy`, `pyopenssl>=23.0.0`, `cryptography>=39.0.0`, `python-dateutil`, `pyaml`.
30
+ This packet depends and will automatically install the following packets: `pika`, `paho-mqtt`, `numpy`, `pyopenssl>=23.0.0`, `cryptography>=39.0.0`, `python-dateutil`, `pyaml`.
31
31
 
32
32
  ## Installation
33
33
 
34
34
  ```shell
35
- python -m pip install naeural_client
35
+ pip install naeural_client --upgrade
36
36
  ```
37
37
 
38
38
  ### Development installation
@@ -51,49 +51,33 @@ Code examples are located in the `tutorials` folder in the project's repository.
51
51
 
52
52
  ## Quick start guides
53
53
 
54
- Here you will find a selection of guides and documentation snippets to get
55
- you started with the `naeural_client` SDK. These are only the most important aspects,
56
- selected from the documentation and from the code examples. For more
57
- in-depth information, please consult the examples from the repository
58
- and the documentation.
54
+ Starting with version 2.6+ the SDK will automatically perform self-configuration using the dAuth - the Ratio1 decentralized self-authentication system.
59
55
 
60
- ### Naming conventions & FAQs
56
+ In order to start a local edge node you just need to run:
61
57
 
62
- The following are the same:
63
-
64
- - `Signature == Plugin's name`
65
- - `Plugin ~ Instance` (Only in the context of talking about a running plugin (instance); people tend to omit the word `instance`)
66
- - `Node == Worker` (Unless it is in the context of a distributed job, the 2 words refer to the same thing)
67
-
68
- ## Hello world tutorial
69
-
70
- Below is a simple "Hello world!" style application that aims to show how simple and straightforward it is to distribute existing Python code to multiple edge node workers.
71
-
72
- To execute this code, you can check [tutorials/video_presentation/1. hello_world.ipynb](./tutorials/video_presentation/1.%20hello_world.ipynb)
73
-
74
- ### 1. Create `.env` file
75
-
76
- Copy the `tutorials/.example_env` file to your project directory and rename it to `.env`.
77
-
78
- Fill in the empty variables with appropriate values.
79
-
80
- ### 2. Create new / Use test private key
81
-
82
- **Disclaimer: You should never publish sensitive information such as private keys.**
83
-
84
- To experiment on our test net, you can use the provided private key to communicate with the 3 nodes in the test network.
58
+ ```bash
59
+ docker run -d --name=local_node naeural/edge_node:develop
60
+ ```
61
+ after a few seconds the node will be online and you can get the node's address by running:
85
62
 
86
- #### Create new private key
63
+ ```bash
64
+ docker exec local_node get_node_info
65
+ ```
87
66
 
88
- When first connecting to our network, the sdk will search in the current working directory for an existing private key. If not found, the SDK will create one at `$(cwd)/_local_cache/_data/_pk_sdk.pem`.
67
+ The output will be similar to:
89
68
 
90
- #### Using an existing private key
69
+ ```json
70
+ {
71
+ "address": "0xai_AtMvIwaEPi5M8cnkdbaZ3tbUhCzKbGKEYuZ1xFtCjT_6",
72
+ "alias": "6dd74472642e",
73
+ "eth_address": "0x98FE7c0d8CeC2E97B932D2bDC1bb73B395C9Dfd7"
74
+ }
75
+ ```
91
76
 
92
- To use an existing private key, create in the working directory the directory tree `_local_cache/_data/` and add the `_pk_sdk.pem` file there.
93
77
 
94
- To use our provided key. copy it from `tutorials/_example_pk_sdk.pem` to `local_cache/_data/` and change its name to `_pk_sdk.pem`.
78
+ ## Some Examples
95
79
 
96
- ### 3. Local Execution
80
+ ### Local Execution
97
81
 
98
82
  We want to find all $168$ prime numbers in the interval $1$ - $1000$. For this we can run the following code on our local machine.
99
83
 
@@ -159,7 +143,7 @@ Because we want to find $168$ unique numbers, we append to the list of found pri
159
143
 
160
144
  At the end, we want to show a list of all the numbers found.
161
145
 
162
- ### 4. Remote Execution
146
+ ### Remote Execution
163
147
 
164
148
  For this example we would like to use multiple edge nodes to find the prime numbers faster.
165
149
 
@@ -1,15 +1,15 @@
1
- # naeural_client SDK
1
+ # Ratio1 SDK (naeural_client SDK)
2
2
 
3
- This is the Python SDK package that allows interactions, development and deployment of jobs in Naeural Edge Protocol network. The SDK enables low-code development and deployment of end-to-end AI (and not only) cooperative application pipelines within the Naeural Edge Protocol Execution Engine processing nodes ecosystem. For further information please see [Naeural Edge Protocol AI OS - Decentralized ubiquitous computing MLOps execution engine](https://arxiv.org/pdf/2306.08708).
3
+ This is the Python SDK package that allows interactions, development and deployment of jobs in Ratio1 ecosystem formely known as Naeural Edge Protocol network. The SDK enables low-code development and deployment of end-to-end AI (and not only) cooperative application pipelines within the Ratio1 Edge Nodes ecosystem.
4
4
 
5
5
  ## Dependencies
6
6
 
7
- This packet depends on the following packets: `pika`, `paho-mqtt`, `numpy`, `pyopenssl>=23.0.0`, `cryptography>=39.0.0`, `python-dateutil`, `pyaml`.
7
+ This packet depends and will automatically install the following packets: `pika`, `paho-mqtt`, `numpy`, `pyopenssl>=23.0.0`, `cryptography>=39.0.0`, `python-dateutil`, `pyaml`.
8
8
 
9
9
  ## Installation
10
10
 
11
11
  ```shell
12
- python -m pip install naeural_client
12
+ pip install naeural_client --upgrade
13
13
  ```
14
14
 
15
15
  ### Development installation
@@ -28,49 +28,33 @@ Code examples are located in the `tutorials` folder in the project's repository.
28
28
 
29
29
  ## Quick start guides
30
30
 
31
- Here you will find a selection of guides and documentation snippets to get
32
- you started with the `naeural_client` SDK. These are only the most important aspects,
33
- selected from the documentation and from the code examples. For more
34
- in-depth information, please consult the examples from the repository
35
- and the documentation.
31
+ Starting with version 2.6+ the SDK will automatically perform self-configuration using the dAuth - the Ratio1 decentralized self-authentication system.
36
32
 
37
- ### Naming conventions & FAQs
33
+ In order to start a local edge node you just need to run:
38
34
 
39
- The following are the same:
40
-
41
- - `Signature == Plugin's name`
42
- - `Plugin ~ Instance` (Only in the context of talking about a running plugin (instance); people tend to omit the word `instance`)
43
- - `Node == Worker` (Unless it is in the context of a distributed job, the 2 words refer to the same thing)
44
-
45
- ## Hello world tutorial
46
-
47
- Below is a simple "Hello world!" style application that aims to show how simple and straightforward it is to distribute existing Python code to multiple edge node workers.
48
-
49
- To execute this code, you can check [tutorials/video_presentation/1. hello_world.ipynb](./tutorials/video_presentation/1.%20hello_world.ipynb)
50
-
51
- ### 1. Create `.env` file
52
-
53
- Copy the `tutorials/.example_env` file to your project directory and rename it to `.env`.
54
-
55
- Fill in the empty variables with appropriate values.
56
-
57
- ### 2. Create new / Use test private key
58
-
59
- **Disclaimer: You should never publish sensitive information such as private keys.**
60
-
61
- To experiment on our test net, you can use the provided private key to communicate with the 3 nodes in the test network.
35
+ ```bash
36
+ docker run -d --name=local_node naeural/edge_node:develop
37
+ ```
38
+ after a few seconds the node will be online and you can get the node's address by running:
62
39
 
63
- #### Create new private key
40
+ ```bash
41
+ docker exec local_node get_node_info
42
+ ```
64
43
 
65
- When first connecting to our network, the sdk will search in the current working directory for an existing private key. If not found, the SDK will create one at `$(cwd)/_local_cache/_data/_pk_sdk.pem`.
44
+ The output will be similar to:
66
45
 
67
- #### Using an existing private key
46
+ ```json
47
+ {
48
+ "address": "0xai_AtMvIwaEPi5M8cnkdbaZ3tbUhCzKbGKEYuZ1xFtCjT_6",
49
+ "alias": "6dd74472642e",
50
+ "eth_address": "0x98FE7c0d8CeC2E97B932D2bDC1bb73B395C9Dfd7"
51
+ }
52
+ ```
68
53
 
69
- To use an existing private key, create in the working directory the directory tree `_local_cache/_data/` and add the `_pk_sdk.pem` file there.
70
54
 
71
- To use our provided key. copy it from `tutorials/_example_pk_sdk.pem` to `local_cache/_data/` and change its name to `_pk_sdk.pem`.
55
+ ## Some Examples
72
56
 
73
- ### 3. Local Execution
57
+ ### Local Execution
74
58
 
75
59
  We want to find all $168$ prime numbers in the interval $1$ - $1000$. For this we can run the following code on our local machine.
76
60
 
@@ -136,7 +120,7 @@ Because we want to find $168$ unique numbers, we append to the list of found pri
136
120
 
137
121
  At the end, we want to show a list of all the numbers found.
138
122
 
139
- ### 4. Remote Execution
123
+ ### Remote Execution
140
124
 
141
125
  For this example we would like to use multiple edge nodes to find the prime numbers faster.
142
126
 
@@ -1,4 +1,4 @@
1
- __VER__ = "2.6.10"
1
+ __VER__ = "2.6.11"
2
2
 
3
3
  if __name__ == "__main__":
4
4
  with open("pyproject.toml", "rt") as fd:
@@ -22,6 +22,9 @@ class LocalInfo:
22
22
  K_ADDRESS = 'address'
23
23
  K_ALIAS = 'alias'
24
24
  K_ETH_ADDRESS = 'eth_address'
25
+ K_VER_LONG = 'version_long'
26
+ K_VER_SHORT = 'version_short'
27
+ K_INFO = 'info'
25
28
 
26
29
 
27
30
  class BCct:
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "naeural_client"
7
- version = "2.6.10"
7
+ version = "2.6.11"
8
8
  authors = [
9
9
  { name="Andrei Ionut Damian", email="andrei.damian@me.com" },
10
10
  { name="Cristan Bleotiu", email="cristibleotiu@gmail.com" },
@@ -16,11 +16,12 @@ if __name__ == '__main__' :
16
16
  }
17
17
  )
18
18
 
19
- d = eng1.dauth_autocomplete(
20
- add_env=False,
21
- debug=True,
22
- max_tries=1,
23
- sender_alias='test1',
24
- )
25
-
26
- l.P(f"Result: {json.dumps(d, indent=2)}", color='b')
19
+ for _ in range(4):
20
+ d = eng1.dauth_autocomplete(
21
+ add_env=False,
22
+ debug=True,
23
+ max_tries=1,
24
+ sender_alias='test1',
25
+ )
26
+
27
+ l.P(f"Result: {json.dumps(d, indent=2)}", color='b')
File without changes