mafw.models.processor_schema

Schemas describing a processor.

These light-weight dataclasses capture the static metadata that is declared through Processor definitions and can be consumed by tooling without instantiating the processor itself.

Classes

ProcessorSchema(parameters, filter)

Static metadata describing a processor.

class mafw.models.processor_schema.ProcessorSchema(parameters: List[ParameterSchema], filter: FilterSchema | None)[source]

Bases: object

Static metadata describing a processor.

Parameters:
  • parameters – List of parameter schemas.

  • filter – Optional filter schema.

get_parameter(parameter_name: str) ParameterSchema[source]

Return the parameter schema for the given parameter name.

get_parameter_names() list[str][source]

Return the list of parameter names.