naeural-client 2.6.10__py3-none-any.whl → 2.6.11__py3-none-any.whl

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.
naeural_client/_ver.py CHANGED
@@ -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:
@@ -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,5 +1,5 @@
1
1
  naeural_client/__init__.py,sha256=YimqgDbjLuywsf8zCWE0EaUXH4MBUrqLxt0TDV558hQ,632
2
- naeural_client/_ver.py,sha256=A8luiY_UZ1E1gDBF4EFlXpiYy54iSeAXCSjGJeVX91U,331
2
+ naeural_client/_ver.py,sha256=DptYuPW6mJovNNYWBJDpDjURb7EaP7awqEvtRD_YvcE,331
3
3
  naeural_client/base_decentra_object.py,sha256=C4iwZTkhKNBS4VHlJs5DfElRYLo4Q9l1V1DNVSk1fyQ,4412
4
4
  naeural_client/plugins_manager_mixin.py,sha256=X1JdGLDz0gN1rPnTN_5mJXR8JmqoBFQISJXmPR9yvCo,11106
5
5
  naeural_client/base/__init__.py,sha256=hACh83_cIv7-PwYMM3bQm2IBmNqiHw-3PAfDfAEKz9A,259
@@ -32,7 +32,7 @@ naeural_client/comm/mqtt_wrapper.py,sha256=Ig3bFZkCbWd4y_Whn2PPa91Z3aLgNbNPau6Tn
32
32
  naeural_client/const/README.md,sha256=6OHesr-f5NBuuJGryEoi_TCu2XdlhfQYlDKx_IJoXeg,177
33
33
  naeural_client/const/__init__.py,sha256=MM6Zib6i7M2qWcMkLtLx14zqU-lE-u2uPHjNvbh2jAM,478
34
34
  naeural_client/const/apps.py,sha256=gIONTZUkqPveu3DwelyJWpbFMeIR9l6DlaNg-xEfK1A,611
35
- naeural_client/const/base.py,sha256=8e3qrYFpVGl7swMGQm9Yjj_40ghpvLHYsbeTQNWD_w8,4344
35
+ naeural_client/const/base.py,sha256=Lqe9SxlijYVWvRD3jS5ThforbWu7QUO0mTNGHp4XB2Q,4424
36
36
  naeural_client/const/comms.py,sha256=La6JXWHexH8CfcBCKyT4fCIoeaoZlcm7KtZ57ab4ZgU,2201
37
37
  naeural_client/const/environment.py,sha256=iytmTDgbOjvORPwHQmc0K0r-xJx7dnnzNnqAJJiFCDA,870
38
38
  naeural_client/const/formatter.py,sha256=AW3bWlqf39uaqV4BBUuW95qKYfF2OkkU4f9hy3kSVhM,200
@@ -81,8 +81,8 @@ naeural_client/utils/__init__.py,sha256=mAnke3-MeRzz3nhQvhuHqLnpaaCSmDxicd7Ck9uw
81
81
  naeural_client/utils/comm_utils.py,sha256=4cS9llRr_pK_3rNgDcRMCQwYPO0kcNU7AdWy_LtMyCY,1072
82
82
  naeural_client/utils/config.py,sha256=v7xHikr6Z5Sbvf3opYeMhYzGWD2pe0HlRwa-aGJzUh8,6323
83
83
  naeural_client/utils/dotenv.py,sha256=_AgSo35n7EnQv5yDyu7C7i0kHragLJoCGydHjvOkrYY,2008
84
- naeural_client-2.6.10.dist-info/METADATA,sha256=OD2-xY93rhV4VNxD9JUcE3E8FukACfYKVfuCvu7HpS0,14619
85
- naeural_client-2.6.10.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
86
- naeural_client-2.6.10.dist-info/entry_points.txt,sha256=PNdyotDaQBAslZREx5luVyj0kqpQnwNACwkFNTPIHU4,55
87
- naeural_client-2.6.10.dist-info/licenses/LICENSE,sha256=cvOsJVslde4oIaTCadabXnPqZmzcBO2f2zwXZRmJEbE,11311
88
- naeural_client-2.6.10.dist-info/RECORD,,
84
+ naeural_client-2.6.11.dist-info/METADATA,sha256=3k54h_N0eh40gxgXGgMUVYDouqYYMZhZ6PNGQE5Gs98,13176
85
+ naeural_client-2.6.11.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
86
+ naeural_client-2.6.11.dist-info/entry_points.txt,sha256=PNdyotDaQBAslZREx5luVyj0kqpQnwNACwkFNTPIHU4,55
87
+ naeural_client-2.6.11.dist-info/licenses/LICENSE,sha256=cvOsJVslde4oIaTCadabXnPqZmzcBO2f2zwXZRmJEbE,11311
88
+ naeural_client-2.6.11.dist-info/RECORD,,