naeural-client 2.0.0__py3-none-any.whl → 2.0.1__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.
@@ -1,4 +1,4 @@
1
- from PyE2.base.responses import Response
1
+ from naeural_client.base.responses import Response
2
2
  # from .responses import Response
3
3
  from time import time, sleep
4
4
 
@@ -181,7 +181,7 @@ class BaseLogger(object):
181
181
  lib_ver = __VER__
182
182
  ver = "v{}".format(lib_ver) if lib_ver != "" else ""
183
183
  self.verbose_log(
184
- "PyE2 [{} {}] initialized on machine [{}][{}].".format(
184
+ "SDK [{} {}] initialized on machine [{}][{}].".format(
185
185
  self.__lib__, ver, self.MACHINE_NAME, self.get_processor_platform(),
186
186
  ),
187
187
  color='green'
@@ -2,10 +2,10 @@ import inspect
2
2
 
3
3
  class _ClassInstanceMixin(object):
4
4
  """
5
- Mixin for class instance functionalities that are attached to `pye2.Logger`.
5
+ Mixin for class instance functionalities that are attached to `naeural_client.Logger`.
6
6
 
7
7
  This mixin cannot be instantiated because it is built just to provide some additional
8
- functionalities for `pye2.Logger`
8
+ functionalities for `naeural_client.Logger`
9
9
 
10
10
  In this mixin we can use any attribute/method of the Logger.
11
11
  """
@@ -5,10 +5,10 @@ from ...const import WEEKDAYS_SHORT
5
5
 
6
6
  class _DateTimeMixin(object):
7
7
  """
8
- Mixin for date and time functionalities that are attached to `pye2.Logger`.
8
+ Mixin for date and time functionalities that are attached to `naeural_client.Logger`.
9
9
 
10
10
  This mixin cannot be instantiated because it is built just to provide some additional
11
- functionalities for `pye2.Logger`
11
+ functionalities for `naeural_client.Logger`
12
12
 
13
13
  In this mixin we can use any attribute/method of the Logger.
14
14
  """
@@ -282,7 +282,7 @@ class _DateTimeMixin(object):
282
282
 
283
283
 
284
284
  if __name__ == '__main__':
285
- from PyE2 import Logger
285
+ from naeural_client import Logger
286
286
  log = Logger(
287
287
  'gigi',
288
288
  base_folder='.',
@@ -6,10 +6,10 @@ from time import time
6
6
 
7
7
  class _DownloadMixin(object):
8
8
  """
9
- Mixin for download functionalities that are attached to `pye2.Logger`.
9
+ Mixin for download functionalities that are attached to `naeural_client.Logger`.
10
10
 
11
11
  This mixin cannot be instantiated because it is built just to provide some additional
12
- functionalities for `pye2.Logger`
12
+ functionalities for `naeural_client.Logger`
13
13
 
14
14
  In this mixin we can use any attribute/method of the Logger.
15
15
  """
@@ -6,7 +6,7 @@ import base64
6
6
 
7
7
  class _GeneralSerializationMixin(object):
8
8
  """
9
- Mixin for general serialization functionalities that are attached to `pye2.Logger`:
9
+ Mixin for general serialization functionalities that are attached to `naeural_client.Logger`:
10
10
  - zip
11
11
  - csr
12
12
  - numpy
@@ -14,7 +14,7 @@ class _GeneralSerializationMixin(object):
14
14
 
15
15
 
16
16
  This mixin cannot be instantiated because it is built just to provide some additional
17
- functionalities for `pye2.Logger`
17
+ functionalities for `naeural_client.Logger`
18
18
 
19
19
  In this mixin we can use any attribute/method of the Logger.
20
20
  """
@@ -119,10 +119,10 @@ class NPJson(json.JSONEncoder):
119
119
 
120
120
  class _JSONSerializationMixin(object):
121
121
  """
122
- Mixin for json serialization functionalities that are attached to `pye2.Logger`.
122
+ Mixin for json serialization functionalities that are attached to `naeural_client.Logger`.
123
123
 
124
124
  This mixin cannot be instantiated because it is built just to provide some additional
125
- functionalities for `pye2.Logger`
125
+ functionalities for `naeural_client.Logger`
126
126
 
127
127
  In this mixin we can use any attribute/method of the Logger.
128
128
  """
@@ -4,10 +4,10 @@ import pickle
4
4
 
5
5
  class _PickleSerializationMixin(object):
6
6
  """
7
- Mixin for pickle serialization functionalities that are attached to `pye2.Logger`.
7
+ Mixin for pickle serialization functionalities that are attached to `naeural_client.Logger`.
8
8
 
9
9
  This mixin cannot be instantiated because it is built just to provide some additional
10
- functionalities for `pye2.Logger`
10
+ functionalities for `naeural_client.Logger`
11
11
 
12
12
  In this mixin we can use any attribute/method of the Logger.
13
13
  """
@@ -3,10 +3,10 @@ import sys
3
3
 
4
4
  class _ProcessMixin(object):
5
5
  """
6
- Mixin for process functionalities that are attached to `pye2.Logger`.
6
+ Mixin for process functionalities that are attached to `naeural_client.Logger`.
7
7
 
8
8
  This mixin cannot be instantiated because it is built just to provide some additional
9
- functionalities for `pye2.Logger`
9
+ functionalities for `naeural_client.Logger`
10
10
 
11
11
  In this mixin we can use any attribute/method of the Logger.
12
12
  """
@@ -2,10 +2,10 @@ import os
2
2
 
3
3
  class _ResourceSizeMixin(object):
4
4
  """
5
- Mixin for resource size functionalities that are attached to `pye2.Logger`.
5
+ Mixin for resource size functionalities that are attached to `naeural_client.Logger`.
6
6
 
7
7
  This mixin cannot be instantiated because it is built just to provide some additional
8
- functionalities for `pye2.Logger`
8
+ functionalities for `naeural_client.Logger`
9
9
 
10
10
  In this mixin we can use any attribute/method of the Logger.
11
11
  """
@@ -19,10 +19,10 @@ _OBSOLETE_SECTION_TIME = 3600 # sections older than 1 hour are archived
19
19
 
20
20
  class _TimersMixin(object):
21
21
  """
22
- Mixin for timers functionalities that are attached to `pye2.Logger`.
22
+ Mixin for timers functionalities that are attached to `naeural_client.Logger`.
23
23
 
24
24
  This mixin cannot be instantiated because it is built just to provide some additional
25
- functionalities for `pye2.Logger`
25
+ functionalities for `naeural_client.Logger`
26
26
 
27
27
  In this mixin we can use any attribute/method of the Logger.
28
28
  """
@@ -7,10 +7,10 @@ from datetime import timedelta
7
7
 
8
8
  class _UploadMixin(object):
9
9
  """
10
- Mixin for upload functionalities that are attached to `pye2.Logger`.
10
+ Mixin for upload functionalities that are attached to `naeural_client.Logger`.
11
11
 
12
12
  This mixin cannot be instantiated because it is built just to provide some additional
13
- functionalities for `pye2.Logger`
13
+ functionalities for `naeural_client.Logger`
14
14
 
15
15
  In this mixin we can use any attribute/method of the Logger.
16
16
  """
@@ -15,10 +15,10 @@ from io import BytesIO, TextIOWrapper
15
15
 
16
16
  class _UtilsMixin(object):
17
17
  """
18
- Mixin for functionalities that do not belong to any mixin that are attached to `pye2.Logger`.
18
+ Mixin for functionalities that do not belong to any mixin that are attached to `naeural_client.Logger`.
19
19
 
20
20
  This mixin cannot be instantiated because it is built just to provide some additional
21
- functionalities for `pye2.Logger`
21
+ functionalities for `naeural_client.Logger`
22
22
 
23
23
  In this mixin we can use any attribute/method of the Logger.
24
24
  """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: naeural_client
3
- Version: 2.0.0
3
+ Version: 2.0.1
4
4
  Summary: `naeural_client` is the Python SDK required for client app development for the Naeural 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
@@ -19,7 +19,7 @@ Requires-Dist: pyopenssl>=23.0.0
19
19
  Requires-Dist: python-dateutil
20
20
  Description-Content-Type: text/markdown
21
21
 
22
- # PyE2 SDK
22
+ # naeural_client SDK
23
23
 
24
24
  This is the Python SDK package that allows interactions, development and deployment of jobs in Naeural network. The SDK enables low-code development and deployment of end-to-end AI (and not only) cooperative application pipelines within the Naeural Execution Engine processing nodes ecosystem. For further information please see [Naeural AI OS - Decentralized ubiquitous computing MLOps execution engine](https://arxiv.org/pdf/2306.08708).
25
25
 
@@ -30,7 +30,7 @@ This packet depends on the following packets: `pika`, `paho-mqtt`, `numpy`, `pyo
30
30
  ## Installation
31
31
 
32
32
  ```shell
33
- python -m pip install PyE2
33
+ python -m pip install naeural_client
34
34
  ```
35
35
 
36
36
  ## Documentation
@@ -43,7 +43,7 @@ Code examples are located in the `tutorials` folder in the project's repository.
43
43
  ## Quick start guides
44
44
 
45
45
  Here you will find a selection of guides and documentation snippets to get
46
- you started with the `PyE2` SDK. These are only the most important aspects,
46
+ you started with the `naeural_client` SDK. These are only the most important aspects,
47
47
  selected from the documentation and from the code examples. For more
48
48
  in-depth information, please consult the examples from the repository
49
49
  and the documentation.
@@ -160,7 +160,7 @@ These changes are the only ones a developer has to do to deploy his own custom c
160
160
  For this, we will create a new method, `remote_brute_force_prime_number_generator`, which will use the exposed edge node API methods.
161
161
 
162
162
  ```python
163
- from PyE2 import CustomPluginTemplate
163
+ from naeural_client import CustomPluginTemplate
164
164
 
165
165
  # through the `plugin` object we get access to the edge node API
166
166
  # the CustomPluginTemplate class acts as a documentation for all the available methods and attributes
@@ -196,7 +196,7 @@ Now lets connect to the network and see what nodes are online.
196
196
  We will use the `on_heartbeat` callback to print the nodes.
197
197
 
198
198
  ```python
199
- from PyE2 import Session
199
+ from naeural_client import Session
200
200
  from time import sleep
201
201
 
202
202
  def on_heartbeat(session: Session, node: str, heartbeat: dict):
@@ -244,7 +244,7 @@ Our selected node will periodically output partial results with the prime number
244
244
  Thus, we need to implement a callback method that will handle this.
245
245
 
246
246
  ```python
247
- from PyE2 import Pipeline
247
+ from naeural_client import Pipeline
248
248
 
249
249
  # a flag used to close the session when the task is finished
250
250
  finished = False
@@ -267,7 +267,7 @@ def locally_process_partial_results(pipeline: Pipeline, full_payload):
267
267
  Now we are ready to deploy our job to the network.
268
268
 
269
269
  ```python
270
- from PyE2 import DistributedCustomCodePresets as Presets
270
+ from naeural_client import DistributedCustomCodePresets as Presets
271
271
 
272
272
  _, _ = session.create_chain_dist_custom_job(
273
273
  # this is the main node, our entrypoint
@@ -335,11 +335,11 @@ For any inquiries related to the funding and its impact on this project, please
335
335
  # Citation
336
336
 
337
337
  ```bibtex
338
- @misc{PyE2,
338
+ @misc{naeural_client,
339
339
  author = {Stefan Saraev, Andrei Damian},
340
- title = {PyE2: Python SDK for Naeural Edge Protocol},
340
+ title = {naeural_client: Python SDK for Naeural Edge Protocol},
341
341
  year = {2024},
342
- howpublished = {\url{https://github.com/NaeuralEdgeProtocol/PyE2}},
342
+ howpublished = {\url{https://github.com/NaeuralEdgeProtocol/naeural_client}},
343
343
  }
344
344
  ```
345
345
 
@@ -1,5 +1,5 @@
1
1
  naeural_client/__init__.py,sha256=ZNoadMrxrd1EZqxni0zpoqjFIBrS8Jg-vfZrr7xwe9I,498
2
- naeural_client/_ver.py,sha256=yNDcOu9DDQRie1_Z8yaUGkhX8uMLmP-NN5ZbHOb4IgA,330
2
+ naeural_client/_ver.py,sha256=fIub_Shqx2sNADxzGW-jCCOKc15lrptdhn9y12jgzfM,330
3
3
  naeural_client/base_decentra_object.py,sha256=TBBnShUybWhjcbEIT8_27FGzxcQUVh23jm-HlaD9Qbw,4173
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
@@ -7,9 +7,9 @@ naeural_client/base/distributed_custom_code_presets.py,sha256=cvz5R88P6Z5V61Ce1v
7
7
  naeural_client/base/generic_session.py,sha256=Dop4vI8mjB30OUFuMZ3gEDwvzDOXGqCrWsENtS-PRnI,65979
8
8
  naeural_client/base/instance.py,sha256=pZSYC_WQNa5YqU2cVN9vbDyCg8ums8EQCd5Cx95a_VQ,19942
9
9
  naeural_client/base/pipeline.py,sha256=21V9SN1v86iMm80jOikZIkooyBF9FMs_3_0Q9-Qp4sc,57288
10
- naeural_client/base/plugin_template.py,sha256=NUVZrSy-YFxs5ZWCzS-eyYJzut1oJaWIdol8Cky3Lzs,129442
10
+ naeural_client/base/plugin_template.py,sha256=CzIMJIh36pDAtUIddlAPJ9OmHbmcFmph_F00rEKUp_0,136987
11
11
  naeural_client/base/responses.py,sha256=ZKBZmRhYDv8M8mQ5C_ahGsQvtWH4b9ImRcuerQdZmNw,6937
12
- naeural_client/base/transaction.py,sha256=Mo-2QLxl8PSR_t-XJGb9bXAXZ-6r4g0SS4hDOng4GAU,5136
12
+ naeural_client/base/transaction.py,sha256=bfs6td5M0fINgPQNxhrl_AUjb1YiilLDQ-Cd_o3OR_E,5146
13
13
  naeural_client/base/payload/__init__.py,sha256=y8fBI8tG2ObNfaXFWjyWZXwu878FRYj_I8GIbHT4GKE,29
14
14
  naeural_client/base/payload/payload.py,sha256=wejtDRg-hZZAzJD4Ud-AEW67gEbs1kNriimul95lyj4,1951
15
15
  naeural_client/bc/__init__.py,sha256=FQj23D1PrY06NUOARiKQi4cdj0-VxnoYgYDEht8lpr8,158
@@ -49,21 +49,21 @@ naeural_client/io_formatter/default/a_dummy.py,sha256=qr9eUizQ-NN5jdXVzkaZKMaf9K
49
49
  naeural_client/io_formatter/default/aixp1.py,sha256=MX0TeUR4APA-qN3vUC6uzcz8Pssz5lgrQWo7td5Ri1A,3052
50
50
  naeural_client/io_formatter/default/default.py,sha256=gEy78cP2D5s0y8vQh4aHuxqz7D10gGfuiKF311QhrpE,494
51
51
  naeural_client/logging/__init__.py,sha256=b79X45VC6c37u32flKB2GAK9f-RR0ocwP0JDCy0t7QQ,33
52
- naeural_client/logging/base_logger.py,sha256=XlHzuFhVrjTZUq_67unZIF-wT87UoZt6zR7fAdS08SE,65164
52
+ naeural_client/logging/base_logger.py,sha256=9FflGeC0m3zzcQB2QrRH0iebQn37FDe9r9BxNaoH1J0,65163
53
53
  naeural_client/logging/small_logger.py,sha256=6wljiHP1moCkgohRnr2EX095eM2RtdJ5B3cytbO_Ow4,2887
54
54
  naeural_client/logging/logger_mixins/__init__.py,sha256=yQO7umlRvz63FeWpi-F9GRmC_MOHcNW6R6pwvZZBy3A,600
55
- naeural_client/logging/logger_mixins/class_instance_mixin.py,sha256=l6XTrcwT6mNriXlynUHt5oTEyie2Ym37tXpBqQyMc9o,2721
55
+ naeural_client/logging/logger_mixins/class_instance_mixin.py,sha256=xUXE2VZgmrlrSrvw0f6GF1jlTnVLeVkIiG0bhlBfq3o,2741
56
56
  naeural_client/logging/logger_mixins/computer_vision_mixin.py,sha256=TrtG7ayM2ab-4jjIkIWAQaFi9cVfiINAWrJCt8mCCFI,13213
57
- naeural_client/logging/logger_mixins/datetime_mixin.py,sha256=teSLMr4_nubo9qAjjZhNF4rGQ9IU_o7ezYTS7EeahBg,11258
58
- naeural_client/logging/logger_mixins/download_mixin.py,sha256=dz8DoTKLDVjT02syQwrAVjjdp1EHwTClPubkUQMJ_vc,13270
59
- naeural_client/logging/logger_mixins/general_serialization_mixin.py,sha256=h1PUXxuDExoBBn8h_3GpFV-Pc_fQqkAc1ZcR5mPyQtI,7420
60
- naeural_client/logging/logger_mixins/json_serialization_mixin.py,sha256=fNluF1s3dqWGffY3Y_o8521EZS_vV711SH0rICugNNM,14442
61
- naeural_client/logging/logger_mixins/pickle_serialization_mixin.py,sha256=-J6hHmlCbaAOQkF6KBGCzkIHvMkA0bgIZfpj1WPiWIA,9165
62
- naeural_client/logging/logger_mixins/process_mixin.py,sha256=RupUq6IaK0xuZtIP51zasxBfbZ4NSiN2pg7d9D_ZO74,1884
63
- naeural_client/logging/logger_mixins/resource_size_mixin.py,sha256=nPn_ipoUP7uq0FxvBGNf55ttwqbDskAAfvGZO4a8DW0,2277
64
- naeural_client/logging/logger_mixins/timers_mixin.py,sha256=TDqEj4qv_VV3AaQdoR4FunE6dJxeN19nkfles7aQL3E,17295
65
- naeural_client/logging/logger_mixins/upload_mixin.py,sha256=lu2DzJqkHzEek0nGavAK4YJBXgBvKG8Hlf0YVHHAEqI,7677
66
- naeural_client/logging/logger_mixins/utils_mixin.py,sha256=jOgKxPr094qLrwwwcpz_beUQEITLB7tYOerrdUJw79U,19537
57
+ naeural_client/logging/logger_mixins/datetime_mixin.py,sha256=x0l2mhhmNZ6r_SmJ5or7dxAf2e4tQL0LiBsj3RDu6pU,11288
58
+ naeural_client/logging/logger_mixins/download_mixin.py,sha256=1LqhmP-3ivmpegU2ns24jDQCDDRpg9LsgXPz7hQqjOs,13290
59
+ naeural_client/logging/logger_mixins/general_serialization_mixin.py,sha256=3glOuN6Whi_GSxb1OiFitzypOqkf_x2RJGfGaO51_WE,7440
60
+ naeural_client/logging/logger_mixins/json_serialization_mixin.py,sha256=C3HtEAXV7DcWTV0g9K-sDvH4fd5Y_pimVVQylr8TO8M,14462
61
+ naeural_client/logging/logger_mixins/pickle_serialization_mixin.py,sha256=9BftwBe56e94FXjyf8c8m4GEvIvzNdK_jpQPtIIJbXY,9185
62
+ naeural_client/logging/logger_mixins/process_mixin.py,sha256=ZO7S1mvKWwH_UIqv7JG-NxizcfWMJqngNNW_K-hESdU,1904
63
+ naeural_client/logging/logger_mixins/resource_size_mixin.py,sha256=EdCeFM8Ol8q_OTOmsj5Q2uKPvkqkoNdcXSZjw4FgAh4,2297
64
+ naeural_client/logging/logger_mixins/timers_mixin.py,sha256=6D1HlLB97TpIwJEqj4UPBf1Md2HVORlSWtwXqnKyab4,17315
65
+ naeural_client/logging/logger_mixins/upload_mixin.py,sha256=mvooNlNDNa_9D906d5qkfzTcvvsAuBOResoGCZ5IFnE,7697
66
+ naeural_client/logging/logger_mixins/utils_mixin.py,sha256=EsqA2piBW3wLL-2BDagCqVMLAUkTVAH_HP6Z4kiQc6E,19557
67
67
  naeural_client/logging/tzlocal/__init__.py,sha256=PBLaZSFatmJp2fX4Bwalwc5LgWX9Vcw-FWHnBvW1k8E,384
68
68
  naeural_client/logging/tzlocal/unix.py,sha256=Cgpzg1jxrcSivyT5xFRX69W5XkF5ollvXPr976RIbmA,7268
69
69
  naeural_client/logging/tzlocal/utils.py,sha256=6F2QE3b8xiKwBriQaT0jrgBeyrKhCj6b-eSCEywLSMg,3094
@@ -72,7 +72,7 @@ naeural_client/logging/tzlocal/windows_tz.py,sha256=Sv9okktjZJfRGGUOOppsvQuX_eXy
72
72
  naeural_client/utils/__init__.py,sha256=mAnke3-MeRzz3nhQvhuHqLnpaaCSmDxicd7Ck9uwpmI,77
73
73
  naeural_client/utils/comm_utils.py,sha256=4cS9llRr_pK_3rNgDcRMCQwYPO0kcNU7AdWy_LtMyCY,1072
74
74
  naeural_client/utils/dotenv.py,sha256=_AgSo35n7EnQv5yDyu7C7i0kHragLJoCGydHjvOkrYY,2008
75
- naeural_client-2.0.0.dist-info/METADATA,sha256=9odw_xC8Ez_UagxNCJ_wPIKa9d6ymi7Q5K_q8mObIb8,14239
76
- naeural_client-2.0.0.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
77
- naeural_client-2.0.0.dist-info/licenses/LICENSE,sha256=7P07j9ez3_ovbZ8L_ZJuPXVOgqTS19-ECkezwOtFqOI,11340
78
- naeural_client-2.0.0.dist-info/RECORD,,
75
+ naeural_client-2.0.1.dist-info/METADATA,sha256=zmbnuRiXoI-A0Xhuy_Xqiyw9z9tjyJ3Qf5NY9B7oiHw,14339
76
+ naeural_client-2.0.1.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
77
+ naeural_client-2.0.1.dist-info/licenses/LICENSE,sha256=7P07j9ez3_ovbZ8L_ZJuPXVOgqTS19-ECkezwOtFqOI,11340
78
+ naeural_client-2.0.1.dist-info/RECORD,,