Batcher (autotransform.batcher.base)
The base class and associated classes for Batcher components.
- class autotransform.batcher.base.Batch
Bases:
TypedDictA logical grouping of Items with title and associated metadata.
- metadata: NotRequired[Mapping[str, Any]]
- title: str
- class autotransform.batcher.base.Batcher
Bases:
NamedComponentThe 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_config: ClassVar[ConfigDict] = {}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- name: ClassVar[BatcherName]