types#

class utils.types.BoolSelector(*args, **kwargs)[source]#
model_config: ClassVar[ConfigDict] = {'extra': 'allow', 'validate_assignment': False}#

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class utils.types.FileInfo(*, name: str, path: str, dir: str, is_directory: bool, size: int, created_at: datetime, modified_at: datetime)[source]#
model_config: ClassVar[ConfigDict] = {}#

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class utils.types.FrequencyRange(*args, frequency_low_hz: Annotated[float, Gt(gt=0)], frequency_high_hz: Annotated[float, Gt(gt=0)], **kwargs)[source]#
classmethod check_input(input)[source]#

Pydantic validator to convert the input to a dictionary when passed as a list as we have it by default in the default_settings.yaml file For example, [1,2] will be converted to {“frequency_low_hz”: 1, “frequency_high_hz”: 2}

model_config: ClassVar[ConfigDict] = {'extra': 'allow', 'validate_assignment': False}#

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].