wizata-dsapi 1.3.12__tar.gz → 1.3.14__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 (54) hide show
  1. {wizata_dsapi-1.3.12/wizata_dsapi.egg-info → wizata_dsapi-1.3.14}/PKG-INFO +5 -5
  2. {wizata_dsapi-1.3.12 → wizata_dsapi-1.3.14}/setup.py +2 -2
  3. {wizata_dsapi-1.3.12 → wizata_dsapi-1.3.14}/wizata_dsapi/mlmodel.py +94 -0
  4. wizata_dsapi-1.3.14/wizata_dsapi/version.py +1 -0
  5. {wizata_dsapi-1.3.12 → wizata_dsapi-1.3.14/wizata_dsapi.egg-info}/PKG-INFO +5 -5
  6. {wizata_dsapi-1.3.12 → wizata_dsapi-1.3.14}/wizata_dsapi.egg-info/requires.txt +4 -4
  7. wizata_dsapi-1.3.12/wizata_dsapi/version.py +0 -1
  8. {wizata_dsapi-1.3.12 → wizata_dsapi-1.3.14}/LICENSE.txt +0 -0
  9. {wizata_dsapi-1.3.12 → wizata_dsapi-1.3.14}/README.rst +0 -0
  10. {wizata_dsapi-1.3.12 → wizata_dsapi-1.3.14}/setup.cfg +0 -0
  11. {wizata_dsapi-1.3.12 → wizata_dsapi-1.3.14}/wizata_dsapi/__init__.py +0 -0
  12. {wizata_dsapi-1.3.12 → wizata_dsapi-1.3.14}/wizata_dsapi/api_config.py +0 -0
  13. {wizata_dsapi-1.3.12 → wizata_dsapi-1.3.14}/wizata_dsapi/api_dto.py +0 -0
  14. {wizata_dsapi-1.3.12 → wizata_dsapi-1.3.14}/wizata_dsapi/api_interface.py +0 -0
  15. {wizata_dsapi-1.3.12 → wizata_dsapi-1.3.14}/wizata_dsapi/bucket.py +0 -0
  16. {wizata_dsapi-1.3.12 → wizata_dsapi-1.3.14}/wizata_dsapi/business_label.py +0 -0
  17. {wizata_dsapi-1.3.12 → wizata_dsapi-1.3.14}/wizata_dsapi/context.py +0 -0
  18. {wizata_dsapi-1.3.12 → wizata_dsapi-1.3.14}/wizata_dsapi/dataframe_toolkit.py +0 -0
  19. {wizata_dsapi-1.3.12 → wizata_dsapi-1.3.14}/wizata_dsapi/datapoint.py +0 -0
  20. {wizata_dsapi-1.3.12 → wizata_dsapi-1.3.14}/wizata_dsapi/datastore.py +0 -0
  21. {wizata_dsapi-1.3.12 → wizata_dsapi-1.3.14}/wizata_dsapi/ds_dataframe.py +0 -0
  22. {wizata_dsapi-1.3.12 → wizata_dsapi-1.3.14}/wizata_dsapi/dsapi_json_encoder.py +0 -0
  23. {wizata_dsapi-1.3.12 → wizata_dsapi-1.3.14}/wizata_dsapi/evaluation.py +0 -0
  24. {wizata_dsapi-1.3.12 → wizata_dsapi-1.3.14}/wizata_dsapi/execution.py +0 -0
  25. {wizata_dsapi-1.3.12 → wizata_dsapi-1.3.14}/wizata_dsapi/experiment.py +0 -0
  26. {wizata_dsapi-1.3.12 → wizata_dsapi-1.3.14}/wizata_dsapi/group_system.py +0 -0
  27. {wizata_dsapi-1.3.12 → wizata_dsapi-1.3.14}/wizata_dsapi/ilogger.py +0 -0
  28. {wizata_dsapi-1.3.12 → wizata_dsapi-1.3.14}/wizata_dsapi/insight.py +0 -0
  29. {wizata_dsapi-1.3.12 → wizata_dsapi-1.3.14}/wizata_dsapi/model_toolkit.py +0 -0
  30. {wizata_dsapi-1.3.12 → wizata_dsapi-1.3.14}/wizata_dsapi/models/__init__.py +0 -0
  31. {wizata_dsapi-1.3.12 → wizata_dsapi-1.3.14}/wizata_dsapi/models/common.py +0 -0
  32. {wizata_dsapi-1.3.12 → wizata_dsapi-1.3.14}/wizata_dsapi/paged_query_result.py +0 -0
  33. {wizata_dsapi-1.3.12 → wizata_dsapi-1.3.14}/wizata_dsapi/pipeline.py +0 -0
  34. {wizata_dsapi-1.3.12 → wizata_dsapi-1.3.14}/wizata_dsapi/pipeline_image.py +0 -0
  35. {wizata_dsapi-1.3.12 → wizata_dsapi-1.3.14}/wizata_dsapi/plot.py +0 -0
  36. {wizata_dsapi-1.3.12 → wizata_dsapi-1.3.14}/wizata_dsapi/plots/__init__.py +0 -0
  37. {wizata_dsapi-1.3.12 → wizata_dsapi-1.3.14}/wizata_dsapi/plots/common.py +0 -0
  38. {wizata_dsapi-1.3.12 → wizata_dsapi-1.3.14}/wizata_dsapi/request.py +0 -0
  39. {wizata_dsapi-1.3.12 → wizata_dsapi-1.3.14}/wizata_dsapi/script.py +0 -0
  40. {wizata_dsapi-1.3.12 → wizata_dsapi-1.3.14}/wizata_dsapi/scripts/__init__.py +0 -0
  41. {wizata_dsapi-1.3.12 → wizata_dsapi-1.3.14}/wizata_dsapi/scripts/common.py +0 -0
  42. {wizata_dsapi-1.3.12 → wizata_dsapi-1.3.14}/wizata_dsapi/solution_component.py +0 -0
  43. {wizata_dsapi-1.3.12 → wizata_dsapi-1.3.14}/wizata_dsapi/streamlit_utils.py +0 -0
  44. {wizata_dsapi-1.3.12 → wizata_dsapi-1.3.14}/wizata_dsapi/template.py +0 -0
  45. {wizata_dsapi-1.3.12 → wizata_dsapi-1.3.14}/wizata_dsapi/trigger.py +0 -0
  46. {wizata_dsapi-1.3.12 → wizata_dsapi-1.3.14}/wizata_dsapi/twin.py +0 -0
  47. {wizata_dsapi-1.3.12 → wizata_dsapi-1.3.14}/wizata_dsapi/twinregistration.py +0 -0
  48. {wizata_dsapi-1.3.12 → wizata_dsapi-1.3.14}/wizata_dsapi/wizard_function.py +0 -0
  49. {wizata_dsapi-1.3.12 → wizata_dsapi-1.3.14}/wizata_dsapi/wizard_request.py +0 -0
  50. {wizata_dsapi-1.3.12 → wizata_dsapi-1.3.14}/wizata_dsapi/wizata_dsapi_client.py +0 -0
  51. {wizata_dsapi-1.3.12 → wizata_dsapi-1.3.14}/wizata_dsapi/words.py +0 -0
  52. {wizata_dsapi-1.3.12 → wizata_dsapi-1.3.14}/wizata_dsapi.egg-info/SOURCES.txt +0 -0
  53. {wizata_dsapi-1.3.12 → wizata_dsapi-1.3.14}/wizata_dsapi.egg-info/dependency_links.txt +0 -0
  54. {wizata_dsapi-1.3.12 → wizata_dsapi-1.3.14}/wizata_dsapi.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: wizata_dsapi
