Python JSON/YAML schema validation library
Python Makefile
Clone or download
Pull request Compare This branch is 218 commits behind Grokzen:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
docs
pykwalify
tests
.gitignore
.travis.yml
MANIFEST.in
Makefile
README.md
conftest.py
dev-requirements.txt
pytest.ini
requirements.txt
setup.py
tox.ini

README.md

pyKwalify

Build Status Coverage Status ![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

Documentation

All documentation can be found at http://pykwalify.readthedocs.org/en/latest/

This readme contains a reduced version of the full documentation.

Installation

Latest stable release from pypi

$ pip install pykwalify

Usage

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

Runtime dependencies

  • docopt >= 0.6.2
  • PyYaml >= 3.11
  • python-dateutil >= 2.4.2

Supported python version

  • Python 2.7
  • Python 3.3
  • Python 3.4
  • Python 3.5
  • Python 3.6 (Experimental, allowed to fail travis)

Licensing

MIT, See docs/License.txt for details

Copyright (c) 2013-2015 Johan Andersson