Skip to content

Initialize a storage handler from a toml config file

Creates a StorageHandler instance for the container_key based on the toml_file.

init_handler_from_toml(
container_key,
toml_file = "container-config.toml",
env = options::opt("storage_env"),
auth_type = options::opt("auth_type")
)
Argument Description
container_key Character string. Logical container key defined in the [containers] section of the TOML file (e.g. "raw", "analytics").
toml_file Character string. Path to the TOML configuration file. Defaults to "container-config.toml".
env Storage environment. One of "local", "staging", "prod".
auth_type Azure auth method. One of "device-code", "sas-token", "client-credentials". If NULL, falls back to session auth method, then "device-code".

A Python object of class StorageHandler

[containerio_config()(containerio_config/) [init_storage_handler()(init_storage_handler/)