diff --git a/README.md b/README.md index 35084f1..c3f2094 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Semantic Link Labs [![PyPI version](https://badge.fury.io/py/semantic-link-labs.svg)](https://badge.fury.io/py/semantic-link-labs) -[![Read The Docs](https://readthedocs.org/projects/semantic-link-labs/badge/?version=0.8.10&style=flat)](https://readthedocs.org/projects/semantic-link-labs/) +[![Read The Docs](https://readthedocs.org/projects/semantic-link-labs/badge/?version=0.8.11&style=flat)](https://readthedocs.org/projects/semantic-link-labs/) [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black) [![Downloads](https://static.pepy.tech/badge/semantic-link-labs)](https://pepy.tech/project/semantic-link-labs) @@ -116,6 +116,7 @@ An even better way to ensure the semantic-link-labs library is available in your 2. Select your newly created environment within the 'Environment' drop down in the navigation bar at the top of the notebook ## Version History +* [0.8.11](https://github.com/microsoft/semantic-link-labs/releases/tag/0.8.11) (December 19, 2024) * [0.8.10](https://github.com/microsoft/semantic-link-labs/releases/tag/0.8.10) (December 16, 2024) * [0.8.9](https://github.com/microsoft/semantic-link-labs/releases/tag/0.8.9) (December 4, 2024) * [0.8.8](https://github.com/microsoft/semantic-link-labs/releases/tag/0.8.8) (November 28, 2024) diff --git a/docs/source/conf.py b/docs/source/conf.py index cbee739..d60db77 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -13,7 +13,7 @@ project = 'semantic-link-labs' copyright = '2024, Microsoft and community' author = 'Microsoft and community' -release = '0.8.10' +release = '0.8.11' # -- General configuration --------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration diff --git a/pyproject.toml b/pyproject.toml index 63e97bf..eaa24e1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,7 +7,7 @@ name="semantic-link-labs" authors = [ { name = "Microsoft Corporation" }, ] -version="0.8.10" +version="0.8.11" description="Semantic Link Labs for Microsoft Fabric" readme="README.md" requires-python=">=3.10,<3.12" diff --git a/src/sempy_labs/_connections.py b/src/sempy_labs/_connections.py index 4f44dcc..0df5a23 100644 --- a/src/sempy_labs/_connections.py +++ b/src/sempy_labs/_connections.py @@ -485,7 +485,7 @@ def create_vnet_connection( user_name: str, password: str, privacy_level: str, - connection_encryption: Optional[str] = "NotEncrypted", + connection_encryption: str = "NotEncrypted", skip_test_connection: bool = False, ): """ diff --git a/src/sempy_labs/_environments.py b/src/sempy_labs/_environments.py index 251abf6..2dedafa 100644 --- a/src/sempy_labs/_environments.py +++ b/src/sempy_labs/_environments.py @@ -134,6 +134,8 @@ def publish_environment(environment: str, workspace: Optional[str | UUID] = None """ Publishes a Fabric environment. + This is a wrapper function for the following API: `Spark Libraries - Publish Environment `_. + Parameters ---------- environment: str @@ -144,8 +146,6 @@ def publish_environment(environment: str, workspace: Optional[str | UUID] = None or if no lakehouse attached, resolves to the workspace of the notebook. """ - # https://learn.microsoft.com/en-us/rest/api/fabric/environment/spark-libraries/publish-environment?tabs=HTTP - from sempy_labs._helper_functions import resolve_environment_id (workspace_name, workspace_id) = resolve_workspace_name_and_id(workspace) diff --git a/src/sempy_labs/_helper_functions.py b/src/sempy_labs/_helper_functions.py index 3248cb1..64b33f4 100644 --- a/src/sempy_labs/_helper_functions.py +++ b/src/sempy_labs/_helper_functions.py @@ -306,7 +306,7 @@ def resolve_lakehouse_id( def get_direct_lake_sql_endpoint( - dataset: str | UUID, workspace: Optional[str] = None + dataset: str | UUID, workspace: Optional[str | UUID] = None ) -> UUID: """ Obtains the SQL Endpoint ID of the semantic model. diff --git a/src/sempy_labs/directlake/_update_directlake_model_lakehouse_connection.py b/src/sempy_labs/directlake/_update_directlake_model_lakehouse_connection.py index 3000deb..119d2ae 100644 --- a/src/sempy_labs/directlake/_update_directlake_model_lakehouse_connection.py +++ b/src/sempy_labs/directlake/_update_directlake_model_lakehouse_connection.py @@ -83,7 +83,7 @@ def update_direct_lake_model_connection( dataset: str | UUID, workspace: Optional[str | UUID] = None, source: Optional[str] = None, - source_type: Optional[str] = "Lakehouse", + source_type: str = "Lakehouse", source_workspace: Optional[str | UUID] = None, ): """ diff --git a/src/sempy_labs/directlake/_update_directlake_partition_entity.py b/src/sempy_labs/directlake/_update_directlake_partition_entity.py index 2803718..fcd6efc 100644 --- a/src/sempy_labs/directlake/_update_directlake_partition_entity.py +++ b/src/sempy_labs/directlake/_update_directlake_partition_entity.py @@ -24,13 +24,13 @@ def update_direct_lake_partition_entity( Parameters ---------- - dataset : str | UUID + dataset : str | uuid.UUID Name or ID of the semantic model. table_name : str, List[str] Name of the table(s) in the semantic model. entity_name : str, List[str] Name of the lakehouse table to be mapped to the semantic model table. - workspace : str | UUID, default=None + workspace : str | uuid.UUID, default=None The Fabric workspace name or ID in which the semantic model exists. Defaults to None which resolves to the workspace of the attached lakehouse or if no lakehouse attached, resolves to the workspace of the notebook. @@ -94,7 +94,7 @@ def add_table_to_direct_lake_semantic_model( Parameters ---------- - dataset : str | UUID + dataset : str | uuid.UUID Name or ID of the semantic model. table_name : str, List[str] Name of the table in the semantic model. @@ -102,13 +102,10 @@ def add_table_to_direct_lake_semantic_model( The name of the Fabric lakehouse table. refresh : bool, default=True Refreshes the table after it is added to the semantic model. - workspace : str | UUID, default=None + workspace : str | uuid.UUID, default=None The name or ID of the Fabric workspace in which the semantic model resides. Defaults to None which resolves to the workspace of the attached lakehouse or if no lakehouse attached, resolves to the workspace of the notebook. - - Returns - ------- """ sempy.fabric._client._utils._init_analysis_services() diff --git a/src/sempy_labs/directlake/_warm_cache.py b/src/sempy_labs/directlake/_warm_cache.py index ec8ab27..7272930 100644 --- a/src/sempy_labs/directlake/_warm_cache.py +++ b/src/sempy_labs/directlake/_warm_cache.py @@ -28,13 +28,13 @@ def warm_direct_lake_cache_perspective( Parameters ---------- - dataset : str | UUID + dataset : str | uuid.UUID Name or ID of the semantic model. perspective : str Name of the perspective which contains objects to be used for warming the cache. add_dependencies : bool, default=False Includes object dependencies in the cache warming process. - workspace : str | UUID, default=None + workspace : str | uuid.UUID, default=None The Fabric workspace name or ID. Defaults to None which resolves to the workspace of the attached lakehouse or if no lakehouse attached, resolves to the workspace of the notebook. @@ -138,9 +138,9 @@ def warm_direct_lake_cache_isresident( Parameters ---------- - dataset : str | UUID + dataset : str | uuid.UUID Name or ID of the semantic model. - workspace : str | UUID, default=None + workspace : str | uuid.UUID, default=None The Fabric workspace name or ID. Defaults to None which resolves to the workspace of the attached lakehouse or if no lakehouse attached, resolves to the workspace of the notebook.