FileRegexBatcher (autotransform.batcher.regex)
The implementation for the RegexBatcher.
- class autotransform.batcher.regex.FileRegexBatcher(*, group_by: str, metadata_keys: ~typing.Dict[str, str] = <factory>)
Bases:
BatcherA Batcher which uses matches from regex on file content to group Items.
- group_by
The regex which produces the group by value.
- Type:
str
- metadata_keys
A mapping from key to a regex that produces values for that key.
- Type:
optional, Dict[str, str]
- name
The name of the Component.
- Type:
ClassVar[BatcherName]
- group_by: str
- metadata_keys: Dict[str, str]
- model_config: ClassVar[ConfigDict] = {}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- name: ClassVar[BatcherName] = 'file_regex'