cognite-neat 0.87.3__py3-none-any.whl → 0.87.4__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.

Potentially problematic release.


This version of cognite-neat might be problematic. Click here for more details.

cognite/neat/_version.py CHANGED
@@ -1 +1 @@
1
- __version__ = "0.87.3"
1
+ __version__ = "0.87.4"
@@ -346,6 +346,7 @@ class DMSImporter(BaseImporter):
346
346
  value_type=value_type,
347
347
  is_list=self._get_is_list(prop),
348
348
  nullable=self._get_nullable(prop),
349
+ immutable=self._get_immutable(prop),
349
350
  default=self._get_default(prop),
350
351
  container=ContainerEntity.from_id(prop.container) if isinstance(prop, dm.MappedPropertyApply) else None,
351
352
  container_property=prop.container_property_identifier if isinstance(prop, dm.MappedPropertyApply) else None,
@@ -402,6 +403,12 @@ class DMSImporter(BaseImporter):
402
403
  else:
403
404
  return None
404
405
 
406
+ def _get_immutable(self, prop: ViewPropertyApply) -> bool | None:
407
+ if isinstance(prop, dm.MappedPropertyApply):
408
+ return self._container_prop_unsafe(prop).immutable
409
+ else:
410
+ return None
411
+
405
412
  def _get_is_list(self, prop: ViewPropertyApply) -> bool | None:
406
413
  if isinstance(prop, dm.MappedPropertyApply):
407
414
  prop_type = self._container_prop_unsafe(prop).type
@@ -290,7 +290,9 @@ class _DMSExporter:
290
290
  type_ = type_cls()
