flytekitplugins.great_expectations.GreatExpectationsFlyteConfig#
- class flytekitplugins.great_expectations.GreatExpectationsFlyteConfig(datasource_name, expectation_suite_name, data_connector_name, data_asset_name=None, local_file_path=None, checkpoint_params=None, batch_request_config=None, context_root_dir='./great_expectations')#
Use this configuration to configure GreatExpectations Plugin.
- Parameters:
datasource_name (str) – tell where your data lives and how to get it
expectation_suite_name (str) – suite which consists of the data expectations
data_connector_name (str) – connector to identify data batches
data_asset_name (str | None) – name of the data asset (to be used for RuntimeBatchRequest)
local_file_path (str | None) – dataset file path useful for FlyteFile and FlyteSchema
checkpoint_params (Dict[str, str | List[str]] | None) – optional SimpleCheckpoint parameters
batch_request_config (BatchRequestConfig | None) – batchrequest config
context_root_dir (str) – directory in which GreatExpectations’ configuration resides
Methods
- classmethod from_dict(kvs, *, infer_missing=False)#
- classmethod from_json(s, *, parse_float=None, parse_int=None, parse_constant=None, infer_missing=False, **kw)#
- classmethod schema(*, infer_missing=False, only=None, exclude=(), many=False, context=None, load_only=(), dump_only=(), partial=False, unknown=None)#
- to_json(*, skipkeys=False, ensure_ascii=True, check_circular=True, allow_nan=True, indent=None, separators=None, default=None, sort_keys=False, **kw)#
Attributes
- batch_request_config: BatchRequestConfig | None = None
- context_root_dir: str = './great_expectations'
- data_asset_name: str | None = None
local_file_path is a must in two scenrios: * When using FlyteSchema * When using FlyteFile for remote paths This is because base directory which has the dataset file ‘must’ be given in GreatExpectations’ config file
- dataclass_json_config = None
- datasource_name: str
- expectation_suite_name: str
- data_connector_name: str