kada-gx-plugin
kada-gx-plugin generates validation results in a format for loading into the K Platform.
Plugin has been tested for only Great Expectations versions 1.0.x - 1.1.x.
Results will continue to be written to existing default validation stores, any additional actions defined for a Checkpoint is considered additional steps and does not overwrite existing steps.
Steps to use the KadaStoreValidationResultsAction from the plugin
-
Install the plugin by
pip install kada-gx-pluginto write to a local filesystem orpip install kada-gx-plugin[azure]to write to an Azure blob store. Additional azure dependencies will be required. -
Import the Checkpoint class from the plugin as there are patches made to the default class to ensure the plugin is compatible.
Import Checkpoint and KadaStoreValidationResultsAction
from kada_ge_store_plugin.kada_store_validation import KadaStoreValidationResultsAction, Checkpoint
- In your required
checkpoint, add the following action to your checkpoint actions when defining a checkpoint.AZURE_BLOB_SAS_URLis the container SAS token which is provided by KADA.prefixshould be updated to the landing folder found in K Platform Source onboarding.
Checkpoint action for writing to local filesystem
checkpoint_action_list = [
KadaStoreValidationResultsAction(
name='this can be any name',
prefix='my-path/inside/test-results-directory',
test_directory='/tmp/test-results-directory
)
]
This will write validation result files to /tmp/test-results-directory/my-path/inside/test-results-directory
Checkpoint action for writing to Azure blob store
checkpoint_action_list = [
KadaStoreValidationResultsAction(
name='this can be any name',
prefix='my-path/inside/test-results-directory',
azure_blob_sas_url='${AZURE_BLOB_SAS_URL}'
)
]
- Define the variable
AZURE_BLOB_SAS_URL. Inuncommited/config_variables.ymladd the variableAZURE_BLOB_SAS_URL: <SAS url blob >or alternatively setAZURE_BLOB_SAS_URLin the environment variables. OR alternatively if you using a codified approach just define it as a standard python varaible and change the definition like so
checkpoint_action_list = [
KadaStoreValidationResultsAction(
name='this can be any name',
prefix='my-path/inside/test-results-directory',
azure_blob_sas_url=AZURE_BLOB_SAS_URL
)
]
Metadata
Release files for kada-gx-plugin 2.0.18
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| kada_gx_plugin-2.0.18.tar.gz | 819.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| kada_gx_plugin-2.0.18-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.6 MB
Release files / kada_gx_plugin-2.0.18.tar.gz
| Download URL | kada_gx_plugin-2.0.18.tar.gz |
|---|---|
| Size | 819.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
886dca5c282a00ab37a00f5c89525a123641674a6ed50eef66dc62e198aea18d
|
|
BLAKE2b-256 checksum How to use checksums |
ca4482caf578b5e53d2c39a880cab419a70d76503ffd77fea21d035017ccabe9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.5
|
Release files / kada_gx_plugin-2.0.18-py3-none-any.whl
| Download URL | kada_gx_plugin-2.0.18-py3-none-any.whl |
|---|---|
| Size | 826.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5085c80ff98c90e5d5a29713ab824b8b311b350e6dc59635b678e27f73856d1f
|
|
BLAKE2b-256 checksum How to use checksums |
cd56621cea6be96ec78a3e73449283e29130ab8f5ef84d92c58bb98d03cc1bb6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.5
|