Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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.14.2&style=flat)](https://readthedocs.org/projects/semantic-link-labs/)
[![Read The Docs](https://readthedocs.org/projects/semantic-link-labs/badge/?version=0.14.3&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)

Expand Down Expand Up @@ -131,6 +131,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.14.3](https://github.com/microsoft/semantic-link-labs/releases/tag/0.14.3) (April 13, 2026)
* [0.14.2](https://github.com/microsoft/semantic-link-labs/releases/tag/0.14.2) (April 7, 2026)
* [0.14.1](https://github.com/microsoft/semantic-link-labs/releases/tag/0.14.1) (March 23, 2026)
* [0.14.0](https://github.com/microsoft/semantic-link-labs/releases/tag/0.14.0) (March 18, 2026)
Expand Down
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
project = 'semantic-link-labs'
copyright = '2026, Microsoft and community'
author = 'Microsoft and community'
release = '0.14.2'
release = '0.14.3'

# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ name="semantic-link-labs"
authors = [
{ name = "Microsoft Corporation" },
]
version="0.14.2"
version="0.14.3"
description="Semantic Link Labs for Microsoft Fabric"
readme="README.md"
requires-python=">=3.10,<3.13"
Expand Down
2 changes: 1 addition & 1 deletion src/sempy_labs/_a_lib_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from pathlib import Path

lib_name = "semanticlinklabs"
lib_version = "0.14.2"
lib_version = "0.14.3"

NUGET_BASE_URL = "https://www.nuget.org/api/v2/package"
current_dir = Path(__file__).parent
Expand Down
27 changes: 16 additions & 11 deletions src/sempy_labs/_helper_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -1621,25 +1621,30 @@ def lro(


def pagination(client, response):

responses = []
response_json = response.json()
responses.append(response_json)

# Check for pagination
continuation_token = response_json.get("continuationToken")
continuation_uri = response_json.get("continuationUri")

# Loop to handle pagination
while continuation_token is not None:
response = client.get(continuation_uri)
while True:
response_json = response.json()
responses.append(response_json)

# Update the continuation token and URI for the next iteration
continuation_token = response_json.get("continuationToken")
continuation_uri = response_json.get("continuationUri")

# Stop when no more pages
if not continuation_token:
break

try:
response = client.get(continuation_uri)

except FabricHTTPException as e:
# Handle FabricHTTPException (404)
if e.status_code == 404:
return responses

# If it's something else, re-raise
raise FabricHTTPException(response)

return responses


Expand Down
34 changes: 19 additions & 15 deletions src/sempy_labs/admin/_basic_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ def list_workspaces(
"State": "string",
"Type": "string",
"Capacity Id": "string",
"Tags": "string",
"Domain Id": "string",
}
df = _create_dataframe(columns=columns)

Expand All @@ -92,24 +94,26 @@ def list_workspaces(
url = _build_url(url, params)

responses = _base_api(request=url, client="fabric_sp", uses_pagination=True)
workspaces = []

if not responses:
return df

rows = []
for r in responses:
workspaces = workspaces + r.get("workspaces", [])

if len(workspaces) > 0:
df = pd.DataFrame(workspaces)
df.rename(
columns={
"id": "Id",
"name": "Name",
"state": "State",
"type": "Type",
"capacityId": "Capacity Id",
},
inplace=True,
)
for w in r.get("workspaces", []):
rows.append({
"Id": w.get("id"),
"Name": w.get("name"),
"State": w.get("state"),
"Type": w.get("type"),
"Capacity Id": w.get("capacityId"),
"Tags": w.get("tags"),
"Domain Id": w.get("domainId"),

})

if rows:
df = pd.DataFrame(rows, columns=list(columns.keys()))
df["Capacity Id"] = df["Capacity Id"].str.lower()

if workspace is not None and _is_valid_uuid(workspace):
Expand Down
2 changes: 1 addition & 1 deletion src/sempy_labs/admin/_tenant.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def list_tenant_settings() -> pd.DataFrame:
"Enabled": i.get("enabled"),
"Can Specify Security Groups": i.get("canSpecifySecurityGroups"),
"Tenant Setting Group": i.get("tenantSettingGroup"),
"Enabled Security Groups": [i.get("enabledSecurityGroups", [])],
"Enabled Security Groups": i.get("enabledSecurityGroups", []),
}
)

Expand Down
Loading