wizata-dsapi 1.3.52__py3-none-any.whl → 1.3.54__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.
wizata_dsapi/__init__.py CHANGED
@@ -1,6 +1,6 @@
1
1
  # Api Entities (Dto)
2
2
  from .version import __version__
3
- from .api_dto import ApiDto, VarType
3
+ from .api_dto import ApiDto, VarType, HAS_TORCH
4
4
  from .paged_query_result import PagedQueryResult
5
5
  from .plot import Plot
6
6
  from .mlmodel import ModelInfo, ModelList, MLModelConfig, ModelFile, ModelIdentifierInfo
wizata_dsapi/api_dto.py CHANGED
@@ -1,5 +1,13 @@
1
1
  import uuid
2
2
  from enum import Enum
3
+ import sys
4
+ import importlib.util
5
+
6
+
7
+ HAS_TORCH = (
8
+ sys.version_info >= (3, 11)
9
+ and importlib.util.find_spec("torch") is not None
10
+ )
3
11
 
4
12
 
5
13
  class ApiDtoInterface:
wizata_dsapi/mlmodel.py CHANGED
@@ -279,7 +279,7 @@ class ModelInfo:
279
279
  if "twin_hardware_id" in obj.keys():
280
280
  self.twin_hardware_id = obj["twin_hardware_id"]
281
281
  if "property_value" in obj.keys():
282
- self.property_name = obj["property_value"]
282
+ self.property_value = obj["property_value"]
283
283
  if "alias" in obj.keys():
284
284
  self.alias = obj["alias"]
285
285
  if "model_type" in obj.keys():
wizata_dsapi/pipeline.py CHANGED
@@ -5,7 +5,7 @@ import sys
5
5
  import pandas
6
6
  import wizata_dsapi
7
7
 
8
- from .api_dto import ApiDto, VarType
8
+ from .api_dto import ApiDto, VarType, HAS_TORCH
9
9
  from .script import ScriptConfig, Script
10
10
  from .request import Request
11
11
  from .mlmodel import MLModelConfig
@@ -187,9 +187,7 @@ class PipelineIO(ApiDto):
187
187
  except Exception as e:
188
188
  raise RuntimeError(f'not able to prepare your dataframe following Pipeline I/O directives {e}')
189
189
 
190
- if sys.version_info >= (3, 11):
191
-
192
- ## with torch support
190
+ if HAS_TORCH:
193
191
  import torch
194
192
  from typing import Union
195
193
 
@@ -201,8 +199,6 @@ class PipelineIO(ApiDto):
201
199
  return self._prepare_df(df)
202
200
 
203
201
  else:
204
-
205
- ## without torch support
206
202
  def prepare(self, df: pandas.DataFrame) -> pandas.DataFrame:
207
203
  return self._prepare_df(df)
208
204
 
wizata_dsapi/version.py CHANGED
@@ -1 +1 @@
1
- __version__ = "1.3.52"
1
+ __version__ = "1.3.54"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: wizata_dsapi
3
- Version: 1.3.52
3
+ Version: 1.3.54
4
4
  Summary: Wizata Data Science Toolkit
5
5
  Author: Wizata S.A.
6
6
  Author-email: info@wizata.com
@@ -1,6 +1,6 @@
1
- wizata_dsapi/__init__.py,sha256=aVeizk2zzmAX0TLNG9o7vcmG8KB73XiXw1_qozrJN2w,2072
1
+ wizata_dsapi/__init__.py,sha256=26k78tClDcFt0s2k8OTW5CHLNkPGvp0iOlbQGbZPzrw,2083
2
2
  wizata_dsapi/api_config.py,sha256=lrjUOKnGBYgjSqvXdTf4gEcf-luTSV6DPdo3AbmIExU,5404
3
- wizata_dsapi/api_dto.py,sha256=zyzj6-Kcxi59vVAvThfsuq7RLUE2O_FZ3TJ5LpKYPbE,2310
3
+ wizata_dsapi/api_dto.py,sha256=20c-ry3kkZ2tlAi4sDvIAFtzqnO9bY9J1JXNS5xNcF8,2447
4
4
  wizata_dsapi/api_interface.py,sha256=ju3Wz1e2uOS1_SrSihc0AECkWLRNNGHMhpMhV2L6tjo,13315
5
5
  wizata_dsapi/bucket.py,sha256=Zz9olv-pymikAutGitSuGWrAPiawOTW86JDDHG4ugTc,1150
6
6
  wizata_dsapi/business_label.py,sha256=u0TVfUNfoR9qSv8lzpf6rNjlg3G9xTiz6itefcKfeak,4151
@@ -16,10 +16,10 @@ wizata_dsapi/experiment.py,sha256=QYQ1CJ-MTWsXq08xYbm5sAp95dRxbPOmGDgaAOoBMDQ,46
16
16
  wizata_dsapi/group_system.py,sha256=6rUKe0_J3YWACysyBlzuw_TEpKNXgLOMxhpWsNxOzwY,1708
17
17
  wizata_dsapi/ilogger.py,sha256=iYnID-Z-qrYhie26C43404aIuU4_tHSKXbDeQIdo82Q,807
18
18
  wizata_dsapi/insight.py,sha256=ABFZ04DqYxxzqAEfU1tzlTZqqrigM-zN-8Lbetko3g0,6468
