cdm_data_loaders.core.fields ¶
Common fields and defaults for data loading and wrangling pipelines.
PIPELINE_DIR_NAME
module-attribute
¶
Directory where dlt will put run metadata, schemas, etc.
REPORT_FILE_NAME
module-attribute
¶
Name of the report file.
LoaderFileFormatEnum ¶
expand_cts_glob_wildcards ¶
Replace CTS wildcard tokens in value with glob metacharacters.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
str
|
raw or CTS-tokenized glob pattern |
required |
Returns:
| Type | Description |
|---|---|
str
|
glob pattern with CTS wildcard tokens expanded |
Source code in src/cdm_data_loaders/core/fields.py
file_glob_description ¶
Build a CLI field description for file_glob including CTS wildcard tokens.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
summary
|
str
|
short description of matched input files |
required |
Returns:
| Type | Description |
|---|---|
str
|
field description with CTS wildcard token reference |