cognite-neat 1.0.8__py3-none-any.whl → 1.0.9__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.
- cognite/neat/_data_model/deployer/data_classes.py +6 -0
- cognite/neat/_v0/core/_utils/auth.py +11 -1
- cognite/neat/_version.py +1 -1
- {cognite_neat-1.0.8.dist-info → cognite_neat-1.0.9.dist-info}/METADATA +1 -1
- {cognite_neat-1.0.8.dist-info → cognite_neat-1.0.9.dist-info}/RECORD +6 -6
- {cognite_neat-1.0.8.dist-info → cognite_neat-1.0.9.dist-info}/WHEEL +0 -0
|
@@ -86,6 +86,12 @@ class PrimitiveField(FieldChange, ABC):
|
|
|
86
86
|
def severity(self) -> SeverityType:
|
|
87
87
|
return self.item_severity
|
|
88
88
|
|
|
89
|
+
@property
|
|
90
|
+
@abstractmethod
|
|
91
|
+
def description(self) -> str:
|
|
92
|
+
"""Human-readable description of the change."""
|
|
93
|
+
...
|
|
94
|
+
|
|
89
95
|
|
|
90
96
|
class AddedField(PrimitiveField):
|
|
91
97
|
new_value: BaseModelObject | str | int | float | bool | None
|
|
@@ -267,12 +267,22 @@ def _from_dotenv(evn_file: Path) -> EnvironmentVariables:
|
|
|
267
267
|
raise FileNotFoundError(f"{evn_file} does not exist.")
|
|
268
268
|
content = evn_file.read_text()
|
|
269
269
|
valid_variables = {f.name for f in fields(EnvironmentVariables)}
|
|
270
|
-
|
|
270
|
+
int_variables = {"CDF_MAX_WORKERS", "CDF_CLIENT_TIMEOUT", "CDF_REDIRECT_PORT"}
|
|
271
|
+
variables: dict[str, str | int] = {}
|
|
272
|
+
value: str | int
|
|
271
273
|
for line in content.splitlines():
|
|
272
274
|
if line.startswith("#") or "=" not in line:
|
|
273
275
|
continue
|
|
274
276
|
key, value = line.split("=", 1)
|
|
275
277
|
if key in valid_variables:
|
|
278
|
+
if key in int_variables:
|
|
279
|
+
try:
|
|
280
|
+
value = int(value)
|
|
281
|
+
except ValueError as e:
|
|
282
|
+
raise ValueError(
|
|
283
|
+
f"Failed to parse {evn_file.as_posix()!r} file. "
|
|
284
|
+
f"Variable '{key}' must be an integer, but got '{value}'."
|
|
285
|
+
) from e
|
|
276
286
|
variables[key] = value
|
|
277
287
|
return EnvironmentVariables(**variables) # type: ignore[arg-type]
|
|
278
288
|
|
cognite/neat/_version.py
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
__version__ = "1.0.
|
|
1
|
+
__version__ = "1.0.9"
|
|
2
2
|
__engine__ = "^2.0.4"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: cognite-neat
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.9
|
|
4
4
|
Summary: Knowledge graph transformation
|
|
5
5
|
Author: Nikola Vasiljevic, Anders Albert
|
|
6
6
|
Author-email: Nikola Vasiljevic <nikola.vasiljevic@cognite.com>, Anders Albert <anders.albert@cognite.com>
|
|
@@ -21,7 +21,7 @@ cognite/neat/_data_model/deployer/_differ_container.py,sha256=mcy7PhUOfnvAxnZWNo
|
|
|
21
21
|
cognite/neat/_data_model/deployer/_differ_data_model.py,sha256=iA7Xp-7NRvzZJXLLpJaLebkKKpv_VCBKPX6f-RU9wBk,1864
|
|
22
22
|
cognite/neat/_data_model/deployer/_differ_space.py,sha256=J_AaqiseLpwQsOkKc7gmho4U2oSWAGVeEdQNepZiWw0,343
|
|
23
23
|
cognite/neat/_data_model/deployer/_differ_view.py,sha256=g1xHwsoxFUaTOTtQa19nntKF3rxFzc2FxpKKFAUN_NE,11412
|
|
24
|
-
cognite/neat/_data_model/deployer/data_classes.py,sha256=
|
|
24
|
+
cognite/neat/_data_model/deployer/data_classes.py,sha256=1T4Kk9DjYo_wgmFMC--DWq82Ws7F3FqCiNtcRA5C5_4,26916
|
|
25
25
|
cognite/neat/_data_model/deployer/deployer.py,sha256=8W6Zy8MVLaUWRqNlNrP-A1HUJlOMdzpDsyPqClxfyrU,20288
|
|
26
26
|
cognite/neat/_data_model/exporters/__init__.py,sha256=AskjmB_0Vqib4kN84bWt8-M8nO42QypFf-l-E8oA5W8,482
|
|
27
27
|
cognite/neat/_data_model/exporters/_api_exporter.py,sha256=G9cqezy_SH8VdhW4o862qBHh_QcbzfP6O1Yyjvdpeog,1579
|
|
@@ -270,7 +270,7 @@ cognite/neat/_v0/core/_store/_instance.py,sha256=helzPszrD6ti4Efo0IE4fpcUxnQN7AC
|
|
|
270
270
|
cognite/neat/_v0/core/_store/_provenance.py,sha256=3U63x-qvNUv89c_dcKD8Lrbo4BPw-hcdHy8wfBMWn4w,7338
|
|
271
271
|
cognite/neat/_v0/core/_store/exceptions.py,sha256=ypiAiUNGVULAKE6GVcVVjpMscRyY4qjnYDV_k8jnnOk,1672
|
|
272
272
|
cognite/neat/_v0/core/_utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
273
|
-
cognite/neat/_v0/core/_utils/auth.py,sha256=
|
|
273
|
+
cognite/neat/_v0/core/_utils/auth.py,sha256=uaPymyoiaOQ9to-m9e6ALlpI_weEmCNmfshKh3_Y6YI,15312
|
|
274
274
|
cognite/neat/_v0/core/_utils/auxiliary.py,sha256=cUAW3_OT8hYNNoFhcdqEPyaM7TNqTkA0eUzCbCvtaNc,7116
|
|
275
275
|
cognite/neat/_v0/core/_utils/collection_.py,sha256=06avD7NaXOSlM500zmJgwWVM-suDBg-rt5sd6nHKrhA,2384
|
|
276
276
|
cognite/neat/_v0/core/_utils/graph_transformations_report.py,sha256=WRA0JrQmRYwT-2-GwbOR1ZncnNrufXt7j__CP_QRI34,1239
|
|
@@ -315,9 +315,9 @@ cognite/neat/_v0/session/_template.py,sha256=BNcvrW5y7LWzRM1XFxZkfR1Nc7e8UgjBClH
|
|
|
315
315
|
cognite/neat/_v0/session/_to.py,sha256=AnsRSDDdfFyYwSgi0Z-904X7WdLtPfLlR0x1xsu_jAo,19447
|
|
316
316
|
cognite/neat/_v0/session/_wizard.py,sha256=baPJgXAAF3d1bn4nbIzon1gWfJOeS5T43UXRDJEnD3c,1490
|
|
317
317
|
cognite/neat/_v0/session/exceptions.py,sha256=jv52D-SjxGfgqaHR8vnpzo0SOJETIuwbyffSWAxSDJw,3495
|
|
318
|
-
cognite/neat/_version.py,sha256=
|
|
318
|
+
cognite/neat/_version.py,sha256=xkV7Ynbzd3nMdRtl2ZfVZQqTsYCuXajW-2kq0kFsnHI,44
|
|
319
319
|
cognite/neat/legacy.py,sha256=eI2ecxOV8ilGHyLZlN54ve_abtoK34oXognkFv3yvF0,219
|
|
320
320
|
cognite/neat/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
321
|
-
cognite_neat-1.0.
|
|
322
|
-
cognite_neat-1.0.
|
|
323
|
-
cognite_neat-1.0.
|
|
321
|
+
cognite_neat-1.0.9.dist-info/WHEEL,sha256=93kfTGt3a0Dykt_T-gsjtyS5_p8F_d6CE1NwmBOirzo,79
|
|
322
|
+
cognite_neat-1.0.9.dist-info/METADATA,sha256=A0qrxdua5CQ2020BXufsTZgZmveQULmVtfqqBCrMV64,6090
|
|
323
|
+
cognite_neat-1.0.9.dist-info/RECORD,,
|
|
File without changes
|