cognite-toolkit 0.6.117__py3-none-any.whl → 0.7.0__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.
Files changed (29) hide show
  1. cognite_toolkit/_cdf.py +2 -5
  2. cognite_toolkit/_cdf_tk/apps/_core_app.py +3 -6
  3. cognite_toolkit/_cdf_tk/apps/_data_app.py +1 -1
  4. cognite_toolkit/_cdf_tk/apps/_dump_app.py +35 -129
  5. cognite_toolkit/_cdf_tk/apps/_landing_app.py +1 -15
  6. cognite_toolkit/_cdf_tk/apps/_modules_app.py +0 -3
  7. cognite_toolkit/_cdf_tk/apps/_purge.py +15 -43
  8. cognite_toolkit/_cdf_tk/apps/_run.py +1 -3
  9. cognite_toolkit/_cdf_tk/apps/_upload_app.py +10 -2
  10. cognite_toolkit/_cdf_tk/commands/auth.py +0 -11
  11. cognite_toolkit/_cdf_tk/commands/build_cmd.py +5 -7
  12. cognite_toolkit/_cdf_tk/commands/deploy.py +1 -2
  13. cognite_toolkit/_cdf_tk/commands/init.py +2 -6
  14. cognite_toolkit/_cdf_tk/commands/modules.py +1 -2
  15. cognite_toolkit/_cdf_tk/cruds/__init__.py +1 -4
  16. cognite_toolkit/_cdf_tk/cruds/_resource_cruds/function.py +2 -7
  17. cognite_toolkit/_cdf_tk/feature_flags.py +0 -44
  18. cognite_toolkit/_cdf_tk/plugins.py +1 -1
  19. cognite_toolkit/_cdf_tk/resource_classes/functions.py +3 -1
  20. cognite_toolkit/_cdf_tk/storageio/_applications.py +23 -0
  21. cognite_toolkit/_repo_files/GitHub/.github/workflows/deploy.yaml +1 -1
  22. cognite_toolkit/_repo_files/GitHub/.github/workflows/dry-run.yaml +1 -1
  23. cognite_toolkit/_resources/cdf.toml +5 -4
  24. cognite_toolkit/_version.py +1 -1
  25. {cognite_toolkit-0.6.117.dist-info → cognite_toolkit-0.7.0.dist-info}/METADATA +1 -1
  26. {cognite_toolkit-0.6.117.dist-info → cognite_toolkit-0.7.0.dist-info}/RECORD +29 -29
  27. {cognite_toolkit-0.6.117.dist-info → cognite_toolkit-0.7.0.dist-info}/WHEEL +0 -0
  28. {cognite_toolkit-0.6.117.dist-info → cognite_toolkit-0.7.0.dist-info}/entry_points.txt +0 -0
  29. {cognite_toolkit-0.6.117.dist-info → cognite_toolkit-0.7.0.dist-info}/licenses/LICENSE +0 -0
cognite_toolkit/_cdf.py CHANGED
@@ -31,7 +31,6 @@ from cognite_toolkit._cdf_tk.apps import (
31
31
  MigrateApp,
32
32
  ModulesApp,
33
33
  ProfileApp,
34
- PurgeApp,
35
34
  RepoApp,
36
35
  RunApp,
37
36
  )
@@ -99,10 +98,8 @@ if Plugins.run.value.is_enabled():
99
98
  if Plugins.dump.value.is_enabled():
100
99
  _app.add_typer(DumpApp(**default_typer_kws), name="dump")
101
100
 
102
- if Plugins.purge.value.is_enabled() and not Flags.v07.is_enabled():
103
- _app.add_typer(PurgeApp(**default_typer_kws), name="purge")
104
101
 
105
- if Plugins.dev.value.is_enabled() and Flags.v07.is_enabled():
102
+ if Plugins.dev.value.is_enabled():
106
103
  _app.add_typer(DevApp(**default_typer_kws), name="dev")
107
104
 
108
105
  if Flags.PROFILE.is_enabled():
@@ -111,7 +108,7 @@ if Flags.PROFILE.is_enabled():
111
108
  if Flags.MIGRATE.is_enabled():
112
109
  _app.add_typer(MigrateApp(**default_typer_kws), name="migrate")
113
110
 
114
- if Flags.v07.is_enabled():
111
+ if Plugins.data.value.is_enabled():
115
112
  _app.add_typer(DataApp(**default_typer_kws), name="data")
116
113
 
117
114
  _app.add_typer(ModulesApp(**default_typer_kws), name="modules")
@@ -15,7 +15,6 @@ from cognite_toolkit._cdf_tk.client import ToolkitClient
15
15
  from cognite_toolkit._cdf_tk.commands import BuildCommand, CleanCommand, DeployCommand
16
16
  from cognite_toolkit._cdf_tk.commands.clean import AVAILABLE_DATA_TYPES
17
17
  from cognite_toolkit._cdf_tk.exceptions import ToolkitFileNotFoundError
18
- from cognite_toolkit._cdf_tk.feature_flags import Flags
19
18
  from cognite_toolkit._cdf_tk.utils import get_cicd_environment
20
19
  from cognite_toolkit._cdf_tk.utils.auth import EnvironmentVariables
21
20
  from cognite_toolkit._version import __version__ as current_version
@@ -193,7 +192,6 @@ class CoreApp(typer.Typer):
193
192
  "--exit-non-zero-on-warning",
194
193
  "-w",
195
194
  help="Exit with non-zero code on warning.",
196
- hidden=not Flags.EXIT_ON_WARNING.is_enabled(),
197
195
  ),
198
196
  ] = False,
199
197
  ) -> None:
@@ -206,7 +204,7 @@ class CoreApp(typer.Typer):
206
204
  client = EnvironmentVariables.create_from_environment().get_client()
207
205
 
208
206
  print_warning = True
209
- if Flags.EXIT_ON_WARNING.is_enabled() and exit_on_warning:
207
+ if exit_on_warning:
210
208
  print_warning = False
211
209
 
212
210
  cmd = BuildCommand(print_warning=print_warning)
@@ -223,7 +221,7 @@ class CoreApp(typer.Typer):
223
221
  )
224
222
  )
225
223
 
226
- if Flags.EXIT_ON_WARNING.is_enabled() and exit_on_warning and cmd.warning_list:
224
+ if exit_on_warning and cmd.warning_list:
227
225
  print("\n[bold red]Warnings raised during the build process:[/]\n")
228
226
 
229
227
  for warning in cmd.warning_list:
@@ -354,7 +352,6 @@ class CoreApp(typer.Typer):
354
352
  "--module",
355
353
  "-m",
356
354
  help="Specify name or path of the module to clean",
357
- hidden=not Flags.v07.is_enabled(),
358
355
  ),
359
356
  ] = None,
360
357
  verbose: Annotated[
@@ -379,6 +376,6 @@ class CoreApp(typer.Typer):
379
376
  include,
380
377
  module,
381
378
  verbose,
382
- all_modules=True if not Flags.v07.is_enabled() else False,
379
+ all_modules=False,
383
380
  )
384
381
  )
@@ -18,7 +18,7 @@ class DataApp(typer.Typer):
18
18
 
19
19
  @staticmethod
20
20
  def main(ctx: typer.Context) -> None:
21
- """Commands to work with data download/upload/purge."""
21
+ """Plugin to work with data in CDF"""
22
22
  if ctx.invoked_subcommand is None:
23
23
  print("Use [bold yellow]cdf data --help[/] for more information.")
24
24
  return None
@@ -7,13 +7,7 @@ from cognite.client.data_classes.data_modeling import DataModelId, ViewId
7
7
  from rich import print
8
8
 
9
9
  from cognite_toolkit._cdf_tk.client.data_classes.search_config import ViewId as SearchConfigViewId
