semantic-link-labs 0.8.6__py3-none-any.whl → 0.8.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.

Potentially problematic release.


This version of semantic-link-labs might be problematic. Click here for more details.

Files changed (34) hide show
  1. {semantic_link_labs-0.8.6.dist-info → semantic_link_labs-0.8.7.dist-info}/METADATA +14 -6
  2. {semantic_link_labs-0.8.6.dist-info → semantic_link_labs-0.8.7.dist-info}/RECORD +34 -28
  3. {semantic_link_labs-0.8.6.dist-info → semantic_link_labs-0.8.7.dist-info}/WHEEL +1 -1
  4. sempy_labs/__init__.py +37 -6
  5. sempy_labs/_authentication.py +108 -0
  6. sempy_labs/_connections.py +355 -176
  7. sempy_labs/_dataflows.py +0 -1
  8. sempy_labs/_gateways.py +439 -0
  9. sempy_labs/_generate_semantic_model.py +51 -30
  10. sempy_labs/_git.py +13 -5
  11. sempy_labs/_helper_functions.py +14 -3
  12. sempy_labs/_list_functions.py +1 -1
  13. sempy_labs/_model_auto_build.py +4 -2
  14. sempy_labs/_model_bpa.py +2 -15
  15. sempy_labs/_model_bpa_bulk.py +4 -2
  16. sempy_labs/_refresh_semantic_model.py +6 -0
  17. sempy_labs/admin/__init__.py +19 -9
  18. sempy_labs/admin/_basic_functions.py +475 -548
  19. sempy_labs/admin/_external_data_share.py +97 -0
  20. sempy_labs/admin/_git.py +69 -0
  21. sempy_labs/admin/_items.py +264 -0
  22. sempy_labs/admin/_scanner.py +104 -0
  23. sempy_labs/directlake/_dl_helper.py +6 -2
  24. sempy_labs/directlake/_get_shared_expression.py +5 -35
  25. sempy_labs/directlake/_update_directlake_model_lakehouse_connection.py +3 -2
  26. sempy_labs/migration/_migrate_tables_columns_to_semantic_model.py +4 -2
  27. sempy_labs/report/_generate_report.py +10 -4
  28. sempy_labs/report/_report_bpa.py +1 -0
  29. sempy_labs/report/_report_helper.py +58 -0
  30. sempy_labs/report/_report_list_functions.py +2 -0
  31. sempy_labs/report/_reportwrapper.py +358 -175
  32. sempy_labs/tom/_model.py +1 -0
  33. {semantic_link_labs-0.8.6.dist-info → semantic_link_labs-0.8.7.dist-info}/LICENSE +0 -0
  34. {semantic_link_labs-0.8.6.dist-info → semantic_link_labs-0.8.7.dist-info}/top_level.txt +0 -0
@@ -220,7 +220,7 @@ def create_model_bpa_semantic_model(
220
220
 
221
221
  from sempy_labs._helper_functions import resolve_lakehouse_name
222
222
  from sempy_labs.directlake import (
223
- get_shared_expression,
223
+ generate_shared_expression,
224
224
  add_table_to_direct_lake_semantic_model,
225
225
  )
226
226
  from sempy_labs import create_blank_semantic_model, refresh_semantic_model
@@ -235,7 +235,9 @@ def create_model_bpa_semantic_model(
235
235
  )
236
236
 
237
237
  # Generate the shared expression based on the lakehouse and lakehouse workspace
238
- expr = get_shared_expression(lakehouse=lakehouse, workspace=lakehouse_workspace)
238
+ expr = generate_shared_expression(
239
+ item_name=lakehouse, item_type="Lakehouse", workspace=lakehouse_workspace
240
+ )
239
241
 
240
242
  # Create blank model
241
243
  create_blank_semantic_model(
@@ -27,6 +27,7 @@ def refresh_semantic_model(
27
27
  max_parallelism: int = 10,
28
28
  workspace: Optional[str] = None,
29
29
  visualize: bool = False,
30
+ commit_mode: str = "transactional",
30
31
  ) -> pd.DataFrame | None:
31
32
  """
32
33
  Refreshes a semantic model.
@@ -55,6 +56,8 @@ def refresh_semantic_model(
55
56
  or if no lakehouse attached, resolves to the workspace of the notebook.
56
57
  visualize : bool, default=False
57
58
  If True, displays a Gantt chart showing the refresh statistics for each table/partition.
59
+ commit_mode : str, default="transactional"
60
+ Determines whether to commit objects in batches or only when complete. Modes are "transactional" and "partialBatch". Defaults to "transactional".
58
61
 
59
62
  Returns
60
63
  -------
@@ -104,6 +107,7 @@ def refresh_semantic_model(
104
107
  max_parallelism,
105
108
  objects,
106
109
  visualize,
110
+ commit_mode,
107
111
  ):
108
112
  # Ignore specific warnings
109
113
  warnings.filterwarnings(
@@ -137,6 +141,7 @@ def refresh_semantic_model(
137
141
  retry_count=retry_count,
138
142
  apply_refresh_policy=apply_refresh_policy,
139
143
  max_parallelism=max_parallelism,
144
+ commit_mode=commit_mode,
140
145
  objects=objects if objects else None,
141
146
  )
142
147
 
@@ -259,6 +264,7 @@ def refresh_semantic_model(
259
264
  max_parallelism=max_parallelism,
260
265
  objects=objects,
261
266
  visualize=visualize,
267
+ commit_mode=commit_mode,
262
268
  )
263
269
 
264
270
  return final_output
@@ -1,19 +1,16 @@
1
1
  from sempy_labs.admin._basic_functions import (
2
2
  assign_workspaces_to_capacity,
3
- list_capacities,
4
- list_tenant_settings,
5
- list_capacities_delegated_tenant_settings,
6
3
  unassign_workspaces_from_capacity,
7
- list_external_data_shares,
8
- revoke_external_data_share,
9
4
  list_workspaces,
5
+ list_workspace_access_details,
6
+ list_modified_workspaces,
10
7
  list_datasets,
11
- list_item_access_details,
8
+ list_reports,
9
+ list_capacities,
10
+ list_tenant_settings,
11
+ list_capacities_delegated_tenant_settings,
12
12
  list_access_entities,
13
- list_workspace_access_details,
14
- list_items,
15
13
  list_activity_events,
16
- list_modified_workspaces,
17
14
  )
18
15
  from sempy_labs.admin._domains import (
19
16
  list_domains,
@@ -27,6 +24,17 @@ from sempy_labs.admin._domains import (
27
24
  unassign_domain_workspaces,
28
25
  unassign_all_domain_workspaces,
29
26
  )
27
+ from sempy_labs.admin._items import (
28
+ list_item_access_details,
29
+ list_items,
30
+ )
31
+ from sempy_labs.admin._external_data_share import (
32
+ list_external_data_shares,
33
+ revoke_external_data_share,
34
+ )
35
+ from sempy_labs.admin._git import (
36
+ list_git_connections,
37
+ )
30
38
 
31
39
  __all__ = [
32
40
  "list_items",
@@ -54,4 +62,6 @@ __all__ = [
54
62
  "revoke_external_data_share",
55
63
  "list_activity_events",
56
64
  "list_modified_workspaces",
65
+ "list_git_connections",
66
+ "list_reports",
57
67
  ]