daft.io.AzureConfig

daft.io.AzureConfig#

class daft.io.AzureConfig(storage_account=None, access_key=None, anonymous=None)#

Create configurations to be used when accessing Azure Blob Storage

Parameters:
  • storage_account – Azure Storage Account, defaults to reading from AZURE_STORAGE_ACCOUNT environment variable.

  • access_key – Azure Secret Access Key, defaults to reading from AZURE_STORAGE_KEY environment variable

  • anonymous – Whether or not to use “anonymous mode”, which will access Azure without any credentials

Example

>>> io_config = IOConfig(azure=AzureConfig(storage_account="dafttestdata", access_key="xxx"))
>>> daft.read_parquet("az://some-path", io_config=io_config)
__init__()#

Methods

__init__()

replace([storage_account, access_key, anonymous])

Attributes

access_key

Azure Secret Access Key

storage_account

Storage Account to use when accessing Azure Storage