Skip to main content

ABFS

Any Azure Blob Storage specific configuration.

Attributes

AttributeTypeDescription
account_nametyping.Optional[str] = NoneThe unique name of the Azure Storage account used for authentication and identifying the storage resource.
account_keytyping.Optional[str] = NoneThe secret access key associated with the Azure Storage account for authorizing requests.
tenant_idtyping.Optional[str] = NoneThe Azure Active Directory tenant ID used for service principal authentication.
client_idtyping.Optional[str] = NoneThe application or client ID used to authenticate a service principal against Azure.
client_secrettyping.Optional[str] = NoneThe client secret or password for the service principal used during authentication.

Methods


auto()

@classmethod
def auto() - > [ABFS](abfs.md?sid=flyte_storage__config_abfs)

Creates an ABFS instance by automatically retrieving Azure credentials from environment variables. This method checks for account names, keys, and service principal details defined in the environment to simplify storage configuration.

Returns

TypeDescription
[ABFS](abfs.md?sid=flyte_storage__config_abfs)An initialized ABFS storage object populated with credentials found in the environment.

get_fsspec_kwargs()

@classmethod
def get_fsspec_kwargs(
anonymous: bool = False,
**kwargs: any
) - > typing.Dict[str, typing.Any]

Builds a dictionary of configuration arguments compatible with fsspec for Azure Blob Storage. It merges instance-level credentials with provided overrides to facilitate authenticated filesystem connections.

Parameters

NameTypeDescription
anonymousbool = FalseWhether to connect without authentication; if True, credentials will be omitted from the resulting configuration.
**kwargsanyAdditional keyword arguments to be merged into or override the default storage configuration.

Returns

TypeDescription
typing.Dict[str, typing.Any]A dictionary containing connection parameters and a nested config object with Azure authentication details.