19
- wizata_dsapi/mlmodel.py,sha256=YpnzTHUfRwuVdOO3IwhsLWHlIE0UH8nrY9ga73Gp_pE,25955
19
+ wizata_dsapi/mlmodel.py,sha256=sslK_YBmfhsRKNvGVFBD_v_8HY1zL19-jxBMGoTT_ag,25956
20
20
  wizata_dsapi/model_toolkit.py,sha256=UNyw5CFSgZeXydQFsiDIRTjoMeqIsdyIIuiwumLW5bA,1574
21
21
  wizata_dsapi/paged_query_result.py,sha256=0Iyt2Kd4tvrfthhT-tk9EmSERsbJTaPNON2euHcBn6k,1150
22
- wizata_dsapi/pipeline.py,sha256=CtB6-HwJ2OtqUIbwAVTcawLmvYfudgIwGiPZARwTobM,31778
22
+ wizata_dsapi/pipeline.py,sha256=oSWgXb2e-VRbTKxV7rtcJZg-YxaBIS5YZ59qBexbgAg,31706
23
23
  wizata_dsapi/pipeline_deployment.py,sha256=grekBaxUK0EhL9w7lDB8vNuW_wzLnHVm9Mq8Lkbkguk,1722
24
24
  wizata_dsapi/pipeline_image.py,sha256=4DhDo1SYftN6QcNbehNbM86VTD6EYGmtlcOmE5DP5Vc,6330
25
25
  wizata_dsapi/plot.py,sha256=SPGKFWWYNcRvHcqvvnPIIIBKsd5UwhdsxLW7b2dG2rs,2360
@@ -31,7 +31,7 @@ wizata_dsapi/template.py,sha256=wtCRKKk3PchH4RrNgNYlEF_9C6bzZwKIeLyEvgv6Fdo,1370
31
31
  wizata_dsapi/trigger.py,sha256=w3BZYP-L3SUwvaT0oCTanh_Ewn57peZvlt7vxzHv9J8,5129
32
32
  wizata_dsapi/twin.py,sha256=S0DUzQf1smZXZTdXpXZPtkZYCfKIhw53EecCnsl9i4Q,11017
33
33
  wizata_dsapi/twinregistration.py,sha256=Mi6-YuwroiEXc0c1hgrOaphh4hNVoHupxOnXedVtJtE,13377
34
- wizata_dsapi/version.py,sha256=i_aaGGVP6h609A_Ilpw5Fdf-AzhbduvkXDsxAJBHyB0,23
34
+ wizata_dsapi/version.py,sha256=4ZkGPSh976rVLR88lnRrIJur-RuoRDVcPmJzxaQXAHE,23
35
35
  wizata_dsapi/wizard_function.py,sha256=RbM7W7Gf-6Rhp_1dU9DBYkHaciknGAGvuAndhAS_vyo,942
36
36
  wizata_dsapi/wizard_request.py,sha256=v6BaqKLKvTWmUSo0_gda9FabAQz5x_-GOH1Av50GzFo,3762
37
37
  wizata_dsapi/wizata_dsapi_client.py,sha256=PUFOt5b9OOBEjlgUgA4FtdtJyORzZ2eRv4VfWW4uH7E,84724
@@ -42,8 +42,8 @@ wizata_dsapi/plots/__init__.py,sha256=qgnSFqrjOPur-807M8uh5awIfjM1ZHXUXcAqHc-r2l
42
42
  wizata_dsapi/plots/common.py,sha256=jdPsJqLHBwSKc6dX83BSGPqSRxzIVNHSYO5yI_8sjGk,6568
43
43
  wizata_dsapi/scripts/__init__.py,sha256=hAxiETSQf0qOHde1si1tEAJU48seqEgHrchCzS2-LvQ,80
44
44
  wizata_dsapi/scripts/common.py,sha256=efwq-Rd0lvYljIs3gSFz9izogBD7asOU2cTK-IvHTkM,4244
45
- wizata_dsapi-1.3.52.dist-info/licenses/LICENSE.txt,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
46
- wizata_dsapi-1.3.52.dist-info/METADATA,sha256=Fq3yYvma2CbaX5-4IJKWNN2GIhonXKwiYKadHTNpNq0,4955
47
- wizata_dsapi-1.3.52.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
48
- wizata_dsapi-1.3.52.dist-info/top_level.txt,sha256=-OeTJbEnh5DuWyTOHtvw0Dw3LRg3G27TNS6W4ZtfwPs,13
49
- wizata_dsapi-1.3.52.dist-info/RECORD,,
45
+ wizata_dsapi-1.3.54.dist-info/licenses/LICENSE.txt,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
46
+ wizata_dsapi-1.3.54.dist-info/METADATA,sha256=oSUDUet2DbWTyieNEXQ5FGgemg6YgOTrbb952snc2iE,4955
47
+ wizata_dsapi-1.3.54.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
48
+ wizata_dsapi-1.3.54.dist-info/top_level.txt,sha256=-OeTJbEnh5DuWyTOHtvw0Dw3LRg3G27TNS6W4ZtfwPs,13
49
+ wizata_dsapi-1.3.54.dist-info/RECORD,,