Batcher (autotransform.batcher.base)
The base class and associated classes for Batcher components.
- class autotransform.batcher.base.Batch
Bases:
TypedDict
A logical grouping of Items with title and associated metadata.
- metadata: NotRequired[Mapping[str, Any]]
- title: str
- class autotransform.batcher.base.Batcher
Bases:
NamedComponent
The base for Batcher components. Used by AutoTransform to separate Items in to logical groupings that can be acted on indepently and have associated metadata.
- name
The name of the Component.
- Type:
ClassVar[BatcherName]
- abstract batch(items: Sequence[Item]) List[Batch]
Take filtered Items and separate in to logical groupings with associated group metadata and title.
- model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}
A dictionary of computed field names and their corresponding ComputedFieldInfo objects.
- model_config: ClassVar[ConfigDict] = {}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_fields: ClassVar[dict[str, FieldInfo]] = {}
Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].
This replaces Model.__fields__ from Pydantic V1.
- name: ClassVar[BatcherName]