Examples to help understand how to use Python/Cerberus to check Yaml/JSON files.
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2021-01-30 20:30:06 +00:00
basicyaml read a yaml, schema hard-coded (basicyaml.py saved) 2020-12-14 22:17:31 +00:00
firsttddexample testing on list fields works 2021-01-16 21:17:57 +00:00
kubeExample formatting changes, additional tests added 2021-01-30 20:30:06 +00:00
schemafile schema from json file appears to be working@ 2021-01-03 21:10:25 +00:00
simple tdd example 1 works 2021-01-03 21:44:58 +00:00
Readme.md updated Readme.md 2021-01-16 21:50:07 +00:00

Cerberus Examples

To make use of these examples, ensure the cerberus PyPI module is installed

''' sudo apt-get install python3-pip pip3 install cerberus '''

First Example

Inline format and data check in simple.py

'''python python3 simple.py '''