3
- Version: 1.3.12
3
+ Version: 1.3.14
4
4
  Summary: Wizata Data Science Toolkit
5
5
  Author: Wizata S.A.
6
6
  Author-email: info@wizata.com
@@ -12,8 +12,8 @@ Requires-Dist: numpy==1.26.4; python_version < "3.12"
12
12
  Requires-Dist: numpy>=2.3.3; python_version >= "3.12"
13
13
  Requires-Dist: dill==0.3.6; python_version < "3.12"
14
14
  Requires-Dist: dill==0.4.0; python_version >= "3.12"
15
- Requires-Dist: protobuf==5.25.9; python_version < "3.12"
16
- Requires-Dist: protobuf>=5.25.9; python_version >= "3.12"
15
+ Requires-Dist: protobuf==5.29.5; python_version < "3.12"
16
+ Requires-Dist: protobuf>=5.29.5; python_version >= "3.12"
17
17
  Requires-Dist: msal==1.30.0; python_version < "3.12"
18
18
  Requires-Dist: msal>=1.34.0; python_version >= "3.12"
19
19
  Requires-Dist: joblib==1.5.2; python_version < "3.12"
@@ -32,8 +32,8 @@ Requires-Dist: numpy==1.26.4; python_version < "3.12" and extra == "all"
32
32
  Requires-Dist: numpy>=2.3.3; python_version >= "3.12" and extra == "all"
33
33
  Requires-Dist: dill==0.3.6; python_version < "3.12" and extra == "all"
