Data Quality powered by AI
Project description
Weiser
Data Quality Framework
Install
pip install weiser-ai
Run test checks
It connects to a postgres db defined at the datasources section in the config file examples/example.yaml
.
Run checks in verbose mode:
weiser run examples/example.yaml -v
Compile checks only in verbose mode:
weiser compile examples/example.yaml -v
Run dashboard
cd weiser-ui
pip install -r requirements.txt
streamlit run app.py
Check definitions
Simple count check defintion
- name: test row_count
dataset: orders
type: row_count
condition: gt
threshold: 0
Custom sql definition
- name: test numeric
dataset: orders
type: numeric
measure: sum(budgeted_amount::numeric::float)
condition: gt
threshold: 0
Target multiple datasets with the same check definition
- name: test row_count
dataset: [orders, vendors]
type: row_count
condition: gt
threshold: 0
Check individual group by values in a check
- name: test row_count groupby
dataset: vendors
type: row_count
dimensions:
- tenant_id
condition: gt
threshold: 0
Time aggregation check with granularity
- name: test numeric gt sum yearly
dataset: orders
type: sum
measure: budgeted_amount::numeric::float
condition: gt
threshold: 0
time_dimension:
name: _updated_at
granularity: year
Custom SQL expression for dataset and filter usage
- name: test numeric completed
dataset: >
SELECT * FROM orders o LEFT JOIN orders_status os ON o.order_id = os.order_id
type: numeric
measure: sum(budgeted_amount::numeric::float)
condition: gt
threshold: 0
filter: status = 'FULFILLED'
Anomaly detection check
- name: test anomaly
# anomaly test should always target metrics metadata dataset
dataset: metrics
type: anomaly
# References Orders row count.
check_id: c5cee10898e30edd1c0dde3f24966b4c47890fcf247e5b630c2c156f7ac7ba22
condition: between
# long tails of normal distribution for Z-score.
threshold: [-3.5, 3.5]
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
weiser_ai-0.1.1.tar.gz
(16.7 kB
view details)
Built Distribution
weiser_ai-0.1.1-py3-none-any.whl
(21.6 kB
view details)
File details
Details for the file weiser_ai-0.1.1.tar.gz
.
File metadata
- Download URL: weiser_ai-0.1.1.tar.gz
- Upload date:
- Size: 16.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.12.4 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec467649585a44ffbe220eac53ebe833025a1f3e144edb8420e5f1d6dbb65202 |
|
MD5 | a5b4fc17c0407146302f94e447338c4c |
|
BLAKE2b-256 | 670f79cb127789d51645430964d623f8d505e52abfc37bba0a5d276c1e336d7e |
File details
Details for the file weiser_ai-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: weiser_ai-0.1.1-py3-none-any.whl
- Upload date:
- Size: 21.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.12.4 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 20b9989514cfb77a4584c14b199d08a599f02b8b456088048acce63fffbfd11b |
|
MD5 | c01e616bdf66d37171fcb682181426cd |
|
BLAKE2b-256 | 80362789e967b72dd1db1e5c511fc2bad65b6350a8b00755038731eac5c55838 |