291
291
  container.properties[prop.container_property] = dm.ContainerProperty(
292
292
  type=type_,
293
+ # If not set, nullable is True and immutable is False
293
294
  nullable=prop.nullable if prop.nullable is not None else True,
295
+ immutable=prop.immutable if prop.immutable is not None else False,
294
296
  default_value=prop.default,
295
297
  name=prop.name,
296
298
  description=prop.description,
@@ -177,6 +177,7 @@ class DMSProperty(SheetEntity):
177
177
  connection: Literal["direct", "edge", "reverse"] | None = Field(None, alias="Connection")
178
178
  value_type: DataType | ViewPropertyEntity | ViewEntity | DMSUnknownEntity = Field(alias="Value Type")
179
179
  nullable: bool | None = Field(default=None, alias="Nullable")
180
+ immutable: bool | None = Field(default=None, alias="Immutable")
180
181
  is_list: bool | None = Field(default=None, alias="Is List")
181
182
  default: str | int | dict | None = Field(None, alias="Default")
182
183
  reference: URLEntity | ReferenceEntity | None = Field(default=None, alias="Reference", union_mode="left_to_right")
@@ -78,6 +78,7 @@ class DMSPropertyInput:
78
78
  description: str | None = None
79
79
  connection: Literal["direct", "edge", "reverse"] | None = None
80
80
  nullable: bool | None = None
81
+ immutable: bool | None = None
81
82
  is_list: bool | None = None
82
83
  default: str | int | dict | None = None
83
84
  reference: str | None = None
@@ -119,6 +120,7 @@ class DMSPropertyInput:
119
120
  description=data.get("description"),
120
121
  connection=data.get("connection"),
121
122
  nullable=data.get("nullable"),
123
+ immutable=data.get("immutable"),
122
124
  is_list=data.get("is_list"),
123
125
  default=data.get("default"),
124
126
  reference=data.get("reference"),
@@ -154,6 +156,7 @@ class DMSPropertyInput:
154
156
  "Description": self.description,
155
157
  "Connection": self.connection,
156
158
  "Nullable": self.nullable,
159
+ "Immutable": self.immutable,
157
160
  "Is List": self.is_list,
158
161
  "Default": self.default,
159
162
  "Reference": self.reference,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cognite-neat
3
- Version: 0.87.3
3
+ Version: 0.87.4
4
4
  Summary: Knowledge graph transformation
5
5
  Home-page: https://cognite-neat.readthedocs-hosted.com/
6
6
  License: Apache-2.0
@@ -1,6 +1,6 @@
1
1
  cognite/neat/__init__.py,sha256=AiexNcHdAHFbrrbo9c65gtil1dqx_SGraDH1PSsXjKE,126
2
2
  cognite/neat/_shared.py,sha256=RSaHm2eJceTlvb-hMMe4nHgoHdPYDfN3XcxDXo24k3A,1530
3
- cognite/neat/_version.py,sha256=3v-UA6wOjR8iz4XHC5-uiPeVNKlUaUCf6XCUN-gr2NI,23
3
+ cognite/neat/_version.py,sha256=OfryV3sOjTF59UqStdnBWEoxVFY6XvFYyQtNvH5uSf8,23
4
4
  cognite/neat/app/api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
5
  cognite/neat/app/api/asgi/metrics.py,sha256=nxFy7L5cChTI0a-zkCiJ59Aq8yLuIJp5c9Dg0wRXtV0,152
6
6
  cognite/neat/app/api/configuration.py,sha256=L1DCtLZ1HZku8I2z-JWd5RDsXhIsboFsKwAMhkrm-bY,3600
@@ -199,7 +199,7 @@ cognite/neat/rules/exporters/_rules2yaml.py,sha256=GA8eUYRxUfIU6IMvlyGO5JidkOD5e
199
199
  cognite/neat/rules/exporters/_validation.py,sha256=OlKIyf4nhSDehJwFHDQ8Zdf6HpNfW7dSe2s67eywHu4,4078
200
200
  cognite/neat/rules/importers/__init__.py,sha256=Vxl2Iq1dMXUsI6Wb411xPI3rromdq50xZUci-S8faSw,1097
201
201
  cognite/neat/rules/importers/_base.py,sha256=EgXF2pmJ90LbmFs5rAMwh151wGX3PGkhTTF6rC-DzOg,4510
202
- cognite/neat/rules/importers/_dms2rules.py,sha256=tCDzeieIDSQhI2krcOYOyqlA1LNMzo6W__p4Fecbc7U,19470
202
+ cognite/neat/rules/importers/_dms2rules.py,sha256=Bk9vJT9Tdei2OE_1HaaFYjitBFp0omyGuqIQEblF_IE,19744
203
203
  cognite/neat/rules/importers/_dtdl2rules/__init__.py,sha256=CNR-sUihs2mnR1bPMKs3j3L4ds3vFTsrl6YycExZTfU,68
204
204
  cognite/neat/rules/importers/_dtdl2rules/_unit_lookup.py,sha256=wW4saKva61Q_i17guY0dc4OseJDQfqHy_QZBtm0OD6g,12134
205
205
  cognite/neat/rules/importers/_dtdl2rules/dtdl_converter.py,sha256=5ee8bD4iJ3Ndhx_S234XBCuBHxYjFkJnWiwnZwbTrXs,12432
@@ -237,9 +237,9 @@ cognite/neat/rules/models/asset/_validation.py,sha256=7P46ksX2jkLbexfHX0ocYijFcx
237
237
  cognite/neat/rules/models/data_types.py,sha256=mHTjWh47VzLwrr0w6dRf59LW7pTTGRTgsxvtW9p0JWw,6020
238
238
  cognite/neat/rules/models/dms/__init__.py,sha256=Wzyqzz2ZIjpUbDg04CMuuIAw-f2A02DayNeqO9R-2Hw,491
239
239
  cognite/neat/rules/models/dms/_converter.py,sha256=2qiMsFKwVBi4K6ZnJPajUEtVSGYg_Wof1yGZLNMWrZ4,5869
240
- cognite/neat/rules/models/dms/_exporter.py,sha256=JrT04hWqxWSLGnCMju9EIxn63hHcC-Mjx9S27hQR604,25042
241
- cognite/neat/rules/models/dms/_rules.py,sha256=pYWyS9E1hoceeU-nvKt6JsgPZYyHnW3JedI7wo-sIXg,20148
242
- cognite/neat/rules/models/dms/_rules_input.py,sha256=M5AqwW-p6z_qAum-1HE_lmONSmg-vF1ak7Y_AiM8vnU,13525
240
+ cognite/neat/rules/models/dms/_exporter.py,sha256=YfJXW4lTD9YZVq6-YBhzK9U83l9SMV-Pq-40rLGOTTc,25203
241
+ cognite/neat/rules/models/dms/_rules.py,sha256=9sXEnx6Djy_uVagKn1j6WDGXNIGSmfFsLIJOWT6S6M0,20216
242
+ cognite/neat/rules/models/dms/_rules_input.py,sha256=bGarQoDNZmBuSZh_l7ARsZH86_hVWmlX73GmyOI3zGE,13645
243
243
  cognite/neat/rules/models/dms/_schema.py,sha256=WmF4ektkA9LhHiz9QuQEx0fuxXyxeSsllpqQMkz2Epo,49523
244
244
  cognite/neat/rules/models/dms/_serializer.py,sha256=iqp2zyyf8jEcU-R3PERuN8nu248xIqyxiWj4owAn92g,6406
245
245
  cognite/neat/rules/models/dms/_validation.py,sha256=5mk9L99FSwC8Ok7weEjnFJ_OZnmqMWUc6XFMTfkqfDw,14549
@@ -312,8 +312,8 @@ cognite/neat/workflows/steps_registry.py,sha256=fkTX14ZA7_gkUYfWIlx7A1XbCidvqR23
312
312
  cognite/neat/workflows/tasks.py,sha256=dqlJwKAb0jlkl7abbY8RRz3m7MT4SK8-7cntMWkOYjw,788
313
313
  cognite/neat/workflows/triggers.py,sha256=_BLNplzoz0iic367u1mhHMHiUrCwP-SLK6_CZzfODX0,7071
314
314
  cognite/neat/workflows/utils.py,sha256=gKdy3RLG7ctRhbCRwaDIWpL9Mi98zm56-d4jfHDqP1E,453
315
- cognite_neat-0.87.3.dist-info/LICENSE,sha256=W8VmvFia4WHa3Gqxq1Ygrq85McUNqIGDVgtdvzT-XqA,11351
316
- cognite_neat-0.87.3.dist-info/METADATA,sha256=XOSvfzE9pNsNl2d6VybR5JybtudHo614LtOdlz_Jf18,9493
317
- cognite_neat-0.87.3.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
318
- cognite_neat-0.87.3.dist-info/entry_points.txt,sha256=61FPqiWb25vbqB0KI7znG8nsg_ibLHBvTjYnkPvNFso,50
319
- cognite_neat-0.87.3.dist-info/RECORD,,
315
+ cognite_neat-0.87.4.dist-info/LICENSE,sha256=W8VmvFia4WHa3Gqxq1Ygrq85McUNqIGDVgtdvzT-XqA,11351
316
+ cognite_neat-0.87.4.dist-info/METADATA,sha256=VUyUs_uMSEbsqFItp0nDp27QBGmx_MWYjaqWtgf-_1A,9493
317
+ cognite_neat-0.87.4.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
318
+ cognite_neat-0.87.4.dist-info/entry_points.txt,sha256=61FPqiWb25vbqB0KI7znG8nsg_ibLHBvTjYnkPvNFso,50
319
+ cognite_neat-0.87.4.dist-info/RECORD,,