hydroflows.workflow.Wildcards#

class hydroflows.workflow.Wildcards(*, wildcards: dict[str, list[str]] = {})[source]#

Bases: BaseModel

Wildcards class.

This class is used to define the wildcards for the workflow.

field wildcards: dict[str, list[str]] = {}#

List of wildcard keys and values.

property names: list[str]#

Get the names of the wildcards.

property values: list[list]#

Get the values of the wildcards.

to_dict() dict[str, list][source]#

Convert the wildcards to a dictionary of names and values.

set(key: str, values: list[str])[source]#

Add a wildcard.

get(key: str) list[str][source]#

Get the values of a wildcard.

model_config: ClassVar[ConfigDict] = {}#

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