hydroflows.workflow.WorkflowConfig#

class hydroflows.workflow.WorkflowConfig(**extra_data: Any)[source]#

Bases: BaseModel

Workflow configuration class.

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

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

to_dict(mode: Literal['python', 'json'] = 'python', posix_path: bool = False, **kwargs) Dict[str, Any][source]#

Return the configuration as a dictionary.

Parameters:
  • mode (Literal["python", "json"], optional) – The serialization mode, by default “python”

  • posix_path (bool, optional) – Convert Path objects to posix paths (str), by default False

property keys: List[str]#

Return the model fields.

property values: List[Any]#

Return the model values.