wizata-dsapi 1.2.20__tar.gz → 1.2.21__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.2.20 → wizata_dsapi-1.2.21}/PKG-INFO +1 -1
  2. {wizata_dsapi-1.2.20 → wizata_dsapi-1.2.21}/wizata_dsapi/datapoint.py +32 -3
  3. {wizata_dsapi-1.2.20 → wizata_dsapi-1.2.21}/wizata_dsapi/template.py +7 -1
  4. wizata_dsapi-1.2.21/wizata_dsapi/version.py +1 -0
  5. {wizata_dsapi-1.2.20 → wizata_dsapi-1.2.21}/wizata_dsapi.egg-info/PKG-INFO +1 -1
  6. wizata_dsapi-1.2.20/wizata_dsapi/version.py +0 -1
  7. {wizata_dsapi-1.2.20 → wizata_dsapi-1.2.21}/LICENSE.txt +0 -0
  8. {wizata_dsapi-1.2.20 → wizata_dsapi-1.2.21}/README.rst +0 -0
  9. {wizata_dsapi-1.2.20 → wizata_dsapi-1.2.21}/setup.cfg +0 -0
  10. {wizata_dsapi-1.2.20 → wizata_dsapi-1.2.21}/setup.py +0 -0
  11. {wizata_dsapi-1.2.20 → wizata_dsapi-1.2.21}/wizata_dsapi/__init__.py +0 -0
  12. {wizata_dsapi-1.2.20 → wizata_dsapi-1.2.21}/wizata_dsapi/api_config.py +0 -0
  13. {wizata_dsapi-1.2.20 → wizata_dsapi-1.2.21}/wizata_dsapi/api_dto.py +0 -0
  14. {wizata_dsapi-1.2.20 → wizata_dsapi-1.2.21}/wizata_dsapi/api_interface.py +0 -0
  15. {wizata_dsapi-1.2.20 → wizata_dsapi-1.2.21}/wizata_dsapi/bucket.py +0 -0
  16. {wizata_dsapi-1.2.20 → wizata_dsapi-1.2.21}/wizata_dsapi/business_label.py +0 -0
  17. {wizata_dsapi-1.2.20 → wizata_dsapi-1.2.21}/wizata_dsapi/context.py +0 -0
  18. {wizata_dsapi-1.2.20 → wizata_dsapi-1.2.21}/wizata_dsapi/dataframe_toolkit.py +0 -0
  19. {wizata_dsapi-1.2.20 → wizata_dsapi-1.2.21}/wizata_dsapi/datastore.py +0 -0
  20. {wizata_dsapi-1.2.20 → wizata_dsapi-1.2.21}/wizata_dsapi/ds_dataframe.py +0 -0
  21. {wizata_dsapi-1.2.20 → wizata_dsapi-1.2.21}/wizata_dsapi/dsapi_json_encoder.py +0 -0
  22. {wizata_dsapi-1.2.20 → wizata_dsapi-1.2.21}/wizata_dsapi/evaluation.py +0 -0
  23. {wizata_dsapi-1.2.20 → wizata_dsapi-1.2.21}/wizata_dsapi/execution.py +0 -0
  24. {wizata_dsapi-1.2.20 → wizata_dsapi-1.2.21}/wizata_dsapi/experiment.py +0 -0
  25. {wizata_dsapi-1.2.20 → wizata_dsapi-1.2.21}/wizata_dsapi/group_system.py +0 -0
  26. {wizata_dsapi-1.2.20 → wizata_dsapi-1.2.21}/wizata_dsapi/ilogger.py +0 -0
  27. {wizata_dsapi-1.2.20 → wizata_dsapi-1.2.21}/wizata_dsapi/insight.py +0 -0
  28. {wizata_dsapi-1.2.20 → wizata_dsapi-1.2.21}/wizata_dsapi/mlmodel.py +0 -0
  29. {wizata_dsapi-1.2.20 → wizata_dsapi-1.2.21}/wizata_dsapi/model_toolkit.py +0 -0
  30. {wizata_dsapi-1.2.20 → wizata_dsapi-1.2.21}/wizata_dsapi/models/__init__.py +0 -0
  31. {wizata_dsapi-1.2.20 → wizata_dsapi-1.2.21}/wizata_dsapi/models/common.py +0 -0
  32. {wizata_dsapi-1.2.20 → wizata_dsapi-1.2.21}/wizata_dsapi/paged_query_result.py +0 -0
  33. {wizata_dsapi-1.2.20 → wizata_dsapi-1.2.21}/wizata_dsapi/pipeline.py +0 -0
  34. {wizata_dsapi-1.2.20 → wizata_dsapi-1.2.21}/wizata_dsapi/pipeline_image.py +0 -0
  35. {wizata_dsapi-1.2.20 → wizata_dsapi-1.2.21}/wizata_dsapi/plot.py +0 -0
  36. {wizata_dsapi-1.2.20 → wizata_dsapi-1.2.21}/wizata_dsapi/plots/__init__.py +0 -0
  37. {wizata_dsapi-1.2.20 → wizata_dsapi-1.2.21}/wizata_dsapi/plots/common.py +0 -0
  38. {wizata_dsapi-1.2.20 → wizata_dsapi-1.2.21}/wizata_dsapi/request.py +0 -0
  39. {wizata_dsapi-1.2.20 → wizata_dsapi-1.2.21}/wizata_dsapi/script.py +0 -0
  40. {wizata_dsapi-1.2.20 → wizata_dsapi-1.2.21}/wizata_dsapi/scripts/__init__.py +0 -0
  41. {wizata_dsapi-1.2.20 → wizata_dsapi-1.2.21}/wizata_dsapi/scripts/common.py +0 -0
  42. {wizata_dsapi-1.2.20 → wizata_dsapi-1.2.21}/wizata_dsapi/solution_component.py +0 -0
  43. {wizata_dsapi-1.2.20 → wizata_dsapi-1.2.21}/wizata_dsapi/streamlit_utils.py +0 -0
  44. {wizata_dsapi-1.2.20 → wizata_dsapi-1.2.21}/wizata_dsapi/trigger.py +0 -0
  45. {wizata_dsapi-1.2.20 → wizata_dsapi-1.2.21}/wizata_dsapi/twin.py +0 -0
  46. {wizata_dsapi-1.2.20 → wizata_dsapi-1.2.21}/wizata_dsapi/twinregistration.py +0 -0
  47. {wizata_dsapi-1.2.20 → wizata_dsapi-1.2.21}/wizata_dsapi/wizard_function.py +0 -0
  48. {wizata_dsapi-1.2.20 → wizata_dsapi-1.2.21}/wizata_dsapi/wizard_request.py +0 -0
  49. {wizata_dsapi-1.2.20 → wizata_dsapi-1.2.21}/wizata_dsapi/wizata_dsapi_client.py +0 -0
  50. {wizata_dsapi-1.2.20 → wizata_dsapi-1.2.21}/wizata_dsapi/words.py +0 -0
  51. {wizata_dsapi-1.2.20 → wizata_dsapi-1.2.21}/wizata_dsapi.egg-info/SOURCES.txt +0 -0
  52. {wizata_dsapi-1.2.20 → wizata_dsapi-1.2.21}/wizata_dsapi.egg-info/dependency_links.txt +0 -0
  53. {wizata_dsapi-1.2.20 → wizata_dsapi-1.2.21}/wizata_dsapi.egg-info/requires.txt +0 -0
  54. {wizata_dsapi-1.2.20 → wizata_dsapi-1.2.21}/wizata_dsapi.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: wizata_dsapi
