![Gitter](https://badges.gitter.im/Join Chat.svg)
YAML/JSON validation library
This framework is a port with alot added functionality of the java version of the framework kwalify that can be found at: http://www.kuwata-lab.com/kwalify/
The source code can be found at: http://sourceforge.net/projects/kwalify/files/kwalify-java/0.5.1/
The schema this library is base and extended from: http://www.kuwata-lab.com/kwalify/ruby/users-guide.01.html#schema
All documentation can be found at http://pykwalify.readthedocs.org/en/latest/
This readme contains a reduced version of the full documentation.
Latest stable release from pypi
$ pip install pykwalify
Create a data file. Json
and Yaml
formats are both supported.
- foo
- bar
Create a schema file with validation rules.
type: seq
sequence:
- type: str
Run validation from cli.
pykwalify -d data.yaml -s schema.yaml
- docopt >= 0.6.2
- PyYaml >= 3.11
- python-dateutil >= 2.4.2
- Python 2.7
- Python 3.3
- Python 3.4
- Python 3.5
- Python 3.6 (Experimental, allowed to fail travis)
MIT, See docs/License.txt for details
Copyright (c) 2013-2015 Johan Andersson