naeural-client 2.6.33__py3-none-any.whl → 2.6.35__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 +1 -1
- naeural_client/base/generic_session.py +9 -2
- naeural_client/base/plugin_template.py +34 -0
- naeural_client/logging/base_logger.py +4 -1
- {naeural_client-2.6.33.dist-info → naeural_client-2.6.35.dist-info}/METADATA +1 -1
- {naeural_client-2.6.33.dist-info → naeural_client-2.6.35.dist-info}/RECORD +9 -9
- {naeural_client-2.6.33.dist-info → naeural_client-2.6.35.dist-info}/WHEEL +0 -0
- {naeural_client-2.6.33.dist-info → naeural_client-2.6.35.dist-info}/entry_points.txt +0 -0
- {naeural_client-2.6.33.dist-info → naeural_client-2.6.35.dist-info}/licenses/LICENSE +0 -0
naeural_client/_ver.py
CHANGED
@@ -2183,12 +2183,14 @@ class GenericSession(BaseDecentrAIObject):
|
|
2183
2183
|
self,
|
2184
2184
|
*,
|
2185
2185
|
node,
|
2186
|
-
name,
|
2186
|
+
name="Ratio1 Web App",
|
2187
2187
|
signature=PLUGIN_SIGNATURES.CUSTOM_WEBAPI_01,
|
2188
2188
|
ngrok_edge_label=None,
|
2189
2189
|
endpoints=None,
|
2190
2190
|
use_ngrok=True,
|
2191
2191
|
extra_debug=False,
|
2192
|
+
summary="Ratio1 WebApp created via SDK",
|
2193
|
+
description=None,
|
2192
2194
|
**kwargs
|
2193
2195
|
):
|
2194
2196
|
"""
|
@@ -2216,10 +2218,12 @@ class GenericSession(BaseDecentrAIObject):
|
|
2216
2218
|
"""
|
2217
2219
|
|
2218
2220
|
ngrok_use_api = True
|
2221
|
+
|
2222
|
+
pipeline_name = name.replace(" ", "_").lower()
|
2219
2223
|
|
2220
2224
|
pipeline: WebappPipeline = self.create_pipeline(
|
2221
2225
|
node=node,
|
2222
|
-
name=
|
2226
|
+
name=pipeline_name,
|
2223
2227
|
pipeline_type=WebappPipeline,
|
2224
2228
|
extra_debug=extra_debug,
|
2225
2229
|
# default TYPE is "Void"
|
@@ -2231,6 +2235,9 @@ class GenericSession(BaseDecentrAIObject):
|
|
2231
2235
|
use_ngrok=use_ngrok,
|
2232
2236
|
ngrok_edge_label=ngrok_edge_label,
|
2233
2237
|
ngrok_use_api=ngrok_use_api,
|
2238
|
+
api_title=name,
|
2239
|
+
api_summary=summary,
|
2240
|
+
api_description=description,
|
2234
2241
|
**kwargs
|
2235
2242
|
)
|
2236
2243
|
|
@@ -551,6 +551,40 @@ class CustomPluginTemplate:
|
|
551
551
|
"""
|
552
552
|
raise NotImplementedError
|
553
553
|
|
554
|
+
|
555
|
+
def mlapi_timeseries_fit_predict(self, data, steps : int, **kwargs):
|
556
|
+
"""
|
557
|
+
Takes a list of values and directly returns predictions using a basic AR model
|
558
|
+
|
559
|
+
|
560
|
+
Parameters
|
561
|
+
----------
|
562
|
+
data : list
|
563
|
+
List of float values. Note there is a lower limit of 10 values per series.
|
564
|
+
|
565
|
+
steps : int
|
566
|
+
Number of prediction steps.
|
567
|
+
|
568
|
+
Returns
|
569
|
+
-------
|
570
|
+
yh : list
|
571
|
+
the `steps` predicted values.
|
572
|
+
|
573
|
+
|
574
|
+
Example
|
575
|
+
-------
|
576
|
+
```
|
577
|
+
yh = self.mlapi_timeseries_fit_predict(
|
578
|
+
data=[0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89],
|
579
|
+
steps=3
|
580
|
+
)
|
581
|
+
result = {'preds' : yh}
|
582
|
+
```
|
583
|
+
|
584
|
+
"""
|
585
|
+
raise NotImplementedError
|
586
|
+
|
587
|
+
|
554
588
|
@property
|
555
589
|
def bs4(self):
|
556
590
|
"""
|
@@ -1687,8 +1687,11 @@ class BaseLogger(object):
|
|
1687
1687
|
def now_str_fmt(fmt=None):
|
1688
1688
|
if fmt is None:
|
1689
1689
|
fmt = '%Y-%m-%d %H:%M:%S.%f'
|
1690
|
-
|
1691
1690
|
return dt.now().strftime(fmt)
|
1691
|
+
|
1692
|
+
@staticmethod
|
1693
|
+
def str_to_bool(s):
|
1694
|
+
return str(s).lower() in ['true', 't', 'yes', 'y', '1', 'on']
|
1692
1695
|
|
1693
1696
|
def get_error_info(self, return_err_val=False):
|
1694
1697
|
"""
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: naeural_client
|
3
|
-
Version: 2.6.
|
3
|
+
Version: 2.6.35
|
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,13 +1,13 @@
|
|
1
1
|
naeural_client/__init__.py,sha256=YimqgDbjLuywsf8zCWE0EaUXH4MBUrqLxt0TDV558hQ,632
|
2
|
-
naeural_client/_ver.py,sha256=
|
2
|
+
naeural_client/_ver.py,sha256=0g4q2Py0UPiprv12M2LtuncvOx3Spf4cJVgDWzv2Ymw,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
|
6
6
|
naeural_client/base/distributed_custom_code_presets.py,sha256=cvz5R88P6Z5V61Ce1vHVVh8bOkgXd6gve_vdESDNAsg,2544
|
7
|
-
naeural_client/base/generic_session.py,sha256=
|
7
|
+
naeural_client/base/generic_session.py,sha256=zSm9tw3WxdkvMiD5YXR7_B86E6vt2F4FCajKEah3JMc,105845
|
8
8
|
naeural_client/base/instance.py,sha256=kcZJmjLBtx8Bjj_ysIOx1JmLA-qSpG7E28j5rq6IYus,20444
|
9
9
|
naeural_client/base/pipeline.py,sha256=EvESG5UH5GwyAZbJWJk1irTzGYBuOUjl-8KjkCdgLVI,58574
|
10
|
-
naeural_client/base/plugin_template.py,sha256=
|
10
|
+
naeural_client/base/plugin_template.py,sha256=7YAFaND2iXoZLgtunjYkFf_TBGieFr3VdNLO3vCqzmM,138795
|
11
11
|
naeural_client/base/responses.py,sha256=ZKBZmRhYDv8M8mQ5C_ahGsQvtWH4b9ImRcuerQdZmNw,6937
|
12
12
|
naeural_client/base/transaction.py,sha256=bfs6td5M0fINgPQNxhrl_AUjb1YiilLDQ-Cd_o3OR_E,5146
|
13
13
|
naeural_client/base/webapp_pipeline.py,sha256=ZNGqZ36DY076XVDfGu2Q61kCt3kxIJ4Mi4QbPZuDVn0,2791
|
@@ -58,7 +58,7 @@ naeural_client/io_formatter/default/a_dummy.py,sha256=qr9eUizQ-NN5jdXVzkaZKMaf9K
|
|
58
58
|
naeural_client/io_formatter/default/aixp1.py,sha256=MX0TeUR4APA-qN3vUC6uzcz8Pssz5lgrQWo7td5Ri1A,3052
|
59
59
|
naeural_client/io_formatter/default/default.py,sha256=gEy78cP2D5s0y8vQh4aHuxqz7D10gGfuiKF311QhrpE,494
|
60
60
|
naeural_client/logging/__init__.py,sha256=b79X45VC6c37u32flKB2GAK9f-RR0ocwP0JDCy0t7QQ,33
|
61
|
-
naeural_client/logging/base_logger.py,sha256=
|
61
|
+
naeural_client/logging/base_logger.py,sha256=1H7lwjLhuEkSrvCtjDX6v-voKzJklMJbkxTJ0mAe7to,67093
|
62
62
|
naeural_client/logging/small_logger.py,sha256=m12hCb_H4XifJYYfgCAOUDkcXm-h4pSODnFf277OFVI,2937
|
63
63
|
naeural_client/logging/logger_mixins/__init__.py,sha256=yQO7umlRvz63FeWpi-F9GRmC_MOHcNW6R6pwvZZBy3A,600
|
64
64
|
naeural_client/logging/logger_mixins/class_instance_mixin.py,sha256=xUXE2VZgmrlrSrvw0f6GF1jlTnVLeVkIiG0bhlBfq3o,2741
|
@@ -83,8 +83,8 @@ naeural_client/utils/comm_utils.py,sha256=4cS9llRr_pK_3rNgDcRMCQwYPO0kcNU7AdWy_L
|
|
83
83
|
naeural_client/utils/config.py,sha256=Ub5sw3NG6wskAF5C4s0WU0rzXHVLy70ZTRU0W8HUGTM,6403
|
84
84
|
naeural_client/utils/dotenv.py,sha256=_AgSo35n7EnQv5yDyu7C7i0kHragLJoCGydHjvOkrYY,2008
|
85
85
|
naeural_client/utils/oracle_sync/multiple_requests.py,sha256=GLzROGZ0gI4d1PVWgW_JBUYZjEL4LqZvHvwelxDiPW4,20892
|
86
|
-
naeural_client-2.6.
|
87
|
-
naeural_client-2.6.
|
88
|
-
naeural_client-2.6.
|
89
|
-
naeural_client-2.6.
|
90
|
-
naeural_client-2.6.
|
86
|
+
naeural_client-2.6.35.dist-info/METADATA,sha256=WMlJfRU8ZAGShvV5HXriNKqLFEBkX5Kk3VqagF9hHkk,12354
|
87
|
+
naeural_client-2.6.35.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
88
|
+
naeural_client-2.6.35.dist-info/entry_points.txt,sha256=CTua17GUrRa4aXeafezGC9TiWKGKQzwTjQmB2jyj22g,91
|
89
|
+
naeural_client-2.6.35.dist-info/licenses/LICENSE,sha256=cvOsJVslde4oIaTCadabXnPqZmzcBO2f2zwXZRmJEbE,11311
|
90
|
+
naeural_client-2.6.35.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|