cognite-neat 0.119.5__py3-none-any.whl → 0.119.7__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.
@@ -253,7 +253,7 @@ class NeatSession:
253
253
  if not last_entity.dms:
254
254
  return merged_info, None
255
255
 
256
- extra_dms = InformationToDMS(reserved_properties="warning").transform(extra_info)
256
+ extra_dms = InformationToDMS(reserved_properties="warning", client=self._state.client).transform(extra_info)
257
257
 
258
258
  merged_dms = MergeDMSRules(extra_dms).transform(last_entity.dms)
259
259
  return merged_info, merged_dms
@@ -48,7 +48,7 @@ class SetAPI:
48
48
  "Cannot change the data model ID of a Cognite Data Model in NeatSession"
49
49
  " due to temporarily issue with the reverse direct relation interpretation"
50
50
  )
51
- return self._state.rule_transform(SetIDDMSModel(new_model_id))
51
+ return self._state.rule_transform(SetIDDMSModel(new_model_id, name))
52
52
 
53
53
  def client(self, client: CogniteClient) -> None:
54
54
  """Sets the client to be used in the session."""
@@ -1,6 +1,5 @@
1
1
  import warnings
2
2
  import zipfile
3
- from collections.abc import Collection
4
3
  from pathlib import Path
5
4
  from typing import Any, Literal, cast, overload
6
5
 
@@ -15,7 +14,6 @@ from cognite.neat._issues import IssueList, NeatIssue, catch_issues
15
14
  from cognite.neat._rules import exporters
16
15
  from cognite.neat._rules._constants import PATTERNS
17
16
  from cognite.neat._rules._shared import VerifiedRules
18
- from cognite.neat._rules.exporters._rules2dms import Component
19
17
  from cognite.neat._rules.importers import DMSImporter
20
18
  from cognite.neat._rules.models import DMSRules, InformationRules
21
19
  from cognite.neat._rules.models.dms import DMSMetadata
@@ -348,7 +346,6 @@ class CDFToAPI:
348
346
  existing: Literal["fail", "skip", "update", "force", "recreate"] = "update",
349
347
  dry_run: bool = False,
350
348
  drop_data: bool = False,
351
- components: Component | Collection[Component] | None = None,
352
349
  ) -> UploadResultList:
