Skip to content

Config Module

datajoint_file_validator.config.Config

Bases: BaseSettings

Config class for the application. Mimics behavior of Pydantic's BaseSettings.

Source code in datajoint_file_validator/config.py
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
class Config(BaseSettings):
    """Config class for the application. Mimics behavior of Pydantic's BaseSettings."""

    ENV_PATH = ".env"

    allow_eval: bool = True
    debug: bool = False
    enable_path_handle: bool = True
    default_query: str = "**"
    manifest_schema_parts: Path = next(
        Path(module_home) / Path("manifest_schemas/parts")
        for module_home in MODULE_HOMES
        if Path(module_home).is_dir()
    )
    manifest_schema: Path = next(
        Path(module_home) / Path("manifest_schemas/default.yaml")
        for module_home in MODULE_HOMES
        if Path(module_home).is_dir()
    )