3
- Version: 1.2.20
3
+ Version: 1.2.21
4
4
  Summary: Wizata Data Science Toolkit
5
5
  Author: Wizata S.A.
6
6
  Author-email: info@wizata.com
@@ -91,12 +91,22 @@ class Unit(ApiDto):
91
91
 
92
92
  def __init__(self,
93
93
  unit_id: uuid.UUID = None,
94
- short_name: str = None):
94
+ short_name: str = None,
95
+ full_name: str = None,
96
+ category_id: uuid.UUID = None,
97
+ is_canonical: bool = False,
98
+ from_canonical: str = None,
99
+ to_canonical: str = None):
95
100
  if unit_id is None:
96
101
  self.unit_id = uuid.uuid4()
97
102
  else:
98
103
  self.unit_id = unit_id
99
104
  self.short_name = short_name
105
+ self.full_name = full_name
106
+ self.category_id = category_id
107
+ self.is_canonical = is_canonical
108
+ self.from_canonical = from_canonical
109
+ self.to_canonical = to_canonical
100
110
 
101
111
  def api_id(self) -> str:
102
112
  return str(self.unit_id).upper()
@@ -113,15 +123,34 @@ class Unit(ApiDto):
113
123
  if "id" in obj.keys():
114
124
  self.unit_id = uuid.UUID(obj["id"])
