inbo / whip

✅ Human and machine-readable syntax to express specifications for data
MIT License
7 stars 0 forks source link
data-validation oscibio specification

whip

Whip is a human and machine-readable syntax to express specifications for data. It can be used as a whip to test how well data meets certain specifications, be it a feather :sweat_smile: or a chain whip :scream:.

Example:

my_date_field:
  dateformat: ['%Y-%m-%d', '%Y-%m', '%Y'] # Needs to be ISO8601 format, but don't allow ranges
  mindate: 1830-01-01                     # No dates before 1830
  empty: True                             # Empty values are allowed

Documentation

Implementations

You can test whip specifications with pywhip.

Contributors

License

MIT License