workflowpy.Wildcards#

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

Bases: BaseModel

Wildcards class.

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

Methods

get

Get the values of a wildcard.

set

Add a wildcard.

to_dict

Convert the wildcards to a dictionary of names and values.

Attributes

model_config

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

names

Get the names of the wildcards.

values

Get the values of the wildcards.

wildcards

List of wildcard keys and values.

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 = {}#

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