validatex.config package
Submodules
validatex.config.loader module
Config loader — read YAML / JSON checkpoint files.
A checkpoint file ties together a data source and an expectation suite so that validations can be run declaratively from the CLI.
- class validatex.config.loader.CheckpointConfig(name: str = 'default_checkpoint', suite_path: str = '', data_source: Dict[str, ~typing.Any]=<factory>, engine: str = 'pandas', report: Dict[str, ~typing.Any]=<factory>)[source]
Bases:
objectRepresents a checkpoint configuration.
- name
Checkpoint name.
- Type:
str
- suite_path
Path to the expectation suite YAML/JSON file.
- Type:
str
- data_source
Data source configuration (type, path, query, etc.).
- Type:
dict
- engine
Engine to use:
"pandas"or"spark".- Type:
str
- report
Report configuration (format, output_path).
- Type:
dict
- data_source: Dict[str, Any]
- engine: str = 'pandas'
- load_suite() ExpectationSuite[source]
Load the expectation suite from the configured path.
- name: str = 'default_checkpoint'
- report: Dict[str, Any]
- suite_path: str = ''
- validatex.config.loader.load_checkpoint(filepath: str) CheckpointConfig[source]
Load a checkpoint configuration from a YAML or JSON file.
- Parameters:
filepath (str) – Path to the checkpoint config file.
- Return type:
Module contents
Configuration module.