ExcelonlineClient
Classes
TableMetadata
dataclass
TableMetadata(name: Optional[str] = None, title: Optional[str] = None, x_ms_permission: Optional[str] = None, x_ms_capabilities: Optional[TableCapabilitiesMetadata] = None, schema: Optional[ObjectEntity] = None, referenced_entities: Optional[ObjectEntity] = None, web_url: Optional[str] = None)
Response for Create table
Attributes
x_ms_permission
class-attribute
instance-attribute
Table permission
ItemsList
dataclass
GetAllWorksheetsResponse
dataclass
Response for Get worksheets
CreateWorksheetInput
dataclass
WorksheetMetadata
dataclass
WorksheetMetadata(id: Optional[str] = None, name: Optional[str] = None, position: Optional[int] = None, visibility: Optional[str] = None)
Response for Create worksheet
Attributes
GetTablesResponse
dataclass
Response for Get tables
GetColumnsResponse
dataclass
Response for Get table columns
DataSetsMetadata
dataclass
DataSetsMetadata(tabular: Optional[TabularDataSetsMetadata] = None, blob: Optional[BlobDataSetsMetadata] = None)
Definition: DataSetsMetadata
TabularDataSetsMetadata
dataclass
TabularDataSetsMetadata(source: Optional[str] = None, display_name: Optional[str] = None, url_encoding: Optional[str] = None, table_display_name: Optional[str] = None, table_plural_name: Optional[str] = None)
Definition: TabularDataSetsMetadata
Attributes
display_name
class-attribute
instance-attribute
Dataset display name
url_encoding
class-attribute
instance-attribute
Dataset url encoding
table_display_name
class-attribute
instance-attribute
Table display name
BlobDataSetsMetadata
dataclass
BlobDataSetsMetadata(source: Optional[str] = None, display_name: Optional[str] = None, url_encoding: Optional[str] = None)
Definition: BlobDataSetsMetadata
Attributes
display_name
class-attribute
instance-attribute
Blob dataset display name
TableToCreate
dataclass
TableToCreate(table_name: Optional[str] = None, range: Optional[str] = None, columns_names: Optional[str] = None)
Definition: TableToCreate
Attributes
table_name
class-attribute
instance-attribute
Enter the Excel table name.
range
class-attribute
instance-attribute
Enter the table address using A1 notation.
TableCapabilitiesMetadata
dataclass
TableCapabilitiesMetadata(sort_restrictions: Optional[TableSortRestrictionsMetadata] = None, filter_restrictions: Optional[TableFilterRestrictionsMetadata] = None, select_restrictions: Optional[TableSelectRestrictionsMetadata] = None, is_only_server_pagable: Optional[bool] = None, filter_function_support: Optional[List[str]] = None, server_paging_options: Optional[List[str]] = None)
Definition: TableCapabilitiesMetadata
Attributes
is_only_server_pagable
class-attribute
instance-attribute
is_only_server_pagable: Optional[bool] = field(default=None, metadata={'wire_name': 'isOnlyServerPagable'})
Server paging restrictions
ObjectEntity
dataclass
TableSortRestrictionsMetadata
dataclass
TableSortRestrictionsMetadata(sortable: Optional[bool] = None, unsortable_properties: Optional[List[str]] = None, ascending_only_properties: Optional[List[str]] = None)
Definition: TableSortRestrictionsMetadata
Attributes
sortable
class-attribute
instance-attribute
Indicates whether this table has sortable columns
TableFilterRestrictionsMetadata
dataclass
TableFilterRestrictionsMetadata(filterable: Optional[bool] = None, non_filterable_properties: Optional[List[str]] = None, required_properties: Optional[List[str]] = None)
Definition: TableFilterRestrictionsMetadata
Attributes
filterable
class-attribute
instance-attribute
Indicates whether this table has filterable columns
TableSelectRestrictionsMetadata
dataclass
TablesList
dataclass
Table
dataclass
Table(name: Optional[str] = None, display_name: Optional[str] = None, dynamic_properties: Optional[Dict[str, Any]] = None)
Definition: Table
Attributes
name
class-attribute
instance-attribute
The name of the table. The name is used at runtime.
display_name
class-attribute
instance-attribute
The display name of the table.
BlobMetadata
dataclass
BlobMetadata(id: Optional[str] = None, name: Optional[str] = None, display_name: Optional[str] = None, path: Optional[str] = None, media_type: Optional[str] = None, is_folder: Optional[bool] = None)
Definition: BlobMetadata
Attributes
id
class-attribute
instance-attribute
The unique id of the file or folder.
name
class-attribute
instance-attribute
The name of the file or folder.
display_name
class-attribute
instance-attribute
The display name of the file or folder.
path
class-attribute
instance-attribute
The path of the file or folder.
media_type
class-attribute
instance-attribute
The media type of the file or folder.
ExcelonlineClient
ExcelonlineClient(connection_runtime_url: str, token_provider: Optional[TokenProvider] = None, options: Optional[ConnectorClientOptions] = None)
Bases: ConnectorClientBase
Typed client for excelonline connector.
Initialize a ExcelonlineClient.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
connection_runtime_url
|
str
|
The connection runtime URL from Azure Portal. |
required |
token_provider
|
Optional[TokenProvider]
|
Optional token provider. Defaults to ManagedIdentityTokenProvider. |
None
|
options
|
Optional[ConnectorClientOptions]
|
Optional connector client options. |
None
|
Methods:
create_table_async
async
Create table
Create a new table in the Excel workbook.
create_id_column_async
async
Add a key column to a table
Add a key column to an Excel table. The new column will be appended to the right. The new key column must be unique in the table.
get_items_async
async
get_items_async(drive: str, file: str, table: str, filter: Optional[str] = None, orderby: Optional[str] = None, top: Optional[int] = None, skip: Optional[int] = None, select: Optional[str] = None, date_time_format: Optional[str] = None) -> dict[str, Any] | None
List rows present in a table
List rows present in a table.
get_item_async
async
get_item_async(drive: str, file: str, table: str, id: str, id_column: str, date_time_format: Optional[str] = None) -> dict[str, Any] | None
Get a row
Get a row using a key column. This action will retrieve all the values of the specified row given a column and key column.
delete_item_async
async
Delete a row
Delete a row using a key column.
patch_item_async
async
patch_item_async(input: Item, drive: str, file: str, table: str, id: str, id_column: str, date_time_format: Optional[str] = None) -> dict[str, Any] | None
Update a row
Update a row using a key column. The input value will overwrite the specified cells and columns left blank will not be updated. In order to append (instead of overwrite) a value, use the "Get a row" action to retrieve the content first.
get_all_worksheets_async
async
Get worksheets
Get a list of worksheets in the Excel workbook.
create_worksheet_async
async
Create worksheet
Create a new worksheet in the Excel workbook.
get_tables_async
async
Get tables
Get a list of tables in the Excel workbook.