spras.config package

Submodules

spras.config.config module

spras.config.schema module

spras.config.util module

General config utilities. This is the only config file that should be imported by algorithms, and algorithms should only import this config file.

class spras.config.util.CaseInsensitiveEnum(value)

Bases: str, Enum

We prefer this over Enum to make sure the config parsing is more relaxed when it comes to string enum values.

class spras.config.util.Empty

Bases: BaseModel

The empty base model. Used for specifying that an algorithm takes no parameters, yet is deterministic.

model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

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

Module contents