Skip to content

base

pyvider.data_sources.base

TODO: Add module docstring.

Classes

BaseDataSource

Bases: ABC, Generic[DataSourceType, StateType, ConfigType]

Functions
validate async
validate(config: ConfigType | None) -> list[str]

Runs custom validation logic for the data source's configuration. This is the template method that calls the developer-implemented hook.

Source code in pyvider/data_sources/base.py
async def validate(self, config: ConfigType | None) -> list[str]:
    """
    Runs custom validation logic for the data source's configuration.
    This is the template method that calls the developer-implemented hook.
    """
    if config is None:
        return []
    return await self._validate_config(config)