dlt.common.storages.configuration
SchemaStorageConfiguration Objects
@configspec
class SchemaStorageConfiguration(BaseConfiguration)
schema_volume_path
path to volume with default schemas
import_schema_path
path from which to import a schema into storage
export_schema_path
path to which export schema from storage
external_schema_format
format in which to expect external schema
NormalizeStorageConfiguration Objects
@configspec
class NormalizeStorageConfiguration(BaseConfiguration)
normalize_volume_path
path to volume where normalized loader files will be stored
ensure_canonical_az_url
def ensure_canonical_az_url(bucket_url: str,
target_scheme: str,
storage_account_name: str = None,
account_host: str = None) -> str
Converts any of the forms of azure blob storage into canonical form of {target_scheme}://<container_name>@<storage_account_name>.{account_host}/path
azure_storage_account_name is optional only if not present in bucket_url, account_host assumes "<azure_storage_account_name>.dfs.core.windows.net" by default
make_fsspec_url
def make_fsspec_url(scheme: str, fs_path: str, bucket_url: str) -> str
Creates url from fs_path and scheme using bucket_url as an url template, if fs_path
ends with separator (indicating folder), it is preserved
Arguments:
schemestr - scheme of the resulting urlfs_pathstr - kind of absolute path that fsspec uses to locate resources for particular filesystem.bucket_urlstr - an url template. the structure of url will be preserved if possible