cognite-toolkit 0.5.65__py3-none-any.whl → 0.5.66__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_toolkit/_builtin_modules/cdf.toml +1 -1
- cognite_toolkit/_cdf_tk/client/api/extended_data_modeling.py +9 -3
- cognite_toolkit/_cdf_tk/data_classes/_built_modules.py +1 -1
- cognite_toolkit/_repo_files/GitHub/.github/workflows/deploy.yaml +1 -1
- cognite_toolkit/_repo_files/GitHub/.github/workflows/dry-run.yaml +1 -1
- cognite_toolkit/_version.py +1 -1
- {cognite_toolkit-0.5.65.dist-info → cognite_toolkit-0.5.66.dist-info}/METADATA +1 -1
- {cognite_toolkit-0.5.65.dist-info → cognite_toolkit-0.5.66.dist-info}/RECORD +11 -11
- {cognite_toolkit-0.5.65.dist-info → cognite_toolkit-0.5.66.dist-info}/WHEEL +0 -0
- {cognite_toolkit-0.5.65.dist-info → cognite_toolkit-0.5.66.dist-info}/entry_points.txt +0 -0
- {cognite_toolkit-0.5.65.dist-info → cognite_toolkit-0.5.66.dist-info}/licenses/LICENSE +0 -0
@@ -9,7 +9,7 @@ from cognite.client._api.data_modeling.instances import InstancesAPI
|
|
9
9
|
from cognite.client._api_client import T
|
10
10
|
from cognite.client._cognite_client import ClientConfig, CogniteClient
|
11
11
|
from cognite.client._http_client import HTTPClient, HTTPClientConfig, get_global_requests_session
|
12
|
-
from cognite.client.data_classes.data_modeling import InstanceApply
|
12
|
+
from cognite.client.data_classes.data_modeling import EdgeId, InstanceApply, NodeId
|
13
13
|
from cognite.client.exceptions import CogniteConnectionError, CogniteReadTimeout
|
14
14
|
from cognite.client.utils import _json
|
15
15
|
from cognite.client.utils._concurrency import execute_tasks
|
@@ -97,9 +97,15 @@ class ExtendedInstancesAPI(InstancesAPI):
|
|
97
97
|
executor=ToolkitConcurrencySettings.get_data_modeling_write_executor(),
|
98
98
|
)
|
99
99
|
|
100
|
-
def unwrap_element(el: T) -> InstanceApply | T:
|
100
|
+
def unwrap_element(el: T) -> InstanceApply | NodeId | EdgeId | T:
|
101
101
|
if isinstance(el, dict):
|
102
|
-
|
102
|
+
instance_type = el.get("instanceType")
|
103
|
+
if instance_type == "node":
|
104
|
+
return NodeId.load(el)
|
105
|
+
elif instance_type == "edge":
|
106
|
+
return EdgeId.load(el)
|
107
|
+
else:
|
108
|
+
return InstanceApply._load(el)
|
103
109
|
else:
|
104
110
|
return el
|
105
111
|
|
@@ -96,7 +96,7 @@ class BuiltModuleList(list, MutableSequence[BuiltModule]):
|
|
96
96
|
resources = (
|
97
97
|
resource
|
98
98
|
for resource in resources
|
99
|
-
if (resource.source.path == selected or resource.source.path.is_relative_to(selected))
|
99
|
+
if (resource.source.path == selected or resource.source.path.is_relative_to(selected.absolute()))
|
100
100
|
)
|
101
101
|
if is_supported_file:
|
102
102
|
# This is necessary as the destination file can be created from a source file that is not supported.
|
cognite_toolkit/_version.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = "0.5.
|
1
|
+
__version__ = "0.5.66"
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: cognite_toolkit
|
3
|
-
Version: 0.5.
|
3
|
+
Version: 0.5.66
|
4
4
|
Summary: Official Cognite Data Fusion tool for project templates and configuration deployment
|
5
5
|
Project-URL: Homepage, https://docs.cognite.com/cdf/deploy/cdf_toolkit/
|
6
6
|
Project-URL: Changelog, https://github.com/cognitedata/toolkit/releases
|
@@ -1,10 +1,10 @@
|
|
1
1
|
cognite_toolkit/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
2
|
cognite_toolkit/_cdf.py,sha256=WWMslI-y2VbIYDMH19wnINebGwlOvAeYr-qkPRC1f68,5834
|
3
|
-
cognite_toolkit/_version.py,sha256=
|
3
|
+
cognite_toolkit/_version.py,sha256=2CmY0N_67uBPAIN0MeTQzRzvLTunujXV_GZbpONLHDY,23
|
4
4
|
cognite_toolkit/config.dev.yaml,sha256=CIDmi1OGNOJ-70h2BNCozZRmhvU5BfpZoh6Q04b8iMs,109
|
5
5
|
cognite_toolkit/_builtin_modules/README.md,sha256=roU3G05E6ogP5yhw4hdIvVDKV831zCh2pzt9BVddtBg,307
|
6
6
|
cognite_toolkit/_builtin_modules/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
7
|
-
cognite_toolkit/_builtin_modules/cdf.toml,sha256=
|
7
|
+
cognite_toolkit/_builtin_modules/cdf.toml,sha256=QYjZm-TTtu6DdKDsBnY_ZsDpba_CD9p4fiLHo0E33-o,273
|
8
8
|
cognite_toolkit/_builtin_modules/packages.toml,sha256=RdY44Sxvh6sUtAkgp1dHID1mtqkOTzP_rbZL2Q27fYw,1147
|
9
9
|
cognite_toolkit/_builtin_modules/bootcamp/README.md,sha256=iTVqoy3PLpC-xPi5pbuMIAEHILBSfWTGLexwa1AltpY,211
|
10
10
|
cognite_toolkit/_builtin_modules/bootcamp/default.config.yaml,sha256=MqYTcRiz03bow4LT8E3jumnd_BsqC5SvjgYOVVkHGE0,93
|
@@ -522,7 +522,7 @@ cognite_toolkit/_cdf_tk/client/api_client.py,sha256=CQdD_gfDqQkz5OYHrTnKvBvEvzHP
|
|
522
522
|
cognite_toolkit/_cdf_tk/client/testing.py,sha256=ZHIOBoVpZnTJSw13lZjO31tXa4qtiNwg9B-xVPBvNSQ,3156
|
523
523
|
cognite_toolkit/_cdf_tk/client/api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
524
524
|
cognite_toolkit/_cdf_tk/client/api/dml.py,sha256=8b1lo86JdvfEsz9mP2rx0Mp9fyWsU6mbXHqLBtvSidU,3546
|
525
|
-
cognite_toolkit/_cdf_tk/client/api/extended_data_modeling.py,sha256=
|
525
|
+
cognite_toolkit/_cdf_tk/client/api/extended_data_modeling.py,sha256=PvVReKOiw1i0AZq0pOuq2fsr_tlL9ARb8R521uuPHrs,10734
|
526
526
|
cognite_toolkit/_cdf_tk/client/api/extended_raw.py,sha256=9DVbM2aWmIyzbaW-lh10_pzVYJUEQFnIKnxvt413Bjk,2118
|
527
527
|
cognite_toolkit/_cdf_tk/client/api/extended_timeseries.py,sha256=wi4EzOa6Pup_YKcQ3b3SMvKminJ1kee9-dgYOLwqSQc,17804
|
528
528
|
cognite_toolkit/_cdf_tk/client/api/fixed_transformations.py,sha256=MEC25h_J_fm3wHa-rVJi2V_b5D1Fn3wNapCmIGU2faU,5625
|
@@ -594,7 +594,7 @@ cognite_toolkit/_cdf_tk/data_classes/__init__.py,sha256=Z7ODYLcqrRpo0Cmfx79DDhsA
|
|
594
594
|
cognite_toolkit/_cdf_tk/data_classes/_base.py,sha256=qyXObVP1SX5Lzqy8cYBZssV9NL3v0Q0-y-pLNF1Ok1I,2652
|
595
595
|
cognite_toolkit/_cdf_tk/data_classes/_build_files.py,sha256=Z4jCMLLLP5FvJHQCHh6lUt6SW2xcAND5SHZxrZx0sOo,959
|
596
596
|
cognite_toolkit/_cdf_tk/data_classes/_build_variables.py,sha256=V9Tv1PWoWArC6FMQnmzuQXSwjzOSMaPrZgxrFbESQ8Y,9048
|
597
|
-
cognite_toolkit/_cdf_tk/data_classes/_built_modules.py,sha256=
|
597
|
+
cognite_toolkit/_cdf_tk/data_classes/_built_modules.py,sha256=DO83Q2OpHRpBQ6gmDqaheLmWr5R85XdBS54jgO4cudY,4269
|
598
598
|
cognite_toolkit/_cdf_tk/data_classes/_built_resources.py,sha256=8Re0h54guA4ULJxtlALvobSGbSjBtxQfhl5DGL_HcWY,8486
|
599
599
|
cognite_toolkit/_cdf_tk/data_classes/_config_yaml.py,sha256=acARiVYcPDzQEG-LrFr7OG7fLSocXe8EST_Fdj3bPgo,31366
|
600
600
|
cognite_toolkit/_cdf_tk/data_classes/_deploy_results.py,sha256=BhGvCiuR2LI2DuJaeCLyf9BNE3N8HZZBQtiFmc4UX7s,8629
|
@@ -701,12 +701,12 @@ cognite_toolkit/_repo_files/.gitignore,sha256=3exydcQPCJTldGFJoZy1RPHc1horbAprAo
|
|
701
701
|
cognite_toolkit/_repo_files/AzureDevOps/.devops/README.md,sha256=OLA0D7yCX2tACpzvkA0IfkgQ4_swSd-OlJ1tYcTBpsA,240
|
702
702
|
cognite_toolkit/_repo_files/AzureDevOps/.devops/deploy-pipeline.yml,sha256=KVBxW8urCRDtVlJ6HN-kYmw0NCpW6c4lD-nlxz9tZsQ,692
|
703
703
|
cognite_toolkit/_repo_files/AzureDevOps/.devops/dry-run-pipeline.yml,sha256=Cp4KYraeWPjP8SnnEIbJoJnjmrRUwc982DPjOOzy2iM,722
|
704
|
-
cognite_toolkit/_repo_files/GitHub/.github/workflows/deploy.yaml,sha256=
|
705
|
-
cognite_toolkit/_repo_files/GitHub/.github/workflows/dry-run.yaml,sha256=
|
704
|
+
cognite_toolkit/_repo_files/GitHub/.github/workflows/deploy.yaml,sha256=m0y6ZD54zkK8vmbH26qT9xUVXoZLCZveEzsSudRKz2A,667
|
705
|
+
cognite_toolkit/_repo_files/GitHub/.github/workflows/dry-run.yaml,sha256=nhFw7wi0ZvKFM_i1nwVZFwfktpujY6cMcQ8WYN1IzTk,2430
|
706
706
|
cognite_toolkit/demo/__init__.py,sha256=-m1JoUiwRhNCL18eJ6t7fZOL7RPfowhCuqhYFtLgrss,72
|
707
707
|
cognite_toolkit/demo/_base.py,sha256=63nWYI_MHU5EuPwEX_inEAQxxiD5P6k8IAmlgl4CxpE,8082
|
708
|
-
cognite_toolkit-0.5.
|
709
|
-
cognite_toolkit-0.5.
|
710
|
-
cognite_toolkit-0.5.
|
711
|
-
cognite_toolkit-0.5.
|
712
|
-
cognite_toolkit-0.5.
|
708
|
+
cognite_toolkit-0.5.66.dist-info/METADATA,sha256=1n1srl1eCe8YCRUeIgnWsEi4MO7W2qR-TjYMIvwN4DI,4410
|
709
|
+
cognite_toolkit-0.5.66.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
710
|
+
cognite_toolkit-0.5.66.dist-info/entry_points.txt,sha256=JlR7MH1_UMogC3QOyN4-1l36VbrCX9xUdQoHGkuJ6-4,83
|
711
|
+
cognite_toolkit-0.5.66.dist-info/licenses/LICENSE,sha256=CW0DRcx5tL-pCxLEN7ts2S9g2sLRAsWgHVEX4SN9_Mc,752
|
712
|
+
cognite_toolkit-0.5.66.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|