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.
Constructor
TOMWrapper(dataset: str, workspace: str, readonly: bool, credential: TokenCredential | None = None)
Parameters
| Name | Description |
|---|---|
|
dataset
Required
|
Name of the semantic model. |
|
workspace
Required
|
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. |
|
credential
|
<xref:sempy.fabric.TokenCredential>
The credential to acquire the token. If not provided, the default credential will be used. Default value: None
|
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.