semantic-link-labs 0.9.8__py3-none-any.whl → 0.9.9__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.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: semantic-link-labs
3
- Version: 0.9.8
3
+ Version: 0.9.9
4
4
  Summary: Semantic Link Labs for Microsoft Fabric
5
5
  Author: Microsoft Corporation
6
6
  License: MIT License
@@ -1,4 +1,4 @@
1
- semantic_link_labs-0.9.8.dist-info/licenses/LICENSE,sha256=ws_MuBL-SCEBqPBFl9_FqZkaaydIJmxHrJG2parhU4M,1141
1
+ semantic_link_labs-0.9.9.dist-info/licenses/LICENSE,sha256=ws_MuBL-SCEBqPBFl9_FqZkaaydIJmxHrJG2parhU4M,1141
2
2
  sempy_labs/__init__.py,sha256=DCtHeonEHwZmNAmVJz_kX-a97d04NsenB-b8eK38Omo,15609
3
3
  sempy_labs/_ai.py,sha256=BD1TdGOJ7T4m3x426OP-FLb7bevn-9gKY8BTEDAJDQU,16205
4
4
  sempy_labs/_authentication.py,sha256=GjtN5XqIyWXbR5Ni4hfYiUNwgFa-ySX8e-BrqE1vgGc,6903
@@ -23,7 +23,7 @@ sempy_labs/_gateways.py,sha256=6JE6VeGFPKF617sf2mMkxXVOz57YHI5jAQLAF-BzRLc,17527
23
23
  sempy_labs/_generate_semantic_model.py,sha256=5BRdobiNJ035HShCEpEkMPN-KfqVdqzGFuR0HM346mA,18560
24
24
  sempy_labs/_git.py,sha256=RyaT4XzrSi-4NLJZWiWZnnNpMgrKzRNxhyY8b1O2I6c,17819
25
25
  sempy_labs/_graphQL.py,sha256=truXeIUPRKLwc4skhs3FZYNcKP9FCGKly9en0YkR4NE,2690
26
- sempy_labs/_helper_functions.py,sha256=JTQi-kipEASjW7ggQtq3FK5xWXP6ohtjsr57TWzx2UM,62431
26
+ sempy_labs/_helper_functions.py,sha256=Gd3m3-X8NinBNX0MRo39NXrPSBe66NGWTmR9p164520,62666
27
27
  sempy_labs/_icons.py,sha256=SB9EQeoFCfD4bO6fcYuJOoPRSYenSrW0rI9G5RFsH28,3579
28
28
  sempy_labs/_job_scheduler.py,sha256=_-Pifkttk1oPNxewxwWcQ4QC_Hr24GSi6nmrEXwc0pc,15814
29
29
  sempy_labs/_kql_databases.py,sha256=0WVG9oiWgbjgV_oQc4f96QogqitVkbIeCmF_dVeePQE,4212
@@ -187,7 +187,7 @@ sempy_labs/report/_bpareporttemplate/definition/pages/d37dce724a0ccc30044b/page.
187
187
  sempy_labs/report/_bpareporttemplate/definition/pages/d37dce724a0ccc30044b/visuals/ce8532a7e25020271077/visual.json,sha256=mlY6t9OlSe-Y6_QmXJpS1vggU6Y3FjISUKECL8FVSg8,931
188
188
  sempy_labs/tom/__init__.py,sha256=Qbs8leW0fjzvWwOjyWK3Hjeehu7IvpB1beASGsi28bk,121
189
189
  sempy_labs/tom/_model.py,sha256=zA94EUofE-VolEQWrDMt1aYSL744_CgU8V8NHvxKU08,194461
190
- semantic_link_labs-0.9.8.dist-info/METADATA,sha256=E0QXudTlem6o1bjrPsv35Gxg_7BJo1oKzbsoi8R4yKM,26294
191
- semantic_link_labs-0.9.8.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
192
- semantic_link_labs-0.9.8.dist-info/top_level.txt,sha256=kiQX1y42Dbein1l3Q8jMUYyRulDjdlc2tMepvtrvixQ,11
193
- semantic_link_labs-0.9.8.dist-info/RECORD,,
190
+ semantic_link_labs-0.9.9.dist-info/METADATA,sha256=8ugBJQMVZQfhma37IkIzl_MDKHGyt1Ov3ekzSBtetkU,26294
191
+ semantic_link_labs-0.9.9.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
192
+ semantic_link_labs-0.9.9.dist-info/top_level.txt,sha256=kiQX1y42Dbein1l3Q8jMUYyRulDjdlc2tMepvtrvixQ,11
193
+ semantic_link_labs-0.9.9.dist-info/RECORD,,
@@ -65,9 +65,11 @@ def create_abfss_path(
65
65
  path = f"abfss://{lakehouse_workspace_id}@{fp}/{lakehouse_id}"
66
66
 
67
67
  if delta_table_name is not None:
68
+ path += "/Tables"
68
69
  if schema is not None:
69
- path += f"/{schema}"
70
- path += f"/Tables/{delta_table_name}"
70
+ path += f"/{schema}/{delta_table_name}"
71
+ else:
72
+ path += f"/{delta_table_name}"
71
73
 
72
74
  return path
73
75
 
@@ -1739,19 +1741,23 @@ def _base_api(
1739
1741
  lro_return_json: bool = False,
1740
1742
  lro_return_status_code: bool = False,
1741
1743
  ):
1742
-
1744
+ import notebookutils
1743
1745
  from sempy_labs._authentication import _get_headers
1744
1746
 
1745
1747
  if (lro_return_json or lro_return_status_code) and status_codes is None:
1746
1748
  status_codes = [200, 202]
1747
1749
 
1750
+ def get_token(audience="pbi"):
1751
+ return notebookutils.credentials.getToken(audience)
1752
+
1748
1753
  if isinstance(status_codes, int):
1749
1754
  status_codes = [status_codes]
1750
1755
 
1751
1756
  if client == "fabric":
1752
- c = fabric.FabricRestClient()
1757
+ c = fabric.FabricRestClient(token_provider=get_token)
1753
1758
  elif client == "fabric_sp":
1754
- c = fabric.FabricRestClient(token_provider=auth.token_provider.get())
1759
+ token = auth.token_provider.get() or get_token
1760
+ c = fabric.FabricRestClient(token_provider=token)
1755
1761
  elif client in ["azure", "graph"]:
1756
1762
  pass
1757
1763
  else: