cognite-toolkit 0.6.80__py3-none-any.whl → 0.6.81__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-toolkit might be problematic. Click here for more details.
- cognite_toolkit/_builtin_modules/cdf.toml +1 -1
- cognite_toolkit/_cdf_tk/apps/_purge.py +4 -3
- cognite_toolkit/_cdf_tk/commands/_purge.py +1 -8
- 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/_resources/cdf.toml +1 -1
- cognite_toolkit/_version.py +1 -1
- {cognite_toolkit-0.6.80.dist-info → cognite_toolkit-0.6.81.dist-info}/METADATA +1 -1
- {cognite_toolkit-0.6.80.dist-info → cognite_toolkit-0.6.81.dist-info}/RECORD +12 -12
- {cognite_toolkit-0.6.80.dist-info → cognite_toolkit-0.6.81.dist-info}/WHEEL +0 -0
- {cognite_toolkit-0.6.80.dist-info → cognite_toolkit-0.6.81.dist-info}/entry_points.txt +0 -0
- {cognite_toolkit-0.6.80.dist-info → cognite_toolkit-0.6.81.dist-info}/licenses/LICENSE +0 -0
|
@@ -16,6 +16,7 @@ from cognite_toolkit._cdf_tk.storageio.selectors import (
|
|
|
16
16
|
SelectedView,
|
|
17
17
|
)
|
|
18
18
|
from cognite_toolkit._cdf_tk.utils.auth import EnvironmentVariables
|
|
19
|
+
from cognite_toolkit._cdf_tk.utils.cli_args import parse_view_str
|
|
19
20
|
from cognite_toolkit._cdf_tk.utils.interactive_select import DataModelingSelect
|
|
20
21
|
|
|
21
22
|
|
|
@@ -191,10 +192,10 @@ class PurgeApp(typer.Typer):
|
|
|
191
192
|
@staticmethod
|
|
192
193
|
def purge_instances(
|
|
193
194
|
view: Annotated[
|
|
194
|
-
|
|
195
|
+
str | None,
|
|
195
196
|
typer.Argument(
|
|
196
197
|
help="Purge instances with properties in the specified view. Expected format is "
|
|
197
|
-
"'space
|
|
198
|
+
"'space:externalId/version'. For example 'cdf_cdm:CogniteTimeSeries/v1' will purge all nodes"
|
|
198
199
|
"that have properties in the CogniteTimeSeries view. If not provided and no "
|
|
199
200
|
"instance list is provided, interactive mode will be used.",
|
|
200
201
|
),
|
|
@@ -291,7 +292,7 @@ class PurgeApp(typer.Typer):
|
|
|
291
292
|
elif instance_list is not None:
|
|
292
293
|
selector = InstanceFileSelector(datafile=instance_list)
|
|
293
294
|
elif view is not None:
|
|
294
|
-
view_id =
|
|
295
|
+
view_id = parse_view_str(view)
|
|
295
296
|
selector = InstanceViewSelector(
|
|
296
297
|
view=SelectedView(
|
|
297
298
|
space=view_id.space, external_id=view_id.external_id, version=cast(str, view_id.version)
|
|
@@ -8,7 +8,7 @@ from typing import Any, cast
|
|
|
8
8
|
import questionary
|
|
9
9
|
from cognite.client.data_classes import AggregateResultItem, DataSetUpdate
|
|
10
10
|
from cognite.client.data_classes._base import CogniteResourceList
|
|
11
|
-
from cognite.client.data_classes.data_modeling import NodeId, NodeList
|
|
11
|
+
from cognite.client.data_classes.data_modeling import NodeId, NodeList
|
|
12
12
|
from cognite.client.exceptions import CogniteAPIError
|
|
13
13
|
from cognite.client.utils._identifier import InstanceId
|
|
14
14
|
from rich import print
|
|
@@ -818,10 +818,3 @@ class PurgeCommand(ToolkitCommand):
|
|
|
818
818
|
elif verbose and files:
|
|
819
819
|
console.print(f"Would have unlinked {len(files)} files from their blob content.")
|
|
820
820
|
return instances
|
|
821
|
-
|
|
822
|
-
@staticmethod
|
|
823
|
-
def get_selected_view_id(view: list[str]) -> ViewId:
|
|
824
|
-
if not (isinstance(view, list) and len(view) == 3):
|
|
825
|
-
raise ToolkitValueError(f"Invalid view format: {view}. Expected format is 'space externalId version'.")
|
|
826
|
-
|
|
827
|
-
return ViewId.load(tuple(view)) # type: ignore[arg-type]
|
cognite_toolkit/_version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "0.6.
|
|
1
|
+
__version__ = "0.6.81"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: cognite_toolkit
|
|
3
|
-
Version: 0.6.
|
|
3
|
+
Version: 0.6.81
|
|
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,9 +1,9 @@
|
|
|
1
1
|
cognite_toolkit/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
2
|
cognite_toolkit/_cdf.py,sha256=1OSAvbOeuIrnsczEG2BtGqRP3L3sq0VMPthmugnqCUw,5821
|
|
3
|
-
cognite_toolkit/_version.py,sha256=
|
|
3
|
+
cognite_toolkit/_version.py,sha256=DPAGF065ghV7UhfpWAzKRrfLdniUZxLxOK89394u27s,23
|
|
4
4
|
cognite_toolkit/_builtin_modules/README.md,sha256=roU3G05E6ogP5yhw4hdIvVDKV831zCh2pzt9BVddtBg,307
|
|
5
5
|
cognite_toolkit/_builtin_modules/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
6
|
-
cognite_toolkit/_builtin_modules/cdf.toml,sha256=
|
|
6
|
+
cognite_toolkit/_builtin_modules/cdf.toml,sha256=wsSYJREZmIIx3ONuIlfeb1gn4m_1f3rJGHxvtcGjcAI,273
|
|
7
7
|
cognite_toolkit/_builtin_modules/packages.toml,sha256=-z_dCOcZwhW86GV6SCB__XzKSQfZcAupGO7JoNB0TZQ,2735
|
|
8
8
|
cognite_toolkit/_builtin_modules/bootcamp/README.md,sha256=iTVqoy3PLpC-xPi5pbuMIAEHILBSfWTGLexwa1AltpY,211
|
|
9
9
|
cognite_toolkit/_builtin_modules/bootcamp/default.config.yaml,sha256=cBKReVJt2ZqFf5nBJl6mod_yo8iqSpXqh_7MQxi692U,94
|
|
@@ -497,7 +497,7 @@ cognite_toolkit/_cdf_tk/apps/_landing_app.py,sha256=tV8hpqxLm2YgqB-TWieheK7ucN-J
|
|
|
497
497
|
cognite_toolkit/_cdf_tk/apps/_migrate_app.py,sha256=xkXo1h3eQ14D5uQ0qQdq01etS1FV_fg6ZnvxMt8H-os,30580
|
|
498
498
|
cognite_toolkit/_cdf_tk/apps/_modules_app.py,sha256=95_H2zccRJl2mWn0oQ5mjCaEDnG63sPKOkB81IgWcIk,7637
|
|
499
499
|
cognite_toolkit/_cdf_tk/apps/_profile_app.py,sha256=vSRJW54bEvIul8_4rOqyOYA7ztXx7TFOvZRZWZTxMbg,7007
|
|
500
|
-
cognite_toolkit/_cdf_tk/apps/_purge.py,sha256=
|
|
500
|
+
cognite_toolkit/_cdf_tk/apps/_purge.py,sha256=ELiHFr-U31HvNq7yij-cXQsaYzRDWgMoa6meN74cZ4k,11768
|
|
501
501
|
cognite_toolkit/_cdf_tk/apps/_repo_app.py,sha256=jOf_s7oUWJqnRyz89JFiSzT2l8GlyQ7wqidHUQavGo0,1455
|
|
502
502
|
cognite_toolkit/_cdf_tk/apps/_run.py,sha256=nJtIu1hG79MgTIH63FovftczlJHMztLk5Y1Z6u4OzSE,8502
|
|
503
503
|
cognite_toolkit/_cdf_tk/apps/_upload_app.py,sha256=OfXRUEoqCWFaZTb-KzuZrVdrAZ_f4DR4Wm1Votbs2W8,2146
|
|
@@ -574,7 +574,7 @@ cognite_toolkit/_cdf_tk/commands/_changes.py,sha256=DIwuiRpDhWBDpsW3R3yqj0eWLAE3
|
|
|
574
574
|
cognite_toolkit/_cdf_tk/commands/_cli_commands.py,sha256=TK6U_rm6VZT_V941kTyHMoulWgJzbDC8YIIQDPJ5x3w,1011
|
|
575
575
|
cognite_toolkit/_cdf_tk/commands/_download.py,sha256=S5WuOAgbZTgU5kXyjqgTzm7e0hN9FI6IYOeQ9U-44Ow,6718
|
|
576
576
|
cognite_toolkit/_cdf_tk/commands/_profile.py,sha256=_4iX3AHAI6eLmRVUlWXCSvVHx1BZW2yDr_i2i9ECg6U,43120
|
|
577
|
-
cognite_toolkit/_cdf_tk/commands/_purge.py,sha256=
|
|
577
|
+
cognite_toolkit/_cdf_tk/commands/_purge.py,sha256=yNkcjMcDHlHkTUyj-YUQuK-7Yc5jDsOUqvEKVy1PyMs,37167
|
|
578
578
|
cognite_toolkit/_cdf_tk/commands/_upload.py,sha256=kXYmP1YMg-JvsuN1iYaMuZH1qZfapya2j-RABGhqGHo,11860
|
|
579
579
|
cognite_toolkit/_cdf_tk/commands/_utils.py,sha256=ARlbqA_5ZWlgN3-xF-zanzSx4B0-9ULnguA5QgHmKGA,1225
|
|
580
580
|
cognite_toolkit/_cdf_tk/commands/_virtual_env.py,sha256=GFAid4hplixmj9_HkcXqU5yCLj-fTXm4cloGD6U2swY,2180
|
|
@@ -761,13 +761,13 @@ cognite_toolkit/_repo_files/.gitignore,sha256=ip9kf9tcC5OguF4YF4JFEApnKYw0nG0vPi
|
|
|
761
761
|
cognite_toolkit/_repo_files/AzureDevOps/.devops/README.md,sha256=OLA0D7yCX2tACpzvkA0IfkgQ4_swSd-OlJ1tYcTBpsA,240
|
|
762
762
|
cognite_toolkit/_repo_files/AzureDevOps/.devops/deploy-pipeline.yml,sha256=brULcs8joAeBC_w_aoWjDDUHs3JheLMIR9ajPUK96nc,693
|
|
763
763
|
cognite_toolkit/_repo_files/AzureDevOps/.devops/dry-run-pipeline.yml,sha256=OBFDhFWK1mlT4Dc6mDUE2Es834l8sAlYG50-5RxRtHk,723
|
|
764
|
-
cognite_toolkit/_repo_files/GitHub/.github/workflows/deploy.yaml,sha256=
|
|
765
|
-
cognite_toolkit/_repo_files/GitHub/.github/workflows/dry-run.yaml,sha256=
|
|
766
|
-
cognite_toolkit/_resources/cdf.toml,sha256=
|
|
764
|
+
cognite_toolkit/_repo_files/GitHub/.github/workflows/deploy.yaml,sha256=DqcjDhaYjY7CohwYQX-AQK1-lvxRHQWnGfZadqsMiKo,667
|
|
765
|
+
cognite_toolkit/_repo_files/GitHub/.github/workflows/dry-run.yaml,sha256=ljKhcf0mmrCoe589XPGr7QsdiM9xOllpLuOQaIVYmJM,2430
|
|
766
|
+
cognite_toolkit/_resources/cdf.toml,sha256=wsSYJREZmIIx3ONuIlfeb1gn4m_1f3rJGHxvtcGjcAI,273
|
|
767
767
|
cognite_toolkit/demo/__init__.py,sha256=-m1JoUiwRhNCL18eJ6t7fZOL7RPfowhCuqhYFtLgrss,72
|
|
768
768
|
cognite_toolkit/demo/_base.py,sha256=6xKBUQpXZXGQ3fJ5f7nj7oT0s2n7OTAGIa17ZlKHZ5U,8052
|
|
769
|
-
cognite_toolkit-0.6.
|
|
770
|
-
cognite_toolkit-0.6.
|
|
771
|
-
cognite_toolkit-0.6.
|
|
772
|
-
cognite_toolkit-0.6.
|
|
773
|
-
cognite_toolkit-0.6.
|
|
769
|
+
cognite_toolkit-0.6.81.dist-info/METADATA,sha256=-TkhaqYPoFGPkI9w2Ht4qn-Z23x7MpT2J689Y80FW8A,4501
|
|
770
|
+
cognite_toolkit-0.6.81.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
771
|
+
cognite_toolkit-0.6.81.dist-info/entry_points.txt,sha256=JlR7MH1_UMogC3QOyN4-1l36VbrCX9xUdQoHGkuJ6-4,83
|
|
772
|
+
cognite_toolkit-0.6.81.dist-info/licenses/LICENSE,sha256=CW0DRcx5tL-pCxLEN7ts2S9g2sLRAsWgHVEX4SN9_Mc,752
|
|
773
|
+
cognite_toolkit-0.6.81.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|