Config¶
Top-level pipeline configuration model wrapping a source.
- class scamander.models.config.Config(*, source: SourceConfig)¶
Basisklassen:
BaseModelRoot configuration passed to
Source— its__new__factory readssource.typeto pick the concrete connector.- source¶
Source connection and read options.
source.typedetermines which connectorSourceinstantiates.
Example:
from scamander.models.config import Config config = Config.model_validate({ "source": { "type": "csv", "options": {"file_path": "/data/customers.csv"}, }, })
- model_config = {}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].