115
125
 
116
- if "shortName" in obj.keys():
126
+ if "shortName" in obj.keys() and obj["shortName"] is not None:
117
127
  self.short_name = obj["shortName"]
128
+ if "fullName" in obj.keys() and obj["fullName"] is not None:
129
+ self.full_name = obj["fullName"]
130
+ if "isCanonical" in obj.keys() and obj["isCanonical"] is not None:
131
+ self.is_canonical = obj["isCanonical"]
132
+ if "categoryId" in obj.keys() and obj["categoryId"] is not None:
133
+ self.category_id = uuid.UUID(obj["categoryId"])
134
+ if "fromCanonical" in obj.keys() and obj["fromCanonical"] is not None:
135
+ self.from_canonical = obj["fromCanonical"]
136
+ if "toCanonical" in obj.keys() and obj["toCanonical"] is not None:
137
+ self.to_canonical = obj["toCanonical"]
118
138
 
119
139
  def to_json(self, target: str = None):
120
140
  obj = {
121
- "id": str(self.unit_id)
141
+ "id": str(self.unit_id),
142
+ "isCanonical": self.is_canonical
122
143
  }
123
144
  if self.short_name is not None and self.short_name != '':
124
145
  obj["shortName"] = self.short_name
146
+ if self.short_name is not None and self.short_name != '':
147
+ obj["fullName"] = self.short_name
148
+ if self.category_id is not None:
149
+ obj["categoryId"] = str(self.category_id)
150
+ if self.from_canonical is not None and self.from_canonical != '':
151
+ obj["fromCanonical"] = self.from_canonical
152
+ if self.to_canonical is not None and self.to_canonical != '':
153
+ obj["toCanonical"] = self.to_canonical
125
154
  return obj
126
155
 
127
156
 
@@ -36,7 +36,8 @@ class TemplateProperty(ApiDto):
36
36
  description: str = None,
37
37
  p_type: VarType = None,
38
38
  required: bool = True,
39
- template_id: uuid.UUID = None):
39
+ template_id: uuid.UUID = None,
40
+ unit_id: uuid.UUID = None):
40
41
  if template_property_id is None:
41
42
  self.template_property_id = uuid.uuid4()
42
43
  else:
@@ -46,6 +47,7 @@ class TemplateProperty(ApiDto):
46
47
  self.name = name
47
48
  self.p_type = p_type
48
49
  self.required = required
50
+ self.unit_id = unit_id
49
51
  self.createdById = None
50
52
  self.createdDate = None
51
53
  self.updatedById = None
@@ -82,6 +84,8 @@ class TemplateProperty(ApiDto):
82
84
  self.updatedById = obj["updatedById"]
83
85
  if "updatedDate" in obj.keys() and obj["updatedDate"] is not None:
84
86
  self.updatedDate = obj["updatedDate"]
87
+ if "unitId" in obj.keys() and obj["unitId"] is not None:
88
+ self.unit_id = uuid.UUID(obj["unitId"])
85
89
 
86
90
  def to_json(self, target: str = None):
87
91
  obj = {
@@ -99,6 +103,8 @@ class TemplateProperty(ApiDto):
99
103
  obj["required"] = self.required
100
104
  if self.template_id is not None:
101
105
  obj["templateId"] = str(self.template_id)
106
+ if self.unit_id is not None:
107
+ obj["unitId"] = str(self.unit_id)
102
108
  if self.createdById is not None:
103
109
  obj["createdById"] = str(self.createdById)
104
110
  if self.createdDate is not None:
@@ -0,0 +1 @@
1
+ __version__ = "1.2.21"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: wizata-dsapi
3
- Version: 1.2.20
3
+ Version: 1.2.21
4
4
  Summary: Wizata Data Science Toolkit
5
5
  Author: Wizata S.A.
6
6
  Author-email: info@wizata.com
@@ -1 +0,0 @@
1
- __version__ = "1.2.20"
File without changes
File without changes
File without changes
File without changes