ODD adapter to Great Expectations
Project description
ODD GreatExpectation adapter
Library for GreatExpectation schema compatible json files for suites and validation, reads them from s3 storage and ingests to OpenDataDiscovery platform.
Suites must include special metadata about folder with data which will be validated in the future. Example
{
"expectation_suite_name": "notification",
...
"meta": {
"batch_kwargs": {
...
"odd_metadata": [
"s3://bucket/folder"
]
}
}
}
Validation results must include metadata about which file was validated. Example
{
"meta": {
"batch_kwargs": {
...
"odd_metadata": [
"s3://bucket/folder/file.csv"
]
},
...
"validation_time": "20220525T174015.717924Z"
},
"results": [...],
"success": true
}
Library usage
Install package
pip install odd-ge-adapter
Example:
from odd_models.api_client import ODDApiClient
from odd_ge_adapter.domain.plugin import S3StoragePlugin
from odd_ge_adapter.adapters.s3.adapter import Adapter
platform = ODDApiClient(<PLATFORM_URL>)
# aws credentials can be omitted and taken from the ENV variables
config = S3StoragePlugin(
type="s3",
name="s3_storage",
bucket="",
results_key="",
suites_key="",
# aws_account_id="",
# aws_region="",
# aws_access_key_id="",
# aws_secret_access_key="",
# aws_session_token=""
)
adapter = Adapter(config)
platform.post_data_entity_list(data=adapter.get_data_entity_list())
As collector usage
In progress...
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file odd-ge-adapter-0.2.13.tar.gz.
File metadata
- Download URL: odd-ge-adapter-0.2.13.tar.gz
- Upload date:
- Size: 12.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.7.12 Darwin/21.1.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
443e8d8759db538cf7959fc1c5d317a15335c42c85d9a773a7bc09406195dc1e
|
|
| MD5 |
a1988d05d37c6f3f3d98290c6f2b811b
|
|
| BLAKE2b-256 |
a2bbda98271a9b8d70c156eeffa7629880c0a9d075bf4a05b3f1b52edb19da8f
|
File details
Details for the file odd_ge_adapter-0.2.13-py3-none-any.whl.
File metadata
- Download URL: odd_ge_adapter-0.2.13-py3-none-any.whl
- Upload date:
- Size: 16.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.7.12 Darwin/21.1.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8130210abcaf2a684737f9575da03b57c8026bdaac4b0874b213327f5322930c
|
|
| MD5 |
00057ec4b9916b127167dce1c95717c9
|
|
| BLAKE2b-256 |
f8687a6402a0725e02ba79ab6a8949e2042cf2bc2a1338f28c4f1a794146ffc8
|