The pywhip package is a Python package to validate data against whip specifications, a human and machine-readable syntax to express specifications for data.

The short story

Pywhip is used to validate a data set:

eventDate   individualCount  country
2018-01-03  5                 BA
2018-04-02  20                NL
2016-07-06  3300              BE
2017-03-02  2                 BE
1018-01-08  1                 NL

against a set of whip specifications:

   allowed: [BE, NL]
    dateformat: '%Y-%m-%d'
    mindate: 2016-01-01
    maxdate: 2018-12-31
    numberformat: x  # needs to be an integer value
    min: 1
    max: 100

to get a whip validator report:

and celebrate or despair…

Indices and tables