Skip to content
unstable
Go to file
Code
This branch is 261 commits behind Grokzen:master.

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

About

Python JSON/YAML schema validation library

Resources

Packages

No packages published
You can’t perform that action at this time.