data_designer.config.validator_params
data_designer.config.validator_params
data_designer.config.validator_params
SUPPORTED_CODE_LANGUAGES
ValidatorParamsT
Bases: str, enum.Enum
Bases: data_designer.config.base.ConfigBase
Configuration for code validation. Supports Python and SQL code validation.
Parameters:
The language of the code to validate. Supported values include: python,
sql:sqlite, sql:postgres, sql:mysql, sql:tsql, sql:bigquery, sql:ansi.
Attributes:
The language of the code to validate. Supported values include: python,
sql:sqlite, sql:postgres, sql:mysql, sql:tsql, sql:bigquery, sql:ansi.
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.base.ConfigBase
Configuration for local callable validation. Expects a function to be passed that validates the data.
Parameters:
Function (Callable[[pd.DataFrame], pd.DataFrame]) to validate the
data. Output must contain a column is_valid of type bool.
The JSON schema for the local callable validator’s output. If not provided, the output will not be validated.
Attributes:
Function (Callable[[pd.DataFrame], pd.DataFrame]) to validate the
data. Output must contain a column is_valid of type bool.
The JSON schema for the local callable validator’s output. If not provided, the output will not be validated.
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.base.ConfigBase
Configuration for remote validation. Sends data to a remote endpoint for validation.
Parameters:
The URL of the remote endpoint.
The JSON schema for the remote validator’s output. If not provided, the output will not be validated.
The timeout for the HTTP request in seconds. Defaults to 30.0.
The maximum number of retry attempts. Defaults to 3.
The backoff factor for the retry delay in seconds. Defaults to 2.0.
The maximum number of parallel requests to make. Defaults to 4.
Attributes:
The URL of the remote endpoint.
The JSON schema for the remote validator’s output. If not provided, the output will not be validated.
The timeout for the HTTP request in seconds. Defaults to 30.0.
The maximum number of retry attempts. Defaults to 3.
The backoff factor for the retry delay in seconds. Defaults to 2.0.
The maximum number of parallel requests to make. Defaults to 4.
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.