Item (autotransform.item.base)
The base class and associated classes for Item components. Can be used as a generic Item.
- class autotransform.item.base.Item(*, key: str, extra_data: Dict[str, Any] | None = None)
Bases:
NamedComponentThe base for Item components. Returned by Input components and act as the units on which AutoTransform operates.
- key
A unique key used to represent this item, such as a file path.
- Type:
str
- extra_data
Any extra data that needs to be associated with this Item. Should be JSON encodable. Defaults to None.
- Type:
Optional[Dict[str, Any]], optional
- extra_data: Dict[str, Any] | None
- key: str
- model_config: ClassVar[ConfigDict] = {}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].