10
- from cognite_toolkit._cdf_tk.commands import DumpDataCommand, DumpResourceCommand
11
- from cognite_toolkit._cdf_tk.commands.dump_data import (
12
- AssetFinder,
13
- EventFinder,
14
- FileMetadataFinder,
15
- TimeSeriesFinder,
16
- )
10
+ from cognite_toolkit._cdf_tk.commands import DumpResourceCommand
17
11
  from cognite_toolkit._cdf_tk.commands.dump_resource import (
18
12
  AgentFinder,
19
13
  DataModelFinder,
@@ -32,45 +26,32 @@ from cognite_toolkit._cdf_tk.commands.dump_resource import (
32
26
  from cognite_toolkit._cdf_tk.exceptions import ToolkitRequiredValueError
33
27
  from cognite_toolkit._cdf_tk.feature_flags import Flags
34
28
  from cognite_toolkit._cdf_tk.utils.auth import EnvironmentVariables
35
- from cognite_toolkit._cdf_tk.utils.interactive_select import (
36
- AssetInteractiveSelect,
37
- EventInteractiveSelect,
38
- FileMetadataInteractiveSelect,
39
- TimeSeriesInteractiveSelect,
40
- )
41
29
 
42
30
 
43
31
  class DumpApp(typer.Typer):
44
32
  def __init__(self, *args: Any, **kwargs: Any) -> None:
45
33
  super().__init__(*args, **kwargs)
46
34
  self.callback(invoke_without_command=True)(self.dump_main)
47
- if Flags.DUMP_DATA.is_enabled():
48
- self.add_typer(DumpDataApp(*args, **kwargs), name="data")
49
- self.add_typer(DumpConfigApp(*args, **kwargs), name="config")
50
- else:
51
- self.command("datamodel")(DumpConfigApp.dump_datamodel_cmd)
35
+ self.command("datamodel")(DumpConfigApp.dump_datamodel_cmd)
52
36
 
53
- self.command("asset")(DumpDataApp.dump_asset_cmd)
54
- self.command("timeseries")(DumpDataApp.dump_timeseries_cmd)
37
+ self.command("asset")(DumpDataApp.dump_asset_cmd)
38
+ self.command("timeseries")(DumpDataApp.dump_timeseries_cmd)
55
39
 
56
- self.command("workflow")(DumpConfigApp.dump_workflow)
57
- self.command("transformation")(DumpConfigApp.dump_transformation)
58
- self.command("group")(DumpConfigApp.dump_group)
59
- self.command("node")(DumpConfigApp.dump_node)
60
- self.command("spaces")(DumpConfigApp.dump_spaces)
40
+ self.command("workflow")(DumpConfigApp.dump_workflow)
41
+ self.command("transformation")(DumpConfigApp.dump_transformation)
42
+ self.command("group")(DumpConfigApp.dump_group)
43
+ self.command("node")(DumpConfigApp.dump_node)
44
+ self.command("spaces")(DumpConfigApp.dump_spaces)
61
45
 
62
- if Flags.DUMP_EXTENDED.is_enabled():
63
- self.command("location-filter")(DumpConfigApp.dump_location_filters)
64
- self.command("extraction-pipeline")(DumpConfigApp.dump_extraction_pipeline)
65
- self.command("functions")(DumpConfigApp.dump_functions)
66
- self.command("datasets")(DumpConfigApp.dump_datasets)
67
- self.command("streamlit")(DumpConfigApp.dump_streamlit)
46
+ self.command("location-filter")(DumpConfigApp.dump_location_filters)
47
+ self.command("extraction-pipeline")(DumpConfigApp.dump_extraction_pipeline)
48
+ self.command("functions")(DumpConfigApp.dump_functions)
49
+ self.command("datasets")(DumpConfigApp.dump_datasets)
50
+ self.command("streamlit")(DumpConfigApp.dump_streamlit)
68
51
 
69
- if Flags.AGENTS.is_enabled():
70
- self.command("agents")(DumpConfigApp.dump_agents)
52
+ self.command("agents")(DumpConfigApp.dump_agents)
71
53
 
72
- if Flags.SEARCH_CONFIG.is_enabled():
73
- self.command("search-config")(DumpConfigApp.dump_search_config)
54
+ self.command("search-config")(DumpConfigApp.dump_search_config)
74
55
 
75
56
  @staticmethod
76
57
  def dump_main(ctx: typer.Context) -> None:
@@ -91,18 +72,13 @@ class DumpConfigApp(typer.Typer):
91
72
  self.command("group")(self.dump_group)
92
73
  self.command("node")(self.dump_node)
93
74
  self.command("spaces")(self.dump_spaces)
94
- if Flags.DUMP_EXTENDED.is_enabled():
95
- self.command("location-filters")(self.dump_location_filters)
96
- self.command("extraction-pipeline")(self.dump_extraction_pipeline)
97
- self.command("datasets")(DumpConfigApp.dump_datasets)
98
- self.command("functions")(self.dump_functions)
99
- self.command("streamlit")(DumpConfigApp.dump_streamlit)
100
-
101
- if Flags.AGENTS.is_enabled():
102
- self.command("agents")(self.dump_agents)
103
-
104
- if Flags.SEARCH_CONFIG.is_enabled():
105
- self.command("search-config")(self.dump_search_config)
75
+ self.command("location-filters")(self.dump_location_filters)
76
+ self.command("extraction-pipeline")(self.dump_extraction_pipeline)
77
+ self.command("datasets")(DumpConfigApp.dump_datasets)
78
+ self.command("functions")(self.dump_functions)
79
+ self.command("streamlit")(DumpConfigApp.dump_streamlit)
80
+ self.command("agents")(self.dump_agents)
81
+ self.command("search-config")(self.dump_search_config)
106
82
 
107
83
  @staticmethod
108
84
  def dump_config_main(ctx: typer.Context) -> None:
@@ -862,30 +838,11 @@ class DumpDataApp(typer.Typer):
862
838
  ] = False,
863
839
  ) -> None:
864
840
  """This command will dump the selected assets in the selected format to the folder specified, defaults to /tmp."""
865
- if Flags.v07:
866
- print(
867
- "[bold yellow]Warning:[/] This command has been removed. Please use `cdf data download assets` instead."
868
- )
869
- return None
870
- elif Flags.v08:
841
+ if Flags.v08:
871
842
  raise ValueError(
872
843
  "The `cdf dump data asset` command has been removed. Please use `cdf data download assets` instead."
873
844
  )
874
- cmd = DumpDataCommand()
875
- client = EnvironmentVariables.create_from_environment().get_client()
876
- if hierarchy is None and data_set is None:
877
- hierarchy, data_set = AssetInteractiveSelect(client, "dump").select_hierarchies_and_data_sets()
878
-
879
- cmd.run(
880
- lambda: cmd.dump_table(
881
- AssetFinder(client, hierarchy or [], data_set or []),
882
- output_dir,
883
- clean,
884
- limit,
885
- format_,
886
- verbose,
887
- )
888
- )
845
+ print("[bold yellow]Warning:[/] This command has been removed. Please use `cdf data download assets` instead.")
889
846
 
890
847
  @staticmethod
891
848
  def dump_files_cmd(
@@ -949,30 +906,12 @@ class DumpDataApp(typer.Typer):
949
906
  ] = False,
950
907
  ) -> None:
951
908
  """This command will dump the selected events to the selected format in the folder specified, defaults to /tmp."""
952
- if Flags.v07:
953
- print(
954
- "[bold yellow]Warning:[/] This command has been removed. Please use `cdf data download files` instead."
955
- )
956
- return None
957
- elif Flags.v08:
909
+ if Flags.v08:
958
910
  raise ValueError(
959
911
  "The `cdf dump data files-metadata` command has been removed. Please use `cdf data download files` instead."
960
912
  )
961
- cmd = DumpDataCommand()
962
- cmd.validate_directory(output_dir, clean)
963
- client = EnvironmentVariables.create_from_environment().get_client()
964
- if hierarchy is None and data_set is None:
965
- hierarchy, data_set = FileMetadataInteractiveSelect(client, "dump").select_hierarchies_and_data_sets()
966
- cmd.run(
967
- lambda: cmd.dump_table(
968
- FileMetadataFinder(client, hierarchy or [], data_set or []),
969
- output_dir,
970
- clean,
971
- limit,
972
- format_,
973
- verbose,
974
- )
975
- )
913
+ print("[bold yellow]Warning:[/] This command has been removed. Please use `cdf data download files` instead.")
914
+ return None
976
915
 
977
916
  @staticmethod
978
917
  def dump_timeseries_cmd(
@@ -1036,29 +975,14 @@ class DumpDataApp(typer.Typer):
1036
975
  ] = False,
1037
976
  ) -> None:
1038
977
  """This command will dump the selected timeseries to the selected format in the folder specified, defaults to /tmp."""
1039
- if Flags.v07:
1040
- print(
1041
- "[bold yellow]Warning:[/] This command has been removed. Please use `cdf data download timeseries` instead."
1042
- )
1043
- return None
1044
- elif Flags.v08:
978
+ if Flags.v08:
1045
979
  raise ValueError(
1046
980
  "The `cdf dump data timeseries` command has been removed. Please use `cdf data download timeseries` instead."
1047
981
  )
1048
- cmd = DumpDataCommand()
1049
- client = EnvironmentVariables.create_from_environment().get_client()
1050
- if hierarchy is None and data_set is None:
1051
- hierarchy, data_set = TimeSeriesInteractiveSelect(client, "dump").select_hierarchies_and_data_sets()
1052
- cmd.run(
1053
- lambda: cmd.dump_table(
1054
- TimeSeriesFinder(client, hierarchy or [], data_set or []),
1055
- output_dir,
1056
- clean,
1057
- limit,
1058
- format_,
1059
- verbose,
1060
- )
982
+ print(
983
+ "[bold yellow]Warning:[/] This command has been removed. Please use `cdf data download timeseries` instead."
1061
984
  )
985
+ return None
1062
986
 
1063
987
  @staticmethod
1064
988
  def dump_event_cmd(
@@ -1122,27 +1046,9 @@ class DumpDataApp(typer.Typer):
1122
1046
  ] = False,
1123
1047
  ) -> None:
1124
1048
  """This command will dump the selected events to the selected format in the folder specified, defaults to /tmp."""
1125
- if Flags.v07:
1126
- print(
1127
- "[bold yellow]Warning:[/] This command has been removed. Please use `cdf data download events` instead."
1128
- )
1129
- return None
1130
- elif Flags.v08:
1049
+ if Flags.v08:
1131
1050
  raise ValueError(
1132
1051
  "The `cdf dump data event` command has been removed. Please use `cdf data download events` instead."
1133
1052
  )
1134
- cmd = DumpDataCommand()
1135
- cmd.validate_directory(output_dir, clean)
1136
- client = EnvironmentVariables.create_from_environment().get_client()
1137
- if hierarchy is None and data_set is None:
1138
- hierarchy, data_set = EventInteractiveSelect(client, "dump").select_hierarchies_and_data_sets()
1139
- cmd.run(
1140
- lambda: cmd.dump_table(
1141
- EventFinder(client, hierarchy or [], data_set or []),
1142
- output_dir,
1143
- clean,
1144
- limit,
1145
- format_,
1146
- verbose,
1147
- )
1148
- )
1053
+ print("[bold yellow]Warning:[/] This command has been removed. Please use `cdf data download events` instead.")
1054
+ return None
@@ -2,9 +2,7 @@ from typing import Annotated
2
2
 
3
3
  import typer
4
4
 
5
- from cognite_toolkit._cdf_tk.cdf_toml import CDFToml
6
5
  from cognite_toolkit._cdf_tk.commands import InitCommand
7
- from cognite_toolkit._cdf_tk.feature_flags import Flags
8
6
 
9
7
 
10
8
  class LandingApp(typer.Typer):
@@ -21,22 +19,10 @@ class LandingApp(typer.Typer):
21
19
  help="Whether to do a dry-run, do dry-run if present.",
22
20
  ),
23
21
  ] = False,
24
- # TODO: this is a temporary solution to be able to test the functionality
25
- # in a new environment, assuming that the toml file doesn't exist yet.
26
- # remove this once v.07 is released
27
- v7: Annotated[
28
- bool,
29
- typer.Option(
30
- "--seven",
31
- "-s",
32
- help="Emulate v0.7",
33
- hidden=(Flags.v07.is_enabled() or not CDFToml.load().is_loaded_from_file),
34
- ),
35
- ] = False,
36
22
  ) -> None:
37
23
  """Getting started checklist"""
38
24
  cmd = InitCommand()
39
25
  # Tracking command with the usual lambda run construct
40
26
  # is intentionally left out because we don't want to expose the user to the warning
41
27
  # before they've had the chance to opt in (which is something they'll do later using this command).
42
- cmd.execute(dry_run=dry_run, emulate_dot_seven=v7)
28
+ cmd.execute(dry_run=dry_run)
@@ -6,7 +6,6 @@ from rich import print
6
6
 
7
7
  from cognite_toolkit._cdf_tk.cdf_toml import CDFToml
8
8
  from cognite_toolkit._cdf_tk.commands import ModulesCommand, PullCommand
9
- from cognite_toolkit._cdf_tk.feature_flags import Flags
10
9
  from cognite_toolkit._cdf_tk.utils.auth import EnvironmentVariables
11
10
  from cognite_toolkit._version import __version__
12
11
 
@@ -58,7 +57,6 @@ class ModulesApp(typer.Typer):
58
57
  "--library-url",
59
58
  "-u",
60
59
  help="URL of the library to add to the project.",
61
- hidden=not Flags.EXTERNAL_LIBRARIES.is_enabled(),
62
60
  ),
63
61
  ] = None,
64
62
  library_checksum: Annotated[
@@ -67,7 +65,6 @@ class ModulesApp(typer.Typer):
67
65
  "--library-checksum",
68
66
  "-c",
69
67
  help="Checksum of the library to add to the project.",
70
- hidden=not Flags.EXTERNAL_LIBRARIES.is_enabled(),
71
68
  ),
72
69
  ] = None,
73
70
  verbose: Annotated[
@@ -8,7 +8,6 @@ from rich import print
8
8
 
9
9
  from cognite_toolkit._cdf_tk.commands import PurgeCommand
10
10
  from cognite_toolkit._cdf_tk.exceptions import ToolkitValueError
11
- from cognite_toolkit._cdf_tk.feature_flags import Flags
12
11
  from cognite_toolkit._cdf_tk.storageio.selectors import (
13
12
  InstanceFileSelector,
14
13
  InstanceSelector,
@@ -31,8 +30,7 @@ class PurgeApp(typer.Typer):
31
30
  self.callback(invoke_without_command=True)(self.main)
32
31
  self.command("dataset")(self.purge_dataset)
33
32
  self.command("space")(self.purge_space)
34
- if Flags.PURGE_INSTANCES.is_enabled() or Flags.v07.is_enabled():
35
- self.command("instances")(self.purge_instances)
33
+ self.command("instances")(self.purge_instances)
36
34
 
37
35
  def main(self, ctx: typer.Context) -> None:
38
36
  """Commands deleting data from Cognite Data Fusion."""
@@ -48,21 +46,11 @@ class PurgeApp(typer.Typer):
48
46
  help="External id of the dataset to purge. If not provided, interactive mode will be used.",
49
47
  ),
50
48
  ] = None,
51
- include_dataset: Annotated[
52
- bool,
53
- typer.Option(
54
- "--include-dataset",
55
- "-i",
56
- help="Whether to archive the dataset itself after purging its contents.",
57
- hidden=Flags.v07.is_enabled(),
58
- ),
59
- ] = False,
60
49
  archive_dataset: Annotated[
61
50
  bool,
62
51
  typer.Option(
63
52
  "--archive-dataset",
64
53
  help="Whether to archive the dataset itself after purging its contents.",
65
- hidden=not Flags.v07.is_enabled(),
66
54
  ),
67
55
  ] = False,
68
56
  skip_data: Annotated[
@@ -73,7 +61,6 @@ class PurgeApp(typer.Typer):
73
61
  help="Skip deleting the data in the dataset, only delete configurations. The resources that are "
74
62
  "considered data are: time series, event, files, assets, sequences, relationships, "
75
63
  "labels, and 3D Models",
76
- hidden=not Flags.v07.is_enabled(),
77
64
  ),
78
65
  ] = False,
79
66
  include_configurations: Annotated[
@@ -82,7 +69,6 @@ class PurgeApp(typer.Typer):
82
69
  "--include-configurations",
83
70
  "-c",
84
71
  help="Include configurations, workflows, extraction pipelines and transformations in the purge.",
85
- hidden=not Flags.v07.is_enabled(),
86
72
  ),
87
73
  ] = False,
88
74
  asset_recursive: Annotated[
@@ -92,7 +78,6 @@ class PurgeApp(typer.Typer):
92
78
  "-a",
93
79
  help="When deleting assets, delete all child assets recursively. CAVEAT: This can lead to assets"
94
80
  " not in the selected dataset being deleted if they are children of assets in the dataset.",
95
- hidden=not Flags.v07.is_enabled(),
96
81
  ),
97
82
  ] = False,
98
83
  dry_run: Annotated[
@@ -128,39 +113,28 @@ class PurgeApp(typer.Typer):
128
113
  # Is Interactive
129
114
  interactive = AssetInteractiveSelect(client, operation="purge")
130
115
  external_id = interactive.select_data_set(allow_empty=False)
131
- if Flags.v07.is_enabled():
132
- skip_data = not questionary.confirm(
133
- "Delete data in the dataset (time series, events, files, assets, sequences, relationships, labels, 3D models)?",
134
- default=True,
135
- ).ask()
136
- include_configurations = questionary.confirm(
137
- "Delete configurations (workflows, extraction pipelines and transformations) in the dataset?",
138
- default=False,
139
- ).ask()
140
- asset_recursive = questionary.confirm(
141
- "When deleting assets, delete all child assets recursively? (WARNING: This can lead "
142
- "to assets not in the selected dataset being deleted if they are children of assets in the dataset.)",
143
- default=False,
144
- ).ask()
116
+ skip_data = not questionary.confirm(
117
+ "Delete data in the dataset (time series, events, files, assets, sequences, relationships, labels, 3D models)?",
118
+ default=True,
119
+ ).ask()
120
+ include_configurations = questionary.confirm(
121
+ "Delete configurations (workflows, extraction pipelines and transformations) in the dataset?",
122
+ default=False,
123
+ ).ask()
124
+ asset_recursive = questionary.confirm(
125
+ "When deleting assets, delete all child assets recursively? (WARNING: This can lead "
126
+ "to assets not in the selected dataset being deleted if they are children of assets in the dataset.)",
127
+ default=False,
128
+ ).ask()
145
129
  archive_dataset = questionary.confirm("Archive the dataset itself after purging?", default=False).ask()
146
130
  dry_run = questionary.confirm("Dry run?", default=True).ask()
147
131
  verbose = questionary.confirm("Verbose?", default=True).ask()
148
132
 
149
- user_options = [archive_dataset, dry_run, verbose]
150
- if Flags.v07.is_enabled():
151
- user_options.extend([skip_data, include_configurations, asset_recursive])
133
+ user_options = [archive_dataset, dry_run, verbose, skip_data, include_configurations, asset_recursive]
152
134
 
153
135
  if any(selected is None for selected in user_options):
154
136
  raise typer.Abort("Aborted by user.")
155
137
 
156
- else:
157
- archive_dataset = archive_dataset if Flags.v07.is_enabled() else include_dataset
158
-
159
- if not Flags.v07.is_enabled():
160
- skip_data = False
161
- include_configurations = True
162
- asset_recursive = False
163
-
164
138
  cmd.run(
165
139
  lambda: cmd.dataset(
166
140
  client,
@@ -197,7 +171,6 @@ class PurgeApp(typer.Typer):
197
171
  typer.Option(
198
172
  "--delete-datapoints",
199
173
  help="Delete datapoints linked to CogniteTimeSeries nodes in the space.",
200
- hidden=not Flags.v07.is_enabled(),
201
174
  ),
202
175
  ] = False,
203
176
  delete_file_content: Annotated[
@@ -205,7 +178,6 @@ class PurgeApp(typer.Typer):
205
178
  typer.Option(
206
179
  "--delete-file-content",
207
180
  help="Delete file content linked to CogniteFile nodes in the space.",
208
- hidden=not Flags.v07.is_enabled(),
209
181
  ),
210
182
  ] = False,
211
183
  dry_run: Annotated[
@@ -10,7 +10,6 @@ from cognite_toolkit._cdf_tk.commands import (
10
10
  RunTransformationCommand,
11
11
  RunWorkflowCommand,
12
12
  )
13
- from cognite_toolkit._cdf_tk.feature_flags import Flags
14
13
  from cognite_toolkit._cdf_tk.utils.auth import EnvironmentVariables
15
14
 
16
15
  CDF_TOML = CDFToml.load(Path.cwd())
@@ -27,8 +26,7 @@ class RunApp(typer.Typer):
27
26
  @staticmethod
28
27
  def _print_deprecation_warning() -> None:
29
28
  """Print deprecation warning for the run plugin."""
30
- if Flags.v07.is_enabled():
31
- print("The run plugin is deprecated and will be replaced by the dev plugin in v0.8.0.")
29
+ print("The run plugin is deprecated and will be replaced by the dev plugin in v0.8.0.")
32
30
 
33
31
  @staticmethod
34
32
  def main(ctx: typer.Context) -> None:
@@ -15,10 +15,18 @@ DEFAULT_INPUT_DIR = Path.cwd() / DATA_DEFAULT_DIR
15
15
  class UploadApp(typer.Typer):
16
16
  def __init__(self, *args: Any, **kwargs: Any) -> None:
17
17
  super().__init__(*args, **kwargs)
18
- self.command("dir")(self.upload_main)
18
+ self.callback(invoke_without_command=True)(self.upload_main)
19
+ self.command("dir")(self.upload_dir)
19
20
 
20
21
  @staticmethod
21
- def upload_main(
22
+ def upload_main(ctx: typer.Context) -> None:
23
+ """Commands to upload data to CDF."""
24
+ if ctx.invoked_subcommand is None:
25
+ print("Use [bold yellow]cdf upload --help[/] for more information.")
26
+ return None
27
+
28
+ @staticmethod
29
+ def upload_dir(
22
30
  ctx: typer.Context,
23
31
  input_dir: Annotated[
24
32
  Path | None,
@@ -53,7 +53,6 @@ from cognite_toolkit._cdf_tk.exceptions import (
53
53
  ResourceDeleteError,
54
54
  ToolkitMissingValueError,
55
55
  )
56
- from cognite_toolkit._cdf_tk.feature_flags import Flags
57
56
  from cognite_toolkit._cdf_tk.tk_warnings import (
58
57
  HighSeverityWarning,
59
58
  LowSeverityWarning,
@@ -96,16 +95,6 @@ class AuthCommand(ToolkitCommand):
96
95
  raise AuthenticationError(f"Unable to verify the credentials.\n{e}")
97
96
 
98
97
  print("[green]The credentials are valid.[/green]")
99
- if no_verify or Flags.v07.is_enabled():
100
- return
101
- print(
102
- Panel(
103
- "Running verification, 'cdf auth verify'...",
104
- title="",
105
- expand=False,
106
- )
107
- )
108
- self.verify(client, dry_run)
109
98
 
110
99
  def _store_dotenv(self, env_vars: EnvironmentVariables) -> None:
111
100
  new_env_file = env_vars.create_dotenv_file()
@@ -65,7 +65,6 @@ from cognite_toolkit._cdf_tk.exceptions import (
65
65
  ToolkitMissingModuleError,
66
66
  ToolkitYAMLFormatError,
67
67
  )
68
- from cognite_toolkit._cdf_tk.feature_flags import Flags
69
68
  from cognite_toolkit._cdf_tk.hints import Hint, ModuleDefinition, verify_module_directory
70
69
  from cognite_toolkit._cdf_tk.tk_warnings import (
71
70
  DuplicatedItemWarning,
@@ -361,13 +360,12 @@ class BuildCommand(ToolkitCommand):
361
360
 
362
361
  if resource_name == "data_models":
363
362
  resource_name = "data_modeling"
364
- if Flags.v07:
365
- self.warn(
366
- MediumSeverityWarning(
367
- "The resource folder 'data_models' is deprecated and will be removed in v1.0. "
368
- "Please rename the folder to 'data_modeling'."
369
- )
363
+ self.warn(
364
+ MediumSeverityWarning(
365
+ "The resource folder 'data_models' is deprecated and will be removed in v1.0. "
366
+ "Please rename the folder to 'data_modeling'."
370
367
  )
368
+ )
371
369
 
372
370
  builder = self._get_builder(build_dir, resource_name)
373
371
 
@@ -44,7 +44,6 @@ from cognite_toolkit._cdf_tk.exceptions import (
44
44
  ToolkitFileNotFoundError,
45
45
  ToolkitNotADirectoryError,
46
46
  )
47
- from cognite_toolkit._cdf_tk.feature_flags import Flags
48
47
  from cognite_toolkit._cdf_tk.protocols import (
49
48
  T_ResourceRequest,
50
49
  T_ResourceRequestList,
@@ -295,7 +294,7 @@ class DeployCommand(ToolkitCommand):
295
294
  read_modules = build.read_modules
296
295
  output_results = DeployResults([], "deploy", dry_run=dry_run) if results is None else results
297
296
  for loader_cls in ordered_loaders:
298
- if issubclass(loader_cls, DataCRUD) and Flags.v07:
297
+ if issubclass(loader_cls, DataCRUD):
299
298
  self.warn(
300
299
  HighSeverityWarning(
301
300
  f"Uploading {loader_cls.kind} data is deprecated and will be removed in v0.8. "
@@ -19,7 +19,7 @@ from cognite_toolkit._cdf_tk.commands.collect import CollectCommand
19
19
  from cognite_toolkit._cdf_tk.commands.modules import ModulesCommand
20
20
  from cognite_toolkit._cdf_tk.commands.repo import RepoCommand
21
21
  from cognite_toolkit._cdf_tk.exceptions import ToolkitError
22
- from cognite_toolkit._cdf_tk.feature_flags import FeatureFlag, Flags
22
+ from cognite_toolkit._cdf_tk.feature_flags import FeatureFlag
23
23
 
24
24
 
25
25
  class InitItemStatus(Enum):
@@ -58,11 +58,7 @@ class InitCommand(ToolkitCommand):
58
58
  super().__init__(print_warning, skip_tracking, silent)
59
59
  self.organization_dir = None
60
60
 
61
- def execute(self, dry_run: bool = False, emulate_dot_seven: bool = False) -> None:
62
- if not Flags.v07.is_enabled() and not emulate_dot_seven:
63
- print("This command is deprecated. Use 'cdf modules init' instead.")
64
- return
65
-
61
+ def execute(self, dry_run: bool = False) -> None:
66
62
  print("\n")
67
63
  print(
68
64
  Panel(
@@ -51,7 +51,6 @@ from cognite_toolkit._cdf_tk.data_classes import (
51
51
  Packages,
52
52
  )
53
53
  from cognite_toolkit._cdf_tk.exceptions import ToolkitError, ToolkitRequiredValueError, ToolkitValueError
54
- from cognite_toolkit._cdf_tk.feature_flags import Flags
55
54
  from cognite_toolkit._cdf_tk.hints import verify_module_directory
56
55
  from cognite_toolkit._cdf_tk.tk_warnings import MediumSeverityWarning
57
56
  from cognite_toolkit._cdf_tk.tk_warnings.other import HighSeverityWarning
@@ -757,7 +756,7 @@ class ModulesCommand(ToolkitCommand):
757
756
 
758
757
  cdf_toml = CDFToml.load()
759
758
 
760
- if (Flags.EXTERNAL_LIBRARIES.is_enabled() or user_library) and self._module_source_dir is None:
759
+ if self._module_source_dir is None:
761
760
  libraries = {"userdefined": user_library} if user_library else cdf_toml.libraries
762
761
 
763
762
  for library_name, library in libraries.items():
@@ -77,15 +77,11 @@ from ._worker import ResourceWorker
77
77
  _EXCLUDED_CRUDS: set[type[ResourceCRUD]] = set()
78
78
  if not FeatureFlag.is_enabled(Flags.GRAPHQL):
79
79
  _EXCLUDED_CRUDS.add(GraphQLCRUD)
80
- if not FeatureFlag.is_enabled(Flags.AGENTS):
81
- _EXCLUDED_CRUDS.add(AgentCRUD)
82
80
  if not FeatureFlag.is_enabled(Flags.INFIELD):
83
81
  _EXCLUDED_CRUDS.add(InfieldV1CRUD)
84
82
  _EXCLUDED_CRUDS.add(InFieldLocationConfigCRUD)
85
83
  if not FeatureFlag.is_enabled(Flags.MIGRATE):
86
84
  _EXCLUDED_CRUDS.add(ResourceViewMappingCRUD)
87
- if not FeatureFlag.is_enabled(Flags.SEARCH_CONFIG):
88
- _EXCLUDED_CRUDS.add(SearchConfigCRUD)
89
85
  if not FeatureFlag.is_enabled(Flags.STREAMS):
90
86
  _EXCLUDED_CRUDS.add(StreamCRUD)
91
87
 
@@ -159,6 +155,7 @@ __all__ = [
159
155
  "RESOURCE_CRUD_CONTAINER_LIST",
160
156
  "RESOURCE_CRUD_LIST",
161
157
  "RESOURCE_DATA_CRUD_LIST",
158
+ "AgentCRUD",
162
159
  "AssetCRUD",
163
160
  "CogniteFileCRUD",
164
161
  "ContainerCRUD",
@@ -38,7 +38,6 @@ from cognite_toolkit._cdf_tk.exceptions import (
38
38
  ResourceCreationError,
39
39
  ToolkitRequiredValueError,
40
40
  )
41
- from cognite_toolkit._cdf_tk.feature_flags import Flags
42
41
  from cognite_toolkit._cdf_tk.resource_classes import FunctionScheduleYAML, FunctionsYAML
43
42
  from cognite_toolkit._cdf_tk.tk_warnings import HighSeverityWarning, LowSeverityWarning
44
43
  from cognite_toolkit._cdf_tk.utils import (
@@ -349,18 +348,14 @@ class FunctionCRUD(ResourceCRUD[str, FunctionWrite, Function, FunctionWriteList,
349
348
  function_rootdir = self.function_dir_by_external_id[external_id]
350
349
  data_set_id = self.data_set_id_by_external_id.get(external_id)
351
350
  space = self.space_by_external_id.get(external_id)
352
- if (
353
- Flags.FUNCTION_COGNITE_FILE.is_enabled()
354
- and space is None
355
- and self.project_data_modeling_status.casefold() == "data_modeling_only"
356
- ):
351
+ if space is None and self.project_data_modeling_status.casefold() == "data_modeling_only":
357
352
  raise ResourceCreationError(
358
353
  f"Function {external_id!r} must have a space set when the project is in DATA_MODELING_ONLY mode. "
359
354
  "This is used to set the NodeId of the CogniteFile created for the function code."
360
355
  )
361
356
 
362
357
  with create_temporary_zip(function_rootdir, "function.zip") as zip_path:
363
- if Flags.FUNCTION_COGNITE_FILE.is_enabled() and space:
358
+ if space:
364
359
  cognite_file = CogniteFileApply(
365
360
  space=space,
366
361
  external_id=external_id,
@@ -29,14 +29,6 @@ class Flags(Enum):
29
29
  visible=True,
30
30
  description="Enables the support for repeating modules in the config file",
31
31
  )
32
- AGENTS = FlagMetadata(
33
- visible=True,
34
- description="Enables support for Atlas Agents and Agent Tools",
35
- )
36
- DUMP_EXTENDED = FlagMetadata(
37
- visible=True,
38
- description="Enables support for the dumping Location Filters.",
39
- )
40
32
  PROFILE = FlagMetadata(
41
33
  visible=True,
42
34
  description="Enables support for the profile command",
@@ -45,46 +37,10 @@ class Flags(Enum):
45
37
  visible=True,
46
38
  description="Enables support for Infield configs",
47
39
  )
48
- DUMP_DATA = FlagMetadata(
49
- visible=True,
50
- description="Splits the dump command in dump data and dump config",
51
- )
52
- EXIT_ON_WARNING = FlagMetadata(
53
- visible=True,
54
- description="Enables the exit on warning feature during the build command",
55
- )
56
40
  MIGRATE = FlagMetadata(
57
41
  visible=True,
58
42
  description="Enables the migrate command",
59
43
  )
60
- EXTERNAL_LIBRARIES = FlagMetadata(
61
- visible=True,
62
- description="Enables the support for external libraries in the config file",
63
- )
64
- PURGE_INSTANCES = FlagMetadata(
65
- visible=True,
66
- description="Enables the cdf purge instances command",
67
- )
68
- DOWNLOAD = FlagMetadata(
69
- visible=True,
70
- description="Enables the support for the download command",
71
- )
72
- UPLOAD = FlagMetadata(
73
- visible=True,
74
- description="Enables the cdf upload command",
75
- )
76
- SEARCH_CONFIG = FlagMetadata(
77
- visible=True,
78
- description="Enables the support for the search config command",
79
- )
80
- FUNCTION_COGNITE_FILE = FlagMetadata(
81
- visible=True,
82
- description="Enables support for using Cognite Files to store function code",
83
- )
84
- v07 = FlagMetadata(
85
- visible=False,
86
- description="Enables features planned for Cognite Toolkit version 0.7.0",
87
- )
88
44
  STREAMS = FlagMetadata(
89
45
  visible=True,
90
46
  description="Enables the support for the streams resources",
@@ -17,8 +17,8 @@ class Plugin:
17
17
  class Plugins(Enum):
18
18
  run = Plugin("run", "plugin for Run command to execute Python scripts in CDF")
19
19
  dump = Plugin("dump", "plugin for Dump command to retrieve Asset resources from CDF")
20
- purge = Plugin("purge", "plugin for Purge command to remove datasets and spaces from CDF")
21
20
  dev = Plugin("dev", "plugin for commands to develop modules in CDF")
21
+ data = Plugin("data", "plugin for Data command to manage data in CDF")
22
22
 
23
23
  @staticmethod
24
24
  def list() -> dict[str, bool]:
@@ -44,7 +44,9 @@ class FunctionsYAML(ToolkitResource):
44
44
  )
45
45
  cpu: float | None = Field(default=None, description="Number of CPU cores per function.")
46
46
  memory: float | None = Field(default=None, description="Memory per function measured in GB.")
47
- runtime: Literal["py39", "py310", "py311"] | None = Field(default="py311", description="Runtime of the function.")
47
+ runtime: Literal["py39", "py310", "py311", "py312"] | None = Field(
48
+ default="py311", description="Runtime of the function."
49
+ )
48
50
  metadata: dict[str, str] | None = Field(
49
51
  default=None, description="Custom, application-specific metadata.", max_length=16
50
52
  )
@@ -8,6 +8,7 @@ from cognite_toolkit._cdf_tk.client.data_classes.charts import Chart, ChartList,
8
8
  from cognite_toolkit._cdf_tk.exceptions import ToolkitNotImplementedError
9
9
  from cognite_toolkit._cdf_tk.tk_warnings import MediumSeverityWarning
10
10
  from cognite_toolkit._cdf_tk.utils.collection import chunker_sequence
11
+ from cognite_toolkit._cdf_tk.utils.http_client import HTTPClient, HTTPMessage, SimpleBodyRequest
11
12
  from cognite_toolkit._cdf_tk.utils.useful_types import JsonVal
12
13
 
13
14
  from ._base import Page, UploadableStorageIO, UploadItem
@@ -159,6 +160,28 @@ class CanvasIO(UploadableStorageIO[CanvasSelector, IndustrialCanvas, IndustrialC
159
160
  raise ToolkitNotImplementedError(f"Unsupported selector type {type(selector).__name__!r} for CanvasIO")
160
161
  return len(selector.external_ids)
161
162
 
163
+ def upload_items(
164
+ self,
165
+ data_chunk: Sequence[UploadItem[IndustrialCanvasApply]],
166
+ http_client: HTTPClient,
167
+ selector: CanvasSelector | None = None,
168
+ ) -> Sequence[HTTPMessage]:
169
+ config = http_client.config
170
+ results: list[HTTPMessage] = []
171
+ for item in data_chunk:
172
+ instances = item.item.as_instances()
173
+ responses = http_client.request_with_retries(
174
+ message=SimpleBodyRequest(
175
+ endpoint_url=config.create_api_url("/models/instances"),
176
+ method="POST",
177
+ # MyPy does not understand that .dump is valid json
178
+ body_content={"items": [instance.dump() for instance in instances]},
179
+ )
180
+ )
181
+ results.extend(responses.as_item_responses(item.source_id))
182
+
183
+ return results
184
+
162
185
  def data_to_json_chunk(
163
186
  self, data_chunk: Sequence[IndustrialCanvas], selector: CanvasSelector | None = None
164
187
  ) -> list[dict[str, JsonVal]]:
@@ -12,7 +12,7 @@ jobs:
12
12
  environment: dev
13
13
  name: Deploy
14
14
  container:
15
- image: cognite/toolkit:0.6.117
15
+ image: cognite/toolkit:0.7.0
16
16
  env:
17
17
  CDF_CLUSTER: ${{ vars.CDF_CLUSTER }}
18
18
  CDF_PROJECT: ${{ vars.CDF_PROJECT }}
@@ -10,7 +10,7 @@ jobs:
10
10
  environment: dev
11
11
  name: Deploy Dry Run
12
12
  container:
13
- image: cognite/toolkit:0.6.117
13
+ image: cognite/toolkit:0.7.0
14
14
  env:
15
15
  CDF_CLUSTER: ${{ vars.CDF_CLUSTER }}
16
16
  CDF_PROJECT: ${{ vars.CDF_PROJECT }}
@@ -4,13 +4,14 @@ default_env = "<DEFAULT_ENV_PLACEHOLDER>"
4
4
  [modules]
5
5
  # This is the version of the modules. It should not be changed manually.
6
6
  # It will be updated by the 'cdf modules upgrade' command.
7
- version = "0.6.117"
7
+ version = "0.7.0"
8
8
 
9
- [alpha_flags]
10
- external-libraries = true
11
9
 
12
10
  [plugins]
13
- run = true
11
+ dump = false
12
+ dev = false
13
+ data = false
14
+
14
15
 
15
16
  [library.toolkit-data]
16
17
  url = "https://github.com/cognitedata/toolkit-data/releases/download/latest/packages.zip"
@@ -1 +1 @@
1
- __version__ = "0.6.117"
1
+ __version__ = "0.7.0"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cognite_toolkit
3
- Version: 0.6.117
3
+ Version: 0.7.0
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,31 +1,31 @@
1
1
  cognite_toolkit/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- cognite_toolkit/_cdf.py,sha256=qr31QC3AhJukM-9rBeWHBTLuNU01XIXAtV5dzqOU3iA,5958
3
- cognite_toolkit/_version.py,sha256=BKspJAzQvSvpMvDSKrNyLpL6pmtl3WZKJUMkohpMWyU,24
2
+ cognite_toolkit/_cdf.py,sha256=PzDig6dgbDX5VL88AeijQuTeYb2SS_yvenw9gr4fnxY,5794
3
+ cognite_toolkit/_version.py,sha256=RaANGbRu5e-vehwXI1-Qe2ggPPfs1TQaZj072JdbLk4,22
4
4
  cognite_toolkit/_cdf_tk/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
5
  cognite_toolkit/_cdf_tk/cdf_toml.py,sha256=VSWV9h44HusWIaKpWgjrOMrc3hDoPTTXBXlp6-NOrIM,9079
6
6
  cognite_toolkit/_cdf_tk/constants.py,sha256=3UpFZ60xXdqgPqqpqCITQuAvjnVExH_IlbASxoelvu8,7236
7
7
  cognite_toolkit/_cdf_tk/exceptions.py,sha256=xG0jMwi5A20nvPvyo6sCyz_cyKycynPyIzpYiGR4gcU,6064
8
- cognite_toolkit/_cdf_tk/feature_flags.py,sha256=DYIsy-Ee4CB0Ixwp5LCc1-vy80ivnET7myTJXOTh74E,3241
8
+ cognite_toolkit/_cdf_tk/feature_flags.py,sha256=4tMcBX_5-4i65je0kZfzpfDlIfcbD-2XHMtkd1g1iFQ,1758
9
9
  cognite_toolkit/_cdf_tk/hints.py,sha256=UI1ymi2T5wCcYOpEbKbVaDnlyFReFy8TDtMVt-5E1h8,6493
10
- cognite_toolkit/_cdf_tk/plugins.py,sha256=JwaN_jrrky1PXBJ3tRpZ22cIcD01EB46WVFgp_bK-fQ,856
10
+ cognite_toolkit/_cdf_tk/plugins.py,sha256=0V14rceAWLZQF8iWdyL5QmK7xB796YaDEtb9RIj5AOc,836
11
11
  cognite_toolkit/_cdf_tk/protocols.py,sha256=Lc8XnBfmDZN6dwmSopmK7cFE9a9jZ2zdUryEeCXn27I,3052
12
12
  cognite_toolkit/_cdf_tk/tracker.py,sha256=ybazaYDMgrtmAaCEb1nlKAQzjcN352-U-om4NBGV328,5965
13
13
  cognite_toolkit/_cdf_tk/validation.py,sha256=KFdPgnNIbVM0yjFF0cqmpBB8MI8e-U-YbBYrP4IiClE,8441
14
14
  cognite_toolkit/_cdf_tk/apps/__init__.py,sha256=KKmhbpvPKTwqQS2g_XqAC2yvtPsvdl8wV5TgJA3zqhs,702
15
15
  cognite_toolkit/_cdf_tk/apps/_auth_app.py,sha256=ER7uYb3ViwsHMXiQEZpyhwU6TIjKaB9aEy32VI4MPpg,3397
16
- cognite_toolkit/_cdf_tk/apps/_core_app.py,sha256=Xlhdv2MoCs2kBk0kgJixiy8ouCfixUWXuK3crEXAqB0,14032
17
- cognite_toolkit/_cdf_tk/apps/_data_app.py,sha256=rFnTcUBAuoFcTQCjxwqZGG0HjUMGdYTFyBGXxWg5gXE,824
16
+ cognite_toolkit/_cdf_tk/apps/_core_app.py,sha256=YK0MOK7Tv3cDSe5_6o9GtM5n_6sE7I0Wm-Se4eJnyNM,13744
17
+ cognite_toolkit/_cdf_tk/apps/_data_app.py,sha256=LeplXlxXtyIymRPgbatQrRFodU4VZBFxI0bqDutLSbg,806
18
18
  cognite_toolkit/_cdf_tk/apps/_dev_app.py,sha256=q8DBr4BAK33AwsHW3gAWZWSjSaQRuCisqPbsBjmYSxk,589
19
19
  cognite_toolkit/_cdf_tk/apps/_download_app.py,sha256=g-VA51KI91wziVuO3w305rmr33xIb0ghYTtW06LhNz8,31994
20
- cognite_toolkit/_cdf_tk/apps/_dump_app.py,sha256=ujM_umb-g9xO-Hf2NEzCr6u0SLnsUbxvQHvhehJBFo0,40616
21
- cognite_toolkit/_cdf_tk/apps/_landing_app.py,sha256=HxzSln3fJXs5NzulfQGUMropXcwMobUYpyePrCrQTQs,1502
20
+ cognite_toolkit/_cdf_tk/apps/_dump_app.py,sha256=EPq6fWSaScj9ncKfRY253rRJ37er47PIM60IFgkQK_k,37127
21
+ cognite_toolkit/_cdf_tk/apps/_landing_app.py,sha256=YR9z83OY7PhhgBVC5gmRLgo9iTXoGoZfRhOU3gd_r2o,888
22
22
  cognite_toolkit/_cdf_tk/apps/_migrate_app.py,sha256=g4S_53kbIgk57ziPLdRMuR6xUe434gkMqa69VmVm5Vg,39619
23
- cognite_toolkit/_cdf_tk/apps/_modules_app.py,sha256=95_H2zccRJl2mWn0oQ5mjCaEDnG63sPKOkB81IgWcIk,7637
23
+ cognite_toolkit/_cdf_tk/apps/_modules_app.py,sha256=t0SPvulgbgkF_OO2E68mQ_ZUcJ6HoaurYe0IkmXie0o,7449
24
24
  cognite_toolkit/_cdf_tk/apps/_profile_app.py,sha256=vSRJW54bEvIul8_4rOqyOYA7ztXx7TFOvZRZWZTxMbg,7007
25
- cognite_toolkit/_cdf_tk/apps/_purge.py,sha256=e8IgDK2Fib2u30l71Q2trbJ1az90zSLWr5TViTINmL0,15415
25
+ cognite_toolkit/_cdf_tk/apps/_purge.py,sha256=KYI1wFy7yHFEM1qJnTYc4_8E2FVGu4QhPsWsxop1sZA,14242
26
26
  cognite_toolkit/_cdf_tk/apps/_repo_app.py,sha256=jOf_s7oUWJqnRyz89JFiSzT2l8GlyQ7wqidHUQavGo0,1455
27
- cognite_toolkit/_cdf_tk/apps/_run.py,sha256=9tn3o9iWtCP85KcLmnytIaIB_cj1EegtEm51r85Sl44,9082
28
- cognite_toolkit/_cdf_tk/apps/_upload_app.py,sha256=LPv3iQJTMDo2cq4Ev26DGguqPd3LjySw9FXrG1iRGU0,3942
27
+ cognite_toolkit/_cdf_tk/apps/_run.py,sha256=eXua4n0hW4qRMkzaxR0PiZh-JFLf8gnWw1_5O-0-vm0,8987
28
+ cognite_toolkit/_cdf_tk/apps/_upload_app.py,sha256=BgJrcm_KikLLdr2ZUPG9CdL2hrLr7T0gR6cxih5kll0,4267
29
29
  cognite_toolkit/_cdf_tk/builders/__init__.py,sha256=Y-AJ4VrcUCRquGNEgDCiwmWW3iGWnJl2DrL17gsUIBg,1172
30
30
  cognite_toolkit/_cdf_tk/builders/_base.py,sha256=N32Y17hfepp45rMW_o4qeUY9nsysmtcxpX4GkF-tsio,7829
31
31
  cognite_toolkit/_cdf_tk/builders/_datamodels.py,sha256=hN3fWQAktrWdaGAItZ0tHpBXqJDu0JfH6t7pO7EIl2Q,3541
@@ -111,16 +111,16 @@ cognite_toolkit/_cdf_tk/commands/_questionary_style.py,sha256=h-w7fZKkGls3TrzIGB
111
111
  cognite_toolkit/_cdf_tk/commands/_upload.py,sha256=g4DIgBv6chsa10KpIS3uxjCSZKE5HFKr9axqhVhunEw,13351
112
112
  cognite_toolkit/_cdf_tk/commands/_utils.py,sha256=UxMJW5QYKts4om5n6x2Tq2ihvfO9gWjhQKeqZNFTlKg,402
113
113
  cognite_toolkit/_cdf_tk/commands/_virtual_env.py,sha256=GFAid4hplixmj9_HkcXqU5yCLj-fTXm4cloGD6U2swY,2180
114
- cognite_toolkit/_cdf_tk/commands/auth.py,sha256=PLjfxfJJKaqux1eB2fycIRlwwSMCbM3qxWDnFX-blJU,31720
115
- cognite_toolkit/_cdf_tk/commands/build_cmd.py,sha256=ppaSstd4zd5ZLcwwU9ueg3kH6MflxOL7DXnDuGAcbcY,31007
114
+ cognite_toolkit/_cdf_tk/commands/auth.py,sha256=TD6X3CKFNhDHoIv2b2uI2nKBHgQljLntp9vZffdA-jc,31384
115
+ cognite_toolkit/_cdf_tk/commands/build_cmd.py,sha256=6m-lK0vccje1gaQ_fd68UvA4CbhuBszDapnHwu4VU_U,30897
116
116
  cognite_toolkit/_cdf_tk/commands/clean.py,sha256=KDcUn1MEpvk_K7WqQPBiZcIlGV61JVG6D0DcYUXj7BM,16567
117
117
  cognite_toolkit/_cdf_tk/commands/collect.py,sha256=zBMKhhvjOpuASMnwP0eeHRI02tANcvFEZgv0CQO1ECc,627
118
- cognite_toolkit/_cdf_tk/commands/deploy.py,sha256=YV_GcD5bbELlXMixoVoCA2W4mcwHej_6jvb9J8JBQd0,23589
118
+ cognite_toolkit/_cdf_tk/commands/deploy.py,sha256=PO9r9iK1UEoDdoATS4hgjCP11DLGc2xSaY0g14nyATY,23519
119
119
  cognite_toolkit/_cdf_tk/commands/dump_data.py,sha256=8l4M2kqV4DjiV5js5s7EbFVNxV0Np4ld8ogw19vaJp0,21804
120
120
  cognite_toolkit/_cdf_tk/commands/dump_resource.py,sha256=ylAFST3GgkWT1Qa-JIzmQXbrQgNCB1UrptrBf3WsyvY,39658
121
121
  cognite_toolkit/_cdf_tk/commands/featureflag.py,sha256=lgLMwuNIwFjvvKn1sNMunkq4VTwdNqXtrZfdGFTrNcI,968
122
- cognite_toolkit/_cdf_tk/commands/init.py,sha256=M5qT6qMG2AxKwjsi8y6t9tLWBX4nb5uSYp4J6ER8M2A,9463
123
- cognite_toolkit/_cdf_tk/commands/modules.py,sha256=buGS_SqbrSykechbh-MTfFNvl1VyPhrL_91JE4_jL4I,41092
122
+ cognite_toolkit/_cdf_tk/commands/init.py,sha256=pcxFhZheXm3FPU1pkeh10M0WXPg7EcLFUgJlrE817tE,9257
123
+ cognite_toolkit/_cdf_tk/commands/modules.py,sha256=91Fov16fEIVk-3ZmBd3MlibbbzRuYLjUY9CUnudV4w0,40976
124
124
  cognite_toolkit/_cdf_tk/commands/pull.py,sha256=ktPXHW3f0HpmqCxeMhH8Ac52dAuQqAum3VBmLWJwQSM,39246
125
125
  cognite_toolkit/_cdf_tk/commands/repo.py,sha256=MNy8MWphTklIZHvQOROCweq8_SYxGv6BaqnLpkFFnuk,3845
126
126
  cognite_toolkit/_cdf_tk/commands/run.py,sha256=JyX9jLEQej9eRrHVCCNlw4GuF80qETSol3-T5CCofgw,37331
@@ -137,7 +137,7 @@ cognite_toolkit/_cdf_tk/commands/_migrate/issues.py,sha256=L2-kODPavEwcuhte7EXAN
137
137
  cognite_toolkit/_cdf_tk/commands/_migrate/migration_io.py,sha256=wrdBH5P6NgiZQSYLR0iJ3ZvqfQ5fY-_Ne2yKv9E1g4o,16277
138
138
  cognite_toolkit/_cdf_tk/commands/_migrate/prepare.py,sha256=RfqaNoso5CyBwc-p6ckwcYqBfZXKhdJgdGIyd0TATaI,2635
139
139
  cognite_toolkit/_cdf_tk/commands/_migrate/selectors.py,sha256=N1H_-rBpPUD6pbrlcofn1uEK1bA694EUXEe1zIXeqyo,2489
140
- cognite_toolkit/_cdf_tk/cruds/__init__.py,sha256=JLi1k2C2YitmV-Ez-TKcvTHnCnXDHMZSllh5iPwQ1KE,6474
140
+ cognite_toolkit/_cdf_tk/cruds/__init__.py,sha256=n8_4bkxXjXKUaYgrcP5NxomfWf9nwAU6KlpVrHw2ZAw,6317
141
141
  cognite_toolkit/_cdf_tk/cruds/_base_cruds.py,sha256=3ExMHowKi9jV-EwfKL1jfeSfQLM59z8jZAGq_wJb5Jc,20088
142
142
  cognite_toolkit/_cdf_tk/cruds/_data_cruds.py,sha256=PacTXdXaw0sf38tM6_DgNXVYdZXf_J90ZUeLk5v2VRg,9071
143
143
  cognite_toolkit/_cdf_tk/cruds/_worker.py,sha256=XdLm6DMFln9DqDgEbeqzepw9WRSXx7WdChbDtmOc89Q,9358
@@ -151,7 +151,7 @@ cognite_toolkit/_cdf_tk/cruds/_resource_cruds/datamodel.py,sha256=kX5psba0lUlvKK
151
151
  cognite_toolkit/_cdf_tk/cruds/_resource_cruds/extraction_pipeline.py,sha256=zv36HPO9goRmU3NM_i1wOvWQEdsgpQTI4bcAl-eis1g,18232
152
152
  cognite_toolkit/_cdf_tk/cruds/_resource_cruds/fieldops.py,sha256=SnQMbxiZ3SSYkTLXQ_vIu2HVf_WyD1jplNRJuoeOUfA,16723
153
153
  cognite_toolkit/_cdf_tk/cruds/_resource_cruds/file.py,sha256=F3n2FOWAPder4z3OTYs81VB-6C6r3oUzJsHvigdhaD0,15500
154
- cognite_toolkit/_cdf_tk/cruds/_resource_cruds/function.py,sha256=3qWJPy5syAAILaQRnsn_EfLyL23w3E6WLLdrrvUj7KI,29158
154
+ cognite_toolkit/_cdf_tk/cruds/_resource_cruds/function.py,sha256=i6ZHeGahCy5G-sV4kXpwZu9uDcT2f9R7CXF1-pffajg,28964
155
155
  cognite_toolkit/_cdf_tk/cruds/_resource_cruds/group_scoped.py,sha256=WEg8-CxMP64WfE_XXIlH114zM51K0uLaYa4atd992zI,1690
156
156
  cognite_toolkit/_cdf_tk/cruds/_resource_cruds/hosted_extractors.py,sha256=7y2ffuLjUAafGIXfZqqRkXopQKemmFr_IPi_lD4k-fo,15434
157
157
  cognite_toolkit/_cdf_tk/cruds/_resource_cruds/industrial_tool.py,sha256=x_hHlFZ1AURmixRKltWQ680JgrEr6CswMFyaG3N-fnk,8011
@@ -200,7 +200,7 @@ cognite_toolkit/_cdf_tk/resource_classes/extraction_pipeline.py,sha256=o0hv2W6N5
200
200
  cognite_toolkit/_cdf_tk/resource_classes/extraction_pipeline_config.py,sha256=Lj4IhELdE2wEc4MHC1A95Byhj3XC4DzYG0nBmcdAz0U,559
201
201
  cognite_toolkit/_cdf_tk/resource_classes/filemetadata.py,sha256=JfUsLCwM_aJ_PNHC0Md4QFYT14A_jFxSYBrf9bjZfQI,2199
202
202
  cognite_toolkit/_cdf_tk/resource_classes/function_schedule.py,sha256=Iv6zeuIIHIvG4T0QmcndjSyzTrDU65QScHmNlcJNtgU,1026
203
- cognite_toolkit/_cdf_tk/resource_classes/functions.py,sha256=x8y2kPuLo9yVpng0s2Q_gctgOt3LJLfj5Sl_L_Xm1Tc,2517
203
+ cognite_toolkit/_cdf_tk/resource_classes/functions.py,sha256=Cvi9fG_1n1MgwUscYL2K3QmXKlL8_-34I9HAYmd6yXQ,2540
204
204
  cognite_toolkit/_cdf_tk/resource_classes/graphql_model.py,sha256=GaXHz58Hq9Lm-ExC1vae5ZN9KVYc62BfgXPZs4cyDI8,1474
205
205
  cognite_toolkit/_cdf_tk/resource_classes/groups.py,sha256=18QoDztcV7i6BaTro82GdxWdHOcrjSM03VEyWFPcmp4,1935
206
206
  cognite_toolkit/_cdf_tk/resource_classes/hosted_extractor_destination.py,sha256=UGYlF-PJbn3akCjsvI69cY5J7YipTAx0n_g6Uh0cd5g,655
@@ -240,7 +240,7 @@ cognite_toolkit/_cdf_tk/resource_classes/robotics/location.py,sha256=dbc9HT-bc2Q
240
240
  cognite_toolkit/_cdf_tk/resource_classes/robotics/map.py,sha256=j77z7CzCMiMj8r94BdUKCum9EuZRUjaSlUAy9K9DL_Q,942
241
241
  cognite_toolkit/_cdf_tk/storageio/__init__.py,sha256=T2PzfD2Tf5khE0cmSDLcqTlRy9YEKTU-raKePIFSMNQ,1910
242
242
  cognite_toolkit/_cdf_tk/storageio/_annotations.py,sha256=JI_g18_Y9S7pbc9gm6dZMyo3Z-bCndJXF9C2lOva0bQ,4848
243
- cognite_toolkit/_cdf_tk/storageio/_applications.py,sha256=TuhO5d465RG_maukaAazXi7P7upiJeSofxXrf9guJQE,15113
243
+ cognite_toolkit/_cdf_tk/storageio/_applications.py,sha256=vena8BW7erki6i-hGdcdiOmDbMU3P9M_Kn_5dPG6Yzw,16084
244
244
  cognite_toolkit/_cdf_tk/storageio/_asset_centric.py,sha256=mRwcVvBzUES21zNb-mDH7XqZWN37p4GUs0JRx7lbRyw,32817
245
245
  cognite_toolkit/_cdf_tk/storageio/_base.py,sha256=cllSyg3rRGov_X45CoJ_isXhz0cU9Mt7OyV7_t_SeWw,12156
246
246
  cognite_toolkit/_cdf_tk/storageio/_data_classes.py,sha256=s3TH04BJ1q7rXndRhEbVMEnoOXjxrGg4n-w9Z5uUL-o,3480
@@ -302,13 +302,13 @@ cognite_toolkit/_repo_files/.gitignore,sha256=ip9kf9tcC5OguF4YF4JFEApnKYw0nG0vPi
302
302
  cognite_toolkit/_repo_files/AzureDevOps/.devops/README.md,sha256=OLA0D7yCX2tACpzvkA0IfkgQ4_swSd-OlJ1tYcTBpsA,240
303
303
  cognite_toolkit/_repo_files/AzureDevOps/.devops/deploy-pipeline.yml,sha256=brULcs8joAeBC_w_aoWjDDUHs3JheLMIR9ajPUK96nc,693
304
304
  cognite_toolkit/_repo_files/AzureDevOps/.devops/dry-run-pipeline.yml,sha256=OBFDhFWK1mlT4Dc6mDUE2Es834l8sAlYG50-5RxRtHk,723
305
- cognite_toolkit/_repo_files/GitHub/.github/workflows/deploy.yaml,sha256=6k6HSNh490UfDKoXgD6-zjHxp0oLOHZ7Pe566JXtFXo,668
306
- cognite_toolkit/_repo_files/GitHub/.github/workflows/dry-run.yaml,sha256=JCVFSFk7wCo0Kk_Xb5rthWA_Us_A1haz5_-x0fBHjqk,2431
307
- cognite_toolkit/_resources/cdf.toml,sha256=jwpeT_8ADisMF91205BNXWG5uwvouB23NqJnjQJ_ch4,488
305
+ cognite_toolkit/_repo_files/GitHub/.github/workflows/deploy.yaml,sha256=S8MFGAgtuHTYilFDxn907tu9kRL65RQO1XbFwzIWTJk,666
306
+ cognite_toolkit/_repo_files/GitHub/.github/workflows/dry-run.yaml,sha256=obiNW_GgW2PeViZmYU0pUBh1KZvixdzjPmwEzBKQl4k,2429
307
+ cognite_toolkit/_resources/cdf.toml,sha256=2plDWdhchZQwul76okB71n0RbjV5bBKKo72gwDWP7Eo,474
308
308
  cognite_toolkit/demo/__init__.py,sha256=-m1JoUiwRhNCL18eJ6t7fZOL7RPfowhCuqhYFtLgrss,72
309
309
  cognite_toolkit/demo/_base.py,sha256=6xKBUQpXZXGQ3fJ5f7nj7oT0s2n7OTAGIa17ZlKHZ5U,8052
310
- cognite_toolkit-0.6.117.dist-info/METADATA,sha256=UbtMFVinEza_hEI1bTyTkh3qB0TBo6IMfhZDU4sCzJo,4502
311
- cognite_toolkit-0.6.117.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
312
- cognite_toolkit-0.6.117.dist-info/entry_points.txt,sha256=JlR7MH1_UMogC3QOyN4-1l36VbrCX9xUdQoHGkuJ6-4,83
313
- cognite_toolkit-0.6.117.dist-info/licenses/LICENSE,sha256=CW0DRcx5tL-pCxLEN7ts2S9g2sLRAsWgHVEX4SN9_Mc,752
314
- cognite_toolkit-0.6.117.dist-info/RECORD,,
310
+ cognite_toolkit-0.7.0.dist-info/METADATA,sha256=w2PxW2DrLeWISkNeWn3vNiTIZdu6k_NzAIOFACAOVQE,4500
311
+ cognite_toolkit-0.7.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
312
+ cognite_toolkit-0.7.0.dist-info/entry_points.txt,sha256=JlR7MH1_UMogC3QOyN4-1l36VbrCX9xUdQoHGkuJ6-4,83
313
+ cognite_toolkit-0.7.0.dist-info/licenses/LICENSE,sha256=CW0DRcx5tL-pCxLEN7ts2S9g2sLRAsWgHVEX4SN9_Mc,752
314
+ cognite_toolkit-0.7.0.dist-info/RECORD,,