flowrep.parsers.attribute_parser module

The .attr link of a data-access chain (see chain_parser).

obj.attr becomes one std.get_attr node whose name input is fed by a ConstantRecipe peer carrying the attribute name.

class flowrep.parsers.attribute_parser.AttributeHandler[source]

Bases: object

One std.get_attr node per .attr link, plus its name constant.

feed_key(link: expr, symbol_map: SymbolScope, nodes: dict[Annotated[str, BeforeValidator(func=_validate_label, json_schema_input_type=PydanticUndefined)], Annotated[AtomicRecipe | ConstantRecipe | ForEachRecipe | IfRecipe | TryRecipe | WhileRecipe | WorkflowRecipe, FieldInfo(annotation=NoneType, required=True, discriminator='type')]], label: str, port: str) None[source]
port_base(link: expr) str[source]
property recipe: AtomicRecipe