Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

data_check-0.3.0.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

data_check-0.3.0-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

Details for the file data_check-0.3.0.tar.gz.

File metadata

  • Download URL: data_check-0.3.0.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.7.3 Linux/5.4.72-microsoft-standard-WSL2

File hashes

Hashes for data_check-0.3.0.tar.gz
Algorithm Hash digest
SHA256 dcde36a44cc5143499a3e71a43bd70bc1a2bca0d9bae88964e4ea6e614ce8a34
MD5 21323ae94cfe2fb33269e3b2a51a62a6
BLAKE2b-256 9749ae6935fab80d1564ae4ee18b6a466c0a55f443fec653ded25197edc36aee

See more details on using hashes here.

File details

Details for the file data_check-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: data_check-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 9.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.7.3 Linux/5.4.72-microsoft-standard-WSL2

File hashes

Hashes for data_check-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 efbe834e20489374da5204bef96326c608bf51d3cb1639d032a20410710e6e30
MD5 60363497189d80fe8e61b3456f05ab51
BLAKE2b-256 0818fe1b911811919c681e034bb0028708b3946e8498060d7593f6b59c93d8dc

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page