34
34
  Requires-Dist: dill==0.4.0; python_version >= "3.12" and extra == "all"
35
- Requires-Dist: protobuf==5.25.9; python_version < "3.12" and extra == "all"
36
- Requires-Dist: protobuf>=5.25.9; python_version >= "3.12" and extra == "all"
35
+ Requires-Dist: protobuf==5.29.5; python_version < "3.12" and extra == "all"
36
+ Requires-Dist: protobuf>=5.29.5; python_version >= "3.12" and extra == "all"
37
37
  Requires-Dist: msal==1.30.0; python_version < "3.12" and extra == "all"
38
38
  Requires-Dist: msal>=1.34.0; python_version >= "3.12" and extra == "all"
39
39
  Requires-Dist: joblib==1.5.2; python_version < "3.12" and extra == "all"
@@ -14,8 +14,8 @@ core_dependencies = [
14
14
  'numpy>=2.3.3; python_version>="3.12"',
15
15
  'dill==0.3.6; python_version<"3.12"',
16
16
  'dill==0.4.0; python_version>="3.12"',
17
- 'protobuf==5.25.9; python_version<"3.12"',
18
- 'protobuf>=5.25.9; python_version>="3.12"',
17
+ 'protobuf==5.29.5; python_version<"3.12"',
18
+ 'protobuf>=5.29.5; python_version>="3.12"',
19
19
  'msal==1.30.0; python_version<"3.12"',
20
20
  'msal>=1.34.0; python_version>="3.12"',
21
21
  'joblib==1.5.2; python_version<"3.12"',
@@ -1,5 +1,8 @@
1
1
  import json
2
2
  import uuid
3
+
4
+ from typing_extensions import deprecated
5
+
3
6
  from .api_dto import ApiDto
4
7
  from enum import Enum
5
8
 
@@ -228,6 +231,97 @@ class MLModelConfig(ApiDto):
228
231
  raise TypeError(f'unsupported target_feat type {self.target_feat.__class__.__name__}')
229
232
 
230
233
 
234
+ class ModelList:
235
+ """
236
+ used to conveniently manipulate a list of models.
237
+ """
238
+
239
+ def __init__(self):
240
+ self.models = []
241
+
242
+ class ModelInfo:
243
+ """
244
+ define a pointer to a machine learning model.
245
+ """
246
+
247
+ def __init__(self,
248
+ key: str,
249
+ twin_hardware_id: str = None,
250
+ property_name: str = None,
251
+ alias: str = None,
252
+ file_format: str = 'pkl',
253
+ source: str = 'wizata'
254
+ ):
255
+ self.key = key
256
+ self.twin_hardware_id = twin_hardware_id
257
+ self.property_name = property_name
258
+ self.alias = alias
259
+ self.file_format = file_format
260
+ self.source = source
261
+ self.files = []
262
+
263
+ def identifier(self, include_alias: bool = False) -> str:
264
+ """
265
+ returns the complete string identifier for this model.
266
+ :param include_alias: include the alias pointer or leave it to target the default version.
267
+ :return: complete identifier of a model.
268
+ """
269
+ if self.key is None:
270
+ raise KeyError('please specific a model key')
271
+ identifier = self.key
272
+
273
+ if self.twin_hardware_id is not None:
274
+ identifier += f".{self.twin_hardware_id}"
275
+
276
+ if self.property_name is not None:
277
+ identifier += f".{self.property_name}"
278
+
279
+ if include_alias and self.alias is not None:
280
+ identifier += f"@{self.alias}"
281
+
282
+ return identifier
283
+
284
+ def to_json(self):
285
+ """
286
+ convert this entity in a dict that can be json serializable
287
+ :return: dict
288
+ """
289
+ obj = {
290
+ "key": self.key,
291
+ "file_format": self.file_format,
292
+ "source": self.source
293
+ }
294
+ if self.twin_hardware_id is not None:
295
+ obj["twin_hardware_id"] = str(self.twin_hardware_id)
296
+ if self.property_name is not None:
297
+ obj["property_name"] = self.property_name
298
+ if self.alias is not None:
299
+ obj["alias"] = self.alias
300
+ if self.file_format is not None:
301
+ obj["file_format"] = self.file_format
302
+ if self.source is not None:
303
+ obj["source"] = self.source
304
+ return obj
305
+
306
+ def from_json(self, obj):
307
+ """
308
+ load this entity from a dict
309
+ """
310
+ if "key" in obj.keys():
311
+ self.key = obj["key"]
312
+ if "twin_hardware_id" in obj.keys():
313
+ self.twin_hardware_id = obj["twin_hardware_id"]
314
+ if "property_name" in obj.keys():
315
+ self.property_name = obj["property_name"]
316
+ if "alias" in obj.keys():
317
+ self.alias = obj["alias"]
318
+ if "file_format" in obj.keys():
319
+ self.key = obj["file_format"]
320
+ if "source" in obj.keys():
321
+ self.source = obj["source"]
322
+
323
+
324
+ @deprecated
231
325
  class MLModel(ApiDto):
232
326
  """
233
327
  used to define a stored machine learning model within Wizata.
@@ -0,0 +1 @@
1
+ __version__ = "1.3.14"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: wizata_dsapi
3
- Version: 1.3.12
3
+ Version: 1.3.14
4
4
  Summary: Wizata Data Science Toolkit
5
5
  Author: Wizata S.A.
6
6
  Author-email: info@wizata.com
@@ -12,8 +12,8 @@ Requires-Dist: numpy==1.26.4; python_version < "3.12"
12
12
  Requires-Dist: numpy>=2.3.3; python_version >= "3.12"
13
13
  Requires-Dist: dill==0.3.6; python_version < "3.12"
14
14
  Requires-Dist: dill==0.4.0; python_version >= "3.12"
15
- Requires-Dist: protobuf==5.25.9; python_version < "3.12"
16
- Requires-Dist: protobuf>=5.25.9; python_version >= "3.12"
15
+ Requires-Dist: protobuf==5.29.5; python_version < "3.12"
16
+ Requires-Dist: protobuf>=5.29.5; python_version >= "3.12"
17
17
  Requires-Dist: msal==1.30.0; python_version < "3.12"
18
18
  Requires-Dist: msal>=1.34.0; python_version >= "3.12"
19
19
  Requires-Dist: joblib==1.5.2; python_version < "3.12"
@@ -32,8 +32,8 @@ Requires-Dist: numpy==1.26.4; python_version < "3.12" and extra == "all"
32
32
  Requires-Dist: numpy>=2.3.3; python_version >= "3.12" and extra == "all"
33
33
  Requires-Dist: dill==0.3.6; python_version < "3.12" and extra == "all"
34
34
  Requires-Dist: dill==0.4.0; python_version >= "3.12" and extra == "all"
35
- Requires-Dist: protobuf==5.25.9; python_version < "3.12" and extra == "all"
36
- Requires-Dist: protobuf>=5.25.9; python_version >= "3.12" and extra == "all"
35
+ Requires-Dist: protobuf==5.29.5; python_version < "3.12" and extra == "all"
36
+ Requires-Dist: protobuf>=5.29.5; python_version >= "3.12" and extra == "all"
37
37
  Requires-Dist: msal==1.30.0; python_version < "3.12" and extra == "all"
38
38
  Requires-Dist: msal>=1.34.0; python_version >= "3.12" and extra == "all"
39
39
  Requires-Dist: joblib==1.5.2; python_version < "3.12" and extra == "all"
@@ -7,7 +7,7 @@ setuptools==67.6.0
7
7
  [:python_version < "3.12"]
8
8
  numpy==1.26.4
9
9
  dill==0.3.6
10
- protobuf==5.25.9
10
+ protobuf==5.29.5
11
11
  msal==1.30.0
12
12
  joblib==1.5.2
13
13
  plotly==5.13.1
@@ -23,7 +23,7 @@ pandas==2.2.3
23
23
  pandas>=2.3.3
24
24
  numpy>=2.3.3
25
25
  dill==0.4.0
26
- protobuf>=5.25.9
26
+ protobuf>=5.29.5
27
27
  msal>=1.34.0
28
28
  joblib>=1.2.0
29
29
  plotly>=6.3.1
@@ -43,7 +43,7 @@ matplotlib==3.7.1
43
43
  [all:python_version < "3.12"]
44
44
  numpy==1.26.4
45
45
  dill==0.3.6
46
- protobuf==5.25.9
46
+ protobuf==5.29.5
47
47
  msal==1.30.0
48
48
  joblib==1.5.2
49
49
  plotly==5.13.1
@@ -75,7 +75,7 @@ torch==2.7.1
75
75
  pandas>=2.3.3
76
76
  numpy>=2.3.3
77
77
  dill==0.4.0
78
- protobuf>=5.25.9
78
+ protobuf>=5.29.5
79
79
  msal>=1.34.0
80
80
  joblib>=1.2.0
81
81
  plotly>=6.3.1
@@ -1 +0,0 @@
1
- __version__ = "1.3.12"
File without changes
File without changes
File without changes