simple data validation
Project description
data_check
data_check is a simple data validation tool. Write SQL queries and CSV files with the expected result sets and data_check will test the result sets against the queries.
data_check should work with any database that works with SQLAlchemy. Currently data_check is tested against PostgreSQL, MySQL, SQLite, Oracle and Microsoft SQL Server.
Quickstart
You need Python 3.6 or above to run data_check. The easiest way to install data_check is via pipx:
pipx install data_check
The data_check Git repository is also a sample data_check project. Clone the repository, switch to the folder and run data_check:
git clone git@github.com:andrjas/data_check.git
cd data_check
data_check
This will run the tests in the checks folder using the default connection as set in data_check.yml.
See the documentation how to install data_check in different environments with additional database drivers and other usages of data_check.
Project layout
data_check has a simple layout for projects: a single configuration file and a folder with the test files. You can also organize the test files in subfolders.
data_check.yml # The configuration file
checks/ # Default folder for data tests
some_test.sql # SQL file with the query to run against the database
some_test.csv # CSV file with the expected result
subfolder/ # Tests can be nested in subfolders
Documentation
See the documentation how to setup data_check, how to create a new project and more options.
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
File details
Details for the file data_check-0.1.1.tar.gz
.
File metadata
- Download URL: data_check-0.1.1.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 555b8dfcb36233f1156910ccd12579ce37adcecd653613369be52a8f2b551ccf |
|
MD5 | 6839fd14eecc61352ef13c99c7bac3ad |
|
BLAKE2b-256 | efc621613024e8076d587d42ccfe1e8696c421c77e97985f89a24a2946fb243e |
File details
Details for the file data_check-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: data_check-0.1.1-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | af9ff52cdb8ff51ea11e9e5abaac8648cf047a75eef79a3ca9f8d80793968be3 |
|
MD5 | a32527913f4af9be47cfcb606150c6e1 |
|
BLAKE2b-256 | 3df9d46f5866f367a9097ca3c3a3d6a40d4b8b6b679a211dd2af10f30dad3e5e |