wizata-dsapi 1.1.46__py3-none-any.whl → 1.1.47__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/twin.py CHANGED
@@ -60,7 +60,7 @@ class Twin(ApiDto):
60
60
 
61
61
  def __init__(self, twin_id=None, hardware_id=None, name=None, parent_id=None, ttype=TwinBlockType.MACHINE,
62
62
  latitude_id: uuid.UUID = None, longitude_id: uuid.UUID = None, color: str = None, icon: str = None,
63
- latitude: float = None, longitude: float = None):
63
+ latitude: float = None, longitude: float = None, description: str = None):
64
64
  if twin_id is None:
65
65
  self.twin_id = uuid.uuid4()
66
66
  else:
@@ -69,6 +69,7 @@ class Twin(ApiDto):
69
69
  self.name = name
70
70
  self.parent_id = parent_id
71
71
  self.type = ttype
72
+ self.description = description
72
73
  self.latitude = latitude
73
74
  self.longitude = longitude
74
75
  self.latitude_id = latitude_id
@@ -110,6 +111,8 @@ class Twin(ApiDto):
110
111
  self.color = str(obj["color"])
111
112
  if "icon" in obj.keys() and obj["icon"] is not None:
112
113
  self.icon = str(obj["icon"])
114
+ if "description" in obj.keys() and obj["description"] is not None:
115
+ self.description = str(obj["description"])
113
116
  if "type" in obj.keys():
114
117
  self.type = TwinBlockType(str(obj["type"]))
115
118
  if "createdById" in obj.keys() and obj["createdById"] is not None:
@@ -135,6 +138,8 @@ class Twin(ApiDto):
135
138
  obj["type"] = self.type.value
136
139
  if self.color is not None:
137
140
  obj["color"] = str(self.color)
141
+ if self.description is not None:
142
+ obj["description"] = str(self.description)
138
143
  if self.latitude is not None:
139
144
  obj["latitude"] = float(self.latitude)
140
145
  if self.longitude is not None:
wizata_dsapi/version.py CHANGED
@@ -1 +1 @@
1
- __version__ = "1.1.46"
1
+ __version__ = "1.1.47"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: wizata-dsapi
3
- Version: 1.1.46
3
+ Version: 1.1.47
4
4
  Summary: Wizata Data Science Toolkit
5
5
  Author: Wizata S.A.
6
6
  Author-email: info@wizata.com
@@ -29,9 +29,9 @@ wizata_dsapi/solution_component.py,sha256=8gbZWx2h_xUqI_pAXa3goqAnR5Y-GDMii8MeGl
29
29
  wizata_dsapi/streamlit_utils.py,sha256=J4g_wBh-SkNe6o9Wt60RrPgFrzay9TrTWFQq81_0k8k,520
30
30
  wizata_dsapi/template.py,sha256=h2f3dLduJ4WhreVxJXuFIB3pinnI3c39WxBms0bCgos,13007
31
31
  wizata_dsapi/trigger.py,sha256=w3BZYP-L3SUwvaT0oCTanh_Ewn57peZvlt7vxzHv9J8,5129
32
- wizata_dsapi/twin.py,sha256=jgzRVUdtAj2vS_OBIF2XYMR7ZqgwbLYUn4NlgfiaPMA,6291
32
+ wizata_dsapi/twin.py,sha256=OFDFg2CsTxOUOVOf6kkDUEK9A3ED7yuPpN9TqodGruo,6581
33
33
  wizata_dsapi/twinregistration.py,sha256=Mi6-YuwroiEXc0c1hgrOaphh4hNVoHupxOnXedVtJtE,13377
34
- wizata_dsapi/version.py,sha256=B6bbxE-KhWYrHfKe2uqs2Ub_LbeGMOCHAM9LZA3Zgn8,23
34
+ wizata_dsapi/version.py,sha256=iUeSKbYGjqNDS60TdIEBJ1H7dKSMf3a2gEwstNNlxig,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=Qz54vYoxRLBUa21Q55K5Oo1qtZpW9ucuXi4BX1N85oE,78716
@@ -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.1.46.dist-info/LICENSE.txt,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
46
- wizata_dsapi-1.1.46.dist-info/METADATA,sha256=XeLG9nS9xM3pgOLqb0bjDR-gCEEBRlI710LRuRtDpX8,2188
47
- wizata_dsapi-1.1.46.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
48
- wizata_dsapi-1.1.46.dist-info/top_level.txt,sha256=-OeTJbEnh5DuWyTOHtvw0Dw3LRg3G27TNS6W4ZtfwPs,13
49
- wizata_dsapi-1.1.46.dist-info/RECORD,,
45
+ wizata_dsapi-1.1.47.dist-info/LICENSE.txt,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
46
+ wizata_dsapi-1.1.47.dist-info/METADATA,sha256=g1jByQVpJoEcAFZE7Tgr1QPwUcaYE3KFO4tuiUFXdGc,2188
47
+ wizata_dsapi-1.1.47.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
48
+ wizata_dsapi-1.1.47.dist-info/top_level.txt,sha256=-OeTJbEnh5DuWyTOHtvw0Dw3LRg3G27TNS6W4ZtfwPs,13
49
+ wizata_dsapi-1.1.47.dist-info/RECORD,,