353
350
  """Export the verified DMS data model to CDF.
354
351
 
@@ -359,7 +356,6 @@ class CDFToAPI:
359
356
  drop_data: If existing is 'force' or 'recreate' and the operation will lead to data loss,
360
357
  the component will be skipped unless drop_data is True. Defaults to False.
361
358
  Note this only applies to spaces and containers if they contain data.
362
- components: The components to export. If None, all components will be exported. Defaults to None.
363
359
 
364
360
  !!! note "Data Model creation modes"
365
361
  - "fail": If any component already exists, the export will fail.
@@ -377,7 +373,7 @@ class CDFToAPI:
377
373
  client_required=True,
378
374
  )
379
375
 
380
- exporter = exporters.DMSExporter(existing=existing, export_components=components, drop_data=drop_data)
376
+ exporter = exporters.DMSExporter(existing=existing, drop_data=drop_data)
381
377
 
382
378
  result = self._state.rule_store.export_to_cdf(exporter, cast(NeatClient, self._state.client), dry_run)
383
379
  print("You can inspect the details with the .inspect.outcome.data_model(...) method.")
cognite/neat/_version.py CHANGED
@@ -1,2 +1,2 @@
1
- __version__ = "0.119.5"
1
+ __version__ = "0.119.7"
2
2
  __engine__ = "^2.0.4"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: cognite-neat
3
- Version: 0.119.5
3
+ Version: 0.119.7
4
4
  Summary: Knowledge graph transformation
5
5
  License: Apache-2.0
6
6
  Author: Nikola Vasiljevic
@@ -136,7 +136,7 @@ cognite/neat/_rules/transformers/_converters.py,sha256=-veWPRxJJGYBtExSZGlTm3obe
136
136
  cognite/neat/_rules/transformers/_mapping.py,sha256=QVd96vMF9sGailN5hB22KGdmOU8GzFwZ7IPMD0aVCYY,18237
137
137
  cognite/neat/_rules/transformers/_verification.py,sha256=coZjoLqdfS8yrPP62T_xEKrDZc9ETbPWrLuwEVBSLZQ,4370
138
138
  cognite/neat/_session/__init__.py,sha256=fxQ5URVlUnmEGYyB8Baw7IDq-uYacqkigbc4b-Pr9Fw,58
139
- cognite/neat/_session/_base.py,sha256=WrX4g-pf4GnnYpusSoNkmKyjH_IfB9ZWfXw34THMqy0,12344
139
+ cognite/neat/_session/_base.py,sha256=ZYVsT1YlHxc7Tw22n6aAF8tPhVMteRzmnqL50Q-Tdwg,12371
140
140
  cognite/neat/_session/_collector.py,sha256=ipYlwBBgjF53adjDW_D1U39mLEviB3UOVSGgeqHkEuc,4228
141
141
  cognite/neat/_session/_drop.py,sha256=yXCZVL2PdVHffu5x630etuYEa3hBNhsZqhlryZVUkOQ,4181
142
142
  cognite/neat/_session/_explore.py,sha256=KX0_iNRospxhcgC5O2grvbVbRqaDszeZ3AG5SYqjzcM,1589
@@ -145,12 +145,12 @@ cognite/neat/_session/_inspect.py,sha256=qoBAfCQnzC40ef91gxJmhonWo1Kr_VEjBb2KhbC
145
145
  cognite/neat/_session/_mapping.py,sha256=AkQwmqYH-0EgqoXHqCFwJY92hNSGzfojOelhVFlqH4c,2655
146
146
  cognite/neat/_session/_prepare.py,sha256=js4R1ssvWZRUDTDas228HVPGLuRABLHrliTTDNCFLOg,12692
147
147
  cognite/neat/_session/_read.py,sha256=rjQqFU9VzyPSdNmaKaMo-E5em6LZHa3iDAjdvRLX9rI,30193
148
- cognite/neat/_session/_set.py,sha256=a16aKeip7Y3qAhU0AzmJlMaEXe5ifDBXFYq4tXZNanI,4472
148
+ cognite/neat/_session/_set.py,sha256=F7q1FcmJO4FnNfglFvxOP2WxAXSZ42vC3jlqt1nT1xo,4478
149
149
  cognite/neat/_session/_show.py,sha256=9c0eUGtvN6pIX594P6hVofxDwO7lDE-N3A52htJjcv0,10546
150
150
  cognite/neat/_session/_state.py,sha256=6b0BSXm7m5-OcsF_O0A_7ec9tt8oPqH8zHImyEhVQQA,6313
151
151
  cognite/neat/_session/_subset.py,sha256=4RFGC8apNLnRSKcoDh95ksXA7zLy8vGLxEV5U0H3Hoc,2687
152
152
  cognite/neat/_session/_template.py,sha256=__oBxd7Zqd_TxWtEPohu17TxKrgQ_RhpHzx-FOyat_Y,11474
153
- cognite/neat/_session/_to.py,sha256=S7209afgOlLWbsKOA0Z4lAwT57gzLmSDaUWpUaWjJJY,19118
153
+ cognite/neat/_session/_to.py,sha256=OSjlihit_8zxzU7PISzcMQLc4Kr9Vw18tfJb8x2cQkI,18807
154
154
  cognite/neat/_session/_wizard.py,sha256=9idlzhZy54h2Iwupe9iXKX3RDb5jJQuBZFEouni50L0,1476
155
155
  cognite/neat/_session/engine/__init__.py,sha256=D3MxUorEs6-NtgoICqtZ8PISQrjrr4dvca6n48bu_bI,120
156
156
  cognite/neat/_session/engine/_import.py,sha256=1QxA2_EK613lXYAHKQbZyw2yjo5P9XuiX4Z6_6-WMNQ,169
@@ -178,10 +178,10 @@ cognite/neat/_utils/text.py,sha256=9T0mzcNn6J9X8DriNntLN5ThCXOWbU1BYareukbLT7A,8
178
178
  cognite/neat/_utils/time_.py,sha256=7ayUm0OWZm1JDmy32E4ip8WRr2o0GLwrHwJA8sJ43Z4,357
179
179
  cognite/neat/_utils/upload.py,sha256=xWtM6mFuD2QYQHaZ7zCAuGptbEpPIxcH-raWQu93-Ug,5845
180
180
  cognite/neat/_utils/xml_.py,sha256=FQkq84u35MUsnKcL6nTMJ9ajtG9D5i1u4VBnhGqP2DQ,1710
181
- cognite/neat/_version.py,sha256=---AmP6Rh_vM8Z8ASWeDFqVHiOYnYyjEKjcjL9g0IiI,46
181
+ cognite/neat/_version.py,sha256=wZbTCVY8SIzCWpJBek5cFVIAbUrTaPzcewG-vWBtH4g,46
182
182
  cognite/neat/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
183
- cognite_neat-0.119.5.dist-info/LICENSE,sha256=W8VmvFia4WHa3Gqxq1Ygrq85McUNqIGDVgtdvzT-XqA,11351
184
- cognite_neat-0.119.5.dist-info/METADATA,sha256=o3DKY1zdkNtaZBOKDZyCwyYec846isekPUp-ghToGdE,7646
185
- cognite_neat-0.119.5.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
186
- cognite_neat-0.119.5.dist-info/entry_points.txt,sha256=SsQlnl8SNMSSjE3acBI835JYFtsIinLSbVmHmMEXv6E,51
187
- cognite_neat-0.119.5.dist-info/RECORD,,
183
+ cognite_neat-0.119.7.dist-info/LICENSE,sha256=W8VmvFia4WHa3Gqxq1Ygrq85McUNqIGDVgtdvzT-XqA,11351
184
+ cognite_neat-0.119.7.dist-info/METADATA,sha256=M-CuG_vT1cgYgBCQt5jV-n20j5c872-W-mHFbFfGh94,7646
185
+ cognite_neat-0.119.7.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
186
+ cognite_neat-0.119.7.dist-info/entry_points.txt,sha256=SsQlnl8SNMSSjE3acBI835JYFtsIinLSbVmHmMEXv6E,51
187
+ cognite_neat-0.119.7.dist-info/RECORD,,