wizata-dsapi 1.2.19__py3-none-any.whl → 1.2.21__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/datapoint.py +32 -3
- wizata_dsapi/request.py +0 -3
- wizata_dsapi/template.py +7 -1
- wizata_dsapi/version.py +1 -1
- {wizata_dsapi-1.2.19.dist-info → wizata_dsapi-1.2.21.dist-info}/METADATA +1 -1
- {wizata_dsapi-1.2.19.dist-info → wizata_dsapi-1.2.21.dist-info}/RECORD +9 -9
- {wizata_dsapi-1.2.19.dist-info → wizata_dsapi-1.2.21.dist-info}/LICENSE.txt +0 -0
- {wizata_dsapi-1.2.19.dist-info → wizata_dsapi-1.2.21.dist-info}/WHEEL +0 -0
- {wizata_dsapi-1.2.19.dist-info → wizata_dsapi-1.2.21.dist-info}/top_level.txt +0 -0
wizata_dsapi/datapoint.py
CHANGED
|
@@ -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
|
|
wizata_dsapi/request.py
CHANGED
wizata_dsapi/template.py
CHANGED
|
@@ -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:
|
wizata_dsapi/version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "1.2.
|
|
1
|
+
__version__ = "1.2.21"
|
|
@@ -6,7 +6,7 @@ wizata_dsapi/bucket.py,sha256=Zz9olv-pymikAutGitSuGWrAPiawOTW86JDDHG4ugTc,1150
|
|
|
6
6
|
wizata_dsapi/business_label.py,sha256=u0TVfUNfoR9qSv8lzpf6rNjlg3G9xTiz6itefcKfeak,4151
|
|
7
7
|
wizata_dsapi/context.py,sha256=M7hsvXoU0Bn_5ONDB-5VvjriMpno6bAgh0RrJ9Y-h7U,11600
|
|
8
8
|
wizata_dsapi/dataframe_toolkit.py,sha256=22H4SizmhTQ1DNIzd6tg0izgncRDcrdkfGdBO6Vbi5g,9039
|
|
9
|
-
wizata_dsapi/datapoint.py,sha256=
|
|
9
|
+
wizata_dsapi/datapoint.py,sha256=x900Aedrh92NUF03vXzh7rH7Pj1l10vXCSKXDwSNdiU,14268
|
|
10
10
|
wizata_dsapi/datastore.py,sha256=BSHZmCSJ679boBA1eCkaWGJCy1CUeipKKGt2jDHzdVo,2663
|
|
11
11
|
wizata_dsapi/ds_dataframe.py,sha256=Sk2JRUuTRJzko3HosJnbK34STpgSJUlqxLq8w_E5VM4,2089
|
|
12
12
|
wizata_dsapi/dsapi_json_encoder.py,sha256=EhY1NA3-UQJ3HFYYbe7bvXb8NuhOvHVMJvXyGvX_T3k,2772
|
|
@@ -23,15 +23,15 @@ wizata_dsapi/pipeline.py,sha256=WDJeOxPZJiYW1qwTNZUm3jom2epIxqrSoiUwcrTF9EE,3130
|
|
|
23
23
|
wizata_dsapi/pipeline_deployment.py,sha256=grekBaxUK0EhL9w7lDB8vNuW_wzLnHVm9Mq8Lkbkguk,1722
|
|
24
24
|
wizata_dsapi/pipeline_image.py,sha256=M3FOr45dJIAEvsmXPpMD8JZ09k5-YpW9PRYEWJqptcI,5272
|
|
25
25
|
wizata_dsapi/plot.py,sha256=SPGKFWWYNcRvHcqvvnPIIIBKsd5UwhdsxLW7b2dG2rs,2360
|
|
26
|
-
wizata_dsapi/request.py,sha256=
|
|
26
|
+
wizata_dsapi/request.py,sha256=qHh1-DQri2Vh17069fHmLlrF5vjNTvA4jmD6mYjg2w8,26515
|
|
27
27
|
wizata_dsapi/script.py,sha256=DeEciwVpuCYZetgJCoivw_bYe8ma52WuTaTQ_VkLEcg,12930
|
|
28
28
|
wizata_dsapi/solution_component.py,sha256=8gbZWx2h_xUqI_pAXa3goqAnR5Y-GDMii8MeGlaK1IE,9531
|
|
29
29
|
wizata_dsapi/streamlit_utils.py,sha256=sXBdygktbixV828Zg01Nl27_a4F8zGFc4RY0C8g-1bc,1942
|
|
30
|
-
wizata_dsapi/template.py,sha256=
|
|
30
|
+
wizata_dsapi/template.py,sha256=kjfzOgS_ngUMjmptsdmo9xFQp5chEjEuz1xGXW_5FUI,13282
|
|
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=
|
|
34
|
+
wizata_dsapi/version.py,sha256=3uF8dV6igE_qWszFViblw_rtJOgCwoi-rVuWcQrSR0A,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=6URQeMA5A9eXxC2cs8TUbKolmOo-Kj6kII9NmRRITPQ,78702
|
|
@@ -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.2.
|
|
46
|
-
wizata_dsapi-1.2.
|
|
47
|
-
wizata_dsapi-1.2.
|
|
48
|
-
wizata_dsapi-1.2.
|
|
49
|
-
wizata_dsapi-1.2.
|
|
45
|
+
wizata_dsapi-1.2.21.dist-info/LICENSE.txt,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
|
|
46
|
+
wizata_dsapi-1.2.21.dist-info/METADATA,sha256=lt1a6UtgxNFgZocKKPrVih7wiCXlj1YJTwUp6N074nk,2188
|
|
47
|
+
wizata_dsapi-1.2.21.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
|
|
48
|
+
wizata_dsapi-1.2.21.dist-info/top_level.txt,sha256=-OeTJbEnh5DuWyTOHtvw0Dw3LRg3G27TNS6W4ZtfwPs,13
|
|
49
|
+
wizata_dsapi-1.2.21.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|