data_designer.config.seed_source
data_designer.config.seed_source
data_designer.config.seed_source
Bases: pydantic.BaseModel, abc.ABC
Base class for seed dataset configurations.
All subclasses must define a seed_type field with a Literal value.
This serves as a discriminated union discriminator.
Parameters:
Discriminator field that identifies the specific seed source type.
Subclasses must override this field with a Literal value.
Attributes:
Discriminator field that identifies the specific seed source type.
Subclasses must override this field with a Literal value.
Initialization:
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be
validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
Bases: data_designer.config.seed_source.SeedSource
Bases: data_designer.config.seed_source.SeedSource
Bases: data_designer.config.seed_source.SeedSource, abc.ABC
Base class for seed sources backed by a directory of files.
Use this base when a seed reader needs to enumerate files under a directory
on disk and turn each (or groups of them) into seed rows. Concrete plugin
configs declare a Literal seed_type and pair with a
FileSystemSeedReader implementation.
Parameters:
Directory containing seed artifacts. Relative paths are resolved from the current working directory when the config is loaded, not from the config file location.
Case-sensitive filename pattern used to match files under
the provided directory. Patterns match basenames only, not relative
paths. Defaults to '*'.
Whether to search nested subdirectories under the provided
directory for matching files. Defaults to True.
Attributes:
Directory containing seed artifacts. Relative paths are resolved from the current working directory when the config is loaded, not from the config file location.
Case-sensitive filename pattern used to match files under
the provided directory. Patterns match basenames only, not relative
paths. Defaults to '*'.
Whether to search nested subdirectories under the provided
directory for matching files. Defaults to True.
Initialization:
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be
validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
Bases: data_designer.config.seed_source.FileSystemSeedSource
Bases: data_designer.config.seed_source.FileSystemSeedSource
Bases: data_designer.config.utils.type_helpers.StrEnum
Bases: data_designer.config.seed_source.FileSystemSeedSource