kiara.config¶
KiaraConfig
pydantic-model
¶
data_store: str
pydantic-field
¶
The path to the local kiara data store.
default_processor: Union[kiara.processing.synchronous.SynchronousProcessorConfig, kiara.processing.parallel.ThreadPoolProcessorConfig]
pydantic-field
¶
The configuration for the default processor to use.
extra_pipeline_folders: List[str]
pydantic-field
¶
Paths to local folders that contain kiara pipelines.
ignore_errors: bool
pydantic-field
¶
If set, kiara will try to ignore most errors (that can be ignored).
module_managers: List[Union[kiara.module_mgmt.python_classes.PythonModuleManagerConfig, kiara.module_mgmt.pipelines.PipelineModuleManagerConfig]]
pydantic-field
¶
The module managers to use in this kiara instance.
yaml_config_settings_source(settings)
¶
A simple settings source that loads variables from a JSON file at the project's root.
Here we happen to choose to use the env_file_encoding
from Config
when reading config.json
Source code in kiara/config.py
def yaml_config_settings_source(settings: BaseSettings) -> typing.Dict[str, typing.Any]:
"""
A simple settings source that loads variables from a JSON file
at the project's root.
Here we happen to choose to use the `env_file_encoding` from Config
when reading `config.json`
"""
config_file = os.path.join(kiara_app_dirs.user_config_dir, "config.yaml")
if os.path.exists(config_file):
data = get_data_from_file(config_file)
return data
else:
return {}