tabsdata.AzureDestination#

class AzureDestination(uri: str | List[str], credentials: dict | AzureCredentials, format: str | dict | FileFormat = None)[source]#

Bases: Output

Class for managing the configuration of Azure-file-based data outputs.

format#

The format of the file to be created. If not provided, it will be inferred from the file extension.

Type:

FileFormat

uri#

The URI of the files with format: ‘az://path/to/files’. It can be a single URI or a list of URIs.

Type:

str | List[str]

credentials#

The credentials required to access Azure.

Type:

AzureCredentials

to_dict()[source]#

Converts the AzureDestination object to a dictionary.

__init__(uri: str | List[str], credentials: dict | AzureCredentials, format: str | dict | FileFormat = None)[source]#
Initializes the AzureDestination with the given URI and the credentials

required to access Azure; and optionally a format.

Parameters:
  • uri (str | List[str]) – The URI of the files to export with format: ‘az://path/to/files’. It can be a single URI or a list of URIs.

  • credentials (dict | AzureCredentials) – The credentials required to access Azure. Can be a dictionary or a AzureCredentials object.

  • format (str | dict | FileFormat, optional) – The format of the file. If not provided, it will be inferred from the file extension. Can be either a string with the format, a FileFormat object or a dictionary with the format as the ‘type’ key and any additional format-specific information. Currently supported formats are ‘csv’, ‘parquet’, ‘ndjson’ and ‘jsonl’.

Raises:
  • OutputConfigurationError

  • FormatConfigurationError

Methods

__init__(uri, credentials[, format])

Initializes the AzureDestination with the given URI and the credentials

Attributes

allow_fragments

Whether to allow fragments in the output.

credentials

The credentials required to access Azure.

format

The format of the file.

uri

'az://path/to/files'.