nominal 1.111.2__py3-none-any.whl → 1.112.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.
CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.112.0](https://github.com/nominal-io/nominal-client/compare/v1.111.2...v1.112.0) (2026-02-04)
4
+
5
+
6
+ ### Features
7
+
8
+ * add option for standalone template cloning in migration_utils ([#605](https://github.com/nominal-io/nominal-client/issues/605)) ([d12a290](https://github.com/nominal-io/nominal-client/commit/d12a2908559f1f3f655981c247b67e9b07c4ce4c))
9
+
3
10
  ## [1.111.2](https://github.com/nominal-io/nominal-client/compare/v1.111.1...v1.111.2) (2026-02-04)
4
11
 
5
12
 
@@ -1,7 +1,7 @@
1
1
  from __future__ import annotations
2
2
 
3
3
  from dataclasses import dataclass
4
- from typing import Sequence
4
+ from typing import Mapping, Sequence
5
5
 
6
6
  from nominal.core.asset import Asset
7
7
  from nominal.core.workbook_template import WorkbookTemplate
@@ -15,4 +15,5 @@ class AssetResources:
15
15
 
16
16
  @dataclass(frozen=True)
17
17
  class MigrationResources:
18
- source_assets: Sequence[AssetResources]
18
+ source_assets: Mapping[str, AssetResources]
19
+ source_standalone_templates: Sequence[WorkbookTemplate]
@@ -1027,7 +1027,8 @@ def copy_resources_to_destination_client(
1027
1027
  dataset_config: MigrationDatasetConfig | None = None,
1028
1028
  ) -> tuple[Sequence[tuple[str, Dataset]], Sequence[Asset], Sequence[WorkbookTemplate], Sequence[Workbook]]:
1029
1029
  """Based on a list of assets and workbook templates, copy resources to destination client, creating
1030
- new datasets, datafiles, and workbooks along the way.
1030
+ new datasets, datafiles, and workbooks along the way. Standalone templates are cloned without
1031
+ creating workbooks.
1031
1032
 
1032
1033
  Args:
1033
1034
  destination_client (NominalClient): client of the tenant/workspace to copy resources to.
@@ -1050,9 +1051,10 @@ def copy_resources_to_destination_client(
1050
1051
  new_workbooks = []
1051
1052
 
1052
1053
  new_data_scopes_and_datasets: list[tuple[str, Dataset]] = []
1053
- for source_asset in migration_resources.source_assets:
1054
+ for asset_resources in migration_resources.source_assets.values():
1055
+ source_asset = asset_resources.asset
1054
1056
  new_asset = copy_asset_from(
1055
- source_asset.asset,
1057
+ source_asset,
1056
1058
  destination_client,
1057
1059
  dataset_config=dataset_config,
1058
1060
  include_events=True,
@@ -1062,7 +1064,7 @@ def copy_resources_to_destination_client(
1062
1064
  new_assets.append(new_asset)
1063
1065
  new_data_scopes_and_datasets.extend(new_asset.list_datasets())
1064
1066
 
1065
- for source_workbook_template in source_asset.source_workbook_templates:
1067
+ for source_workbook_template in asset_resources.source_workbook_templates:
1066
1068
  new_template = clone_workbook_template(source_workbook_template, destination_client)
1067
1069
  new_templates.append(new_template)
1068
1070
  new_workbook = new_template.create_workbook(
@@ -1077,6 +1079,10 @@ def copy_resources_to_destination_client(
1077
1079
  extra=log_extras,
1078
1080
  )
1079
1081
  new_workbooks.append(new_workbook)
1082
+
1083
+ for source_template in migration_resources.source_standalone_templates:
1084
+ new_template = clone_workbook_template(source_template, destination_client)
1085
+ new_templates.append(new_template)
1080
1086
  finally:
1081
1087
  file_handler.close()
1082
1088
  logger.removeHandler(file_handler)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nominal
3
- Version: 1.111.2
3
+ Version: 1.112.0
4
4
  Summary: Automate Nominal workflows in Python
5
5
  Project-URL: Homepage, https://nominal.io
6
6
  Project-URL: Documentation, https://docs.nominal.io
@@ -1,4 +1,4 @@
1
- CHANGELOG.md,sha256=N98MknWWJvVP9TF_wOjm8wgAofSWzf2v0kOHmv34MvQ,92404
1
+ CHANGELOG.md,sha256=mPkM7Gb3inSDt6u9dSj18fMbVB6JgaiF4NuzRIaFHvc,92757
2
2
  LICENSE,sha256=zEGHG9mjDjaIS3I79O8mweQo-yiTbqx8jJvUPppVAwk,1067
3
3
  README.md,sha256=KKe0dxh_pHXCtB7I9G4qWGQYvot_BZU8yW6MJyuyUHM,311
4
4
  nominal/__init__.py,sha256=rbraORnXUrNn1hywLXM0XwSQCd9UmQt20PDYlsBalfE,2167
@@ -93,8 +93,8 @@ nominal/experimental/logging/nominal_log_handler.py,sha256=hyTxyjsvFnE7vtyrDJpun
93
93
  nominal/experimental/logging/rich_log_handler.py,sha256=8yz_VtxNgJg2oiesnXz2iXoBvQrUP5pAsYkxknOXgXA,1231
94
94
  nominal/experimental/migration/__init__.py,sha256=E2IgWJLwJ5bN6jbl8k5nHECKFx5aT11jKAzVYcyXn3o,460
95
95
  nominal/experimental/migration/migration_data_config.py,sha256=sPwZjyLmL-_pHvDZvQspxrfW6yNZhEsQjDVwKA8IaXM,522
96
- nominal/experimental/migration/migration_resources.py,sha256=Tf_7kNBeSaY8z2fTF7DAxk-9q3a7F8xXFVvxI8tTc9c,415
97
- nominal/experimental/migration/migration_utils.py,sha256=DxPKtPT1ZHTUdkMh6yt3YLK3A7C7eAaaVVI0JaEjKZo,42423
96
+ nominal/experimental/migration/migration_resources.py,sha256=LP1ishD3GoZgv0W-3EHcuJ4Vyt3w7oBjy0jRnhWb58o,488
97
+ nominal/experimental/migration/migration_utils.py,sha256=vWzbATE6QJoUKo39F2fCiykpuEI1voYcbfRnoWjRo4s,42764
98
98
  nominal/experimental/rust_streaming/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
99
99
  nominal/experimental/rust_streaming/rust_write_stream.py,sha256=oQ6ixwm8ct8ZDc_qNB7AucDt8o5-_aBVlW2fFCQ_nmA,1541
100
100
  nominal/experimental/stream_v2/__init__.py,sha256=W39vK46pssx5sXvmsImMuJiEPs7iGtwrbYBI0bWnXCY,2313
@@ -113,8 +113,8 @@ nominal/thirdparty/polars/polars_export_handler.py,sha256=1XjdOYWpiU2ilSU5tcjNpo
113
113
  nominal/thirdparty/tdms/__init__.py,sha256=6n2ImFr2Wiil6JM1P5Q7Mpr0VzLcnDkmup_ftNpPq-s,142
114
114
  nominal/thirdparty/tdms/_tdms.py,sha256=m4gxbpxB9MTLi2FuYvGlbUGSyDAZKFxbM3ia2x1wIz0,8746
115
115
  nominal/ts/__init__.py,sha256=hmd0ENvDhxRnzDKGLxIub6QG8LpcxCgcyAct029CaEs,21442
116
- nominal-1.111.2.dist-info/METADATA,sha256=7Bx_PWaPm2gNVpTzZAfRp7s0s3LOlBhYaGOIuWFuF7s,2372
117
- nominal-1.111.2.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
118
- nominal-1.111.2.dist-info/entry_points.txt,sha256=-mCLhxgg9R_lm5efT7vW9wuBH12izvY322R0a3TYxbE,66
119
- nominal-1.111.2.dist-info/licenses/LICENSE,sha256=zEGHG9mjDjaIS3I79O8mweQo-yiTbqx8jJvUPppVAwk,1067
120
- nominal-1.111.2.dist-info/RECORD,,
116
+ nominal-1.112.0.dist-info/METADATA,sha256=QRY9hFafvibV--dN3xxIcD1EGDCnj-vfzdTG7K933N4,2372
117
+ nominal-1.112.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
118
+ nominal-1.112.0.dist-info/entry_points.txt,sha256=-mCLhxgg9R_lm5efT7vW9wuBH12izvY322R0a3TYxbE,66
119
+ nominal-1.112.0.dist-info/licenses/LICENSE,sha256=zEGHG9mjDjaIS3I79O8mweQo-yiTbqx8jJvUPppVAwk,1067
120
+ nominal-1.112.0.dist-info/RECORD,,