Partager via


TOMWrapper Class

Convenience wrapper around the TOM object model for a semantic model. Always use the connect_semantic_model function to make sure the TOM object is initialized correctly.

XMLA read/write endpoints must be enabled if setting the readonly parameter to False.

Inheritance
sempy.fabric._client._tom._has.HasMixin
TOMWrapper
sempy.fabric._client._tom._is.IsMixin
TOMWrapper
sempy.fabric._client._tom._used_in.UsedInMixin
TOMWrapper
sempy.fabric._client._tom._all.ListAllMixin
TOMWrapper
sempy.fabric._client._tom._get.GetMixin
TOMWrapper
sempy.fabric._client._tom._in.InMixin
TOMWrapper
sempy.fabric._client._tom._show.ShowMixin
TOMWrapper

Constructor

TOMWrapper(dataset: str, workspace: str, readonly: bool)

Parameters

Name Description
dataset
Required
str

Name of the semantic model.

workspace
Required
str

The Fabric workspace name.

readonly
Required

Whether the connection is read-only or read/write. Setting this to False enables read/write which saves the changes made back to the server.

Methods

close

Close the connection to the semantic model.

close

Close the connection to the semantic model.

close()

Attributes

dataset

The name of the semantic model.

model

The semantic model's Tabular Object Model.

workspace

The Fabric workspace name.