ABFS
This class holds configuration specific to Azure Blob Storage, including account credentials and authentication details. It supports automatic loading of configuration from environment variables and provides methods to generate keyword arguments for fsspec, facilitating integration with Azure Blob Storage services.
Attributes
-
account_name: typing.Optional[str] = None
- Azure Blob Storage account name.
-
account_key: typing.Optional[str] = None
- Azure Blob Storage account key.
-
tenant_id: typing.Optional[str] = None
- Azure Blob Storage tenant ID.
-
client_id: typing.Optional[str] = None
- Azure Blob Storage client ID.
-
client_secret: typing.Optional[str] = None
- Azure Blob Storage client secret.
Constructors
-
Initializes the ABFS class with optional Azure Blob Storage configuration parameters.
-
Parameters
- account_name: typing.Optional[str]
- The Azure Storage account name.
- account_key: typing.Optional[str]
- The Azure Storage account key.
- tenant_id: typing.Optional[str]
- The Azure tenant ID.
- client_id: typing.Optional[str]
- The Azure client ID.
- client_secret: typing.Optional[str]
- The Azure client secret.
- account_name: typing.Optional[str]
Methods
def auto()
-
Automatically configure ABFS based on environment variables.
-
Return Value: ABFS
- An instance of ABFS configured with environment variables.
def get_fsspec_kwargs(anonymous: bool = False, kwargs: typing.Dict[str, typing.Any]) - > typing.Dict[str, typing.Any]
-
Get fsspec keyword arguments for ABFS.
-
Parameters
- anonymous: bool
- If True, skip signature.
- kwargs: typing.Dict[str, typing.Any]
- Additional keyword arguments.
- anonymous: bool
-
Return Value: typing.Dict[str, typing.Any]
- A dictionary of keyword arguments for fsspec.