License Supported versions https://readthedocs.org/projects/groundwork-validation/badge/?version=latest Travis-CI Build Status https://coveralls.io/repos/github/useblocks/groundwork-validation/badge.svg?branch=master Code quality PyPI Package latest release

Welcome to groundwork validation

This Python package is designed for applications, which are based on the groundwork application framework.

All of its plugins and patterns are focused on application validation during runtime.

This package contains the following groundwork extensions:

Plugins

  • GwDbValidator - Validates automatically all database model requests.

Patterns

Why validation is needed

Validation is mostly needed, if your application needs input data and must be sure that this data is valid and not somehow corrupted.

A common case is the usage of files, which must be copied from an external source. During the transport over the network, the data may get corrupted. To be sure that this is not the case, a hash of this file can be build and stored beside the file. After the file is downloaded, the hash is rebuild and compared to the stored one.

Another use case is the usage of databases. If your application is the only one which is allowed to store and change specific data inside a database, you should be able to validate these data before your plugin is using it again (This use case is supported by GwDbValidatorsPattern and GwDbValidator).

Who requests validation?

In most cases validation may be overengineered, if you are developing a small script for yourself.

However there are scenarios and domains, which need a proven validation of data, so that your application is allowed and verified to be used inside this domains.

For instance if you are developing solutions for the automotive industry and your solutions may affect the software, which runs on electronic control units (ECUs) of a car, your application must be ISO 26262 compliant. And this normally needs a proven validation of in- and output data (beside a lot of other stuff).

Installation

Via pip

To install groundwork-validation simply use pip:

pip install groundwork-validation

From sources

Using git and pip:

git clone https://github.com/useblocks/groundwork-validation
cd groundwork-validation
pip install -e .