Skip to content

Commit 3c9f579

Browse files
authored
updated to 0.8.11 (#373)
* updated to 0.8.11 * minor updates
1 parent 9abcb6e commit 3c9f579

File tree

9 files changed

+17
-19
lines changed

9 files changed

+17
-19
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Semantic Link Labs
22

33
[![PyPI version](https://badge.fury.io/py/semantic-link-labs.svg)](https://badge.fury.io/py/semantic-link-labs)
4-
[![Read The Docs](https://readthedocs.org/projects/semantic-link-labs/badge/?version=0.8.10&style=flat)](https://readthedocs.org/projects/semantic-link-labs/)
4+
[![Read The Docs](https://readthedocs.org/projects/semantic-link-labs/badge/?version=0.8.11&style=flat)](https://readthedocs.org/projects/semantic-link-labs/)
55
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
66
[![Downloads](https://static.pepy.tech/badge/semantic-link-labs)](https://pepy.tech/project/semantic-link-labs)
77

@@ -116,6 +116,7 @@ An even better way to ensure the semantic-link-labs library is available in your
116116
2. Select your newly created environment within the 'Environment' drop down in the navigation bar at the top of the notebook
117117

118118
## Version History
119+
* [0.8.11](https://github.com/microsoft/semantic-link-labs/releases/tag/0.8.11) (December 19, 2024)
119120
* [0.8.10](https://github.com/microsoft/semantic-link-labs/releases/tag/0.8.10) (December 16, 2024)
120121
* [0.8.9](https://github.com/microsoft/semantic-link-labs/releases/tag/0.8.9) (December 4, 2024)
121122
* [0.8.8](https://github.com/microsoft/semantic-link-labs/releases/tag/0.8.8) (November 28, 2024)

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
project = 'semantic-link-labs'
1414
copyright = '2024, Microsoft and community'
1515
author = 'Microsoft and community'
16-
release = '0.8.10'
16+
release = '0.8.11'
1717

1818
# -- General configuration ---------------------------------------------------
1919
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ name="semantic-link-labs"
77
authors = [
88
{ name = "Microsoft Corporation" },
99
]
10-
version="0.8.10"
10+
version="0.8.11"
1111
description="Semantic Link Labs for Microsoft Fabric"
1212
readme="README.md"
1313
requires-python=">=3.10,<3.12"

src/sempy_labs/_connections.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ def create_vnet_connection(
485485
user_name: str,
486486
password: str,
487487
privacy_level: str,
488-
connection_encryption: Optional[str] = "NotEncrypted",
488+
connection_encryption: str = "NotEncrypted",
489489
skip_test_connection: bool = False,
490490
):
491491
"""

src/sempy_labs/_environments.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,8 @@ def publish_environment(environment: str, workspace: Optional[str | UUID] = None
134134
"""
135135
Publishes a Fabric environment.
136136
137+
This is a wrapper function for the following API: `Spark Libraries - Publish Environment <https://learn.microsoft.com/rest/api/fabric/environment/spark-libraries/publish-environment>`_.
138+
137139
Parameters
138140
----------
139141
environment: str
@@ -144,8 +146,6 @@ def publish_environment(environment: str, workspace: Optional[str | UUID] = None
144146
or if no lakehouse attached, resolves to the workspace of the notebook.
145147
"""
146148

147-
# https://learn.microsoft.com/en-us/rest/api/fabric/environment/spark-libraries/publish-environment?tabs=HTTP
148-
149149
from sempy_labs._helper_functions import resolve_environment_id
150150

151151
(workspace_name, workspace_id) = resolve_workspace_name_and_id(workspace)

src/sempy_labs/_helper_functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ def resolve_lakehouse_id(
306306

307307

308308
def get_direct_lake_sql_endpoint(
309-
dataset: str | UUID, workspace: Optional[str] = None
309+
dataset: str | UUID, workspace: Optional[str | UUID] = None
310310
) -> UUID:
311311
"""
312312
Obtains the SQL Endpoint ID of the semantic model.

src/sempy_labs/directlake/_update_directlake_model_lakehouse_connection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def update_direct_lake_model_connection(
8383
dataset: str | UUID,
8484
workspace: Optional[str | UUID] = None,
8585
source: Optional[str] = None,
86-
source_type: Optional[str] = "Lakehouse",
86+
source_type: str = "Lakehouse",
8787
source_workspace: Optional[str | UUID] = None,
8888
):
8989
"""

src/sempy_labs/directlake/_update_directlake_partition_entity.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ def update_direct_lake_partition_entity(
2424
2525
Parameters
2626
----------
27-
dataset : str | UUID
27+
dataset : str | uuid.UUID
2828
Name or ID of the semantic model.
2929
table_name : str, List[str]
3030
Name of the table(s) in the semantic model.
3131
entity_name : str, List[str]
3232
Name of the lakehouse table to be mapped to the semantic model table.
33-
workspace : str | UUID, default=None
33+
workspace : str | uuid.UUID, default=None
3434
The Fabric workspace name or ID in which the semantic model exists.
3535
Defaults to None which resolves to the workspace of the attached lakehouse
3636
or if no lakehouse attached, resolves to the workspace of the notebook.
@@ -94,21 +94,18 @@ def add_table_to_direct_lake_semantic_model(
9494
9595
Parameters
9696
----------
97-
dataset : str | UUID
97+
dataset : str | uuid.UUID
9898
Name or ID of the semantic model.
9999
table_name : str, List[str]
100100
Name of the table in the semantic model.
101101
lakehouse_table_name : str
102102
The name of the Fabric lakehouse table.
103103
refresh : bool, default=True
104104
Refreshes the table after it is added to the semantic model.
105-
workspace : str | UUID, default=None
105+
workspace : str | uuid.UUID, default=None
106106
The name or ID of the Fabric workspace in which the semantic model resides.
107107
Defaults to None which resolves to the workspace of the attached lakehouse
108108
or if no lakehouse attached, resolves to the workspace of the notebook.
109-
110-
Returns
111-
-------
112109
"""
113110

114111
sempy.fabric._client._utils._init_analysis_services()

src/sempy_labs/directlake/_warm_cache.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ def warm_direct_lake_cache_perspective(
2828
2929
Parameters
3030
----------
31-
dataset : str | UUID
31+
dataset : str | uuid.UUID
3232
Name or ID of the semantic model.
3333
perspective : str
3434
Name of the perspective which contains objects to be used for warming the cache.
3535
add_dependencies : bool, default=False
3636
Includes object dependencies in the cache warming process.
37-
workspace : str | UUID, default=None
37+
workspace : str | uuid.UUID, default=None
3838
The Fabric workspace name or ID.
3939
Defaults to None which resolves to the workspace of the attached lakehouse
4040
or if no lakehouse attached, resolves to the workspace of the notebook.
@@ -138,9 +138,9 @@ def warm_direct_lake_cache_isresident(
138138
139139
Parameters
140140
----------
141-
dataset : str | UUID
141+
dataset : str | uuid.UUID
142142
Name or ID of the semantic model.
143-
workspace : str | UUID, default=None
143+
workspace : str | uuid.UUID, default=None
144144
The Fabric workspace name or ID.
145145
Defaults to None which resolves to the workspace of the attached lakehouse
146146
or if no lakehouse attached, resolves to the workspace of the notebook.

0 commit comments

Comments
 (0)