Package: pykwalify
pyKwalifyYAML/JSON validation libraryThis framework is a port with a lot of added functionality of the Java version of the framework kwalify that can be found athttp://www.kuwata-lab.com/kwalify/The original source code can be found athttp://sourceforge.net/projects/kwalify/files/kwalify-java/0.5.1/The source code of the latest release that has been used can be found athttps://github.com/sunaku/kwalify. Please note that source code is not the original authors code but a fork/upload of the last release available in Ruby.The schema this library is based on and extended from:http://www.kuwata-lab.com/kwalify/ruby/users-guide.01.html#schemaUsageCreate a data file.JsonandYamlformats are both supported.-foo-barCreate a schema file with validation rules.type:seqsequence:-type:strRun validation from cli.pykwalify-ddata.yaml-sschema.yamlExamplesThe documentation describes in detail how each keyword and type works and what is possible in each case.But there is a lot of real world examples that can be found in the test data/files. It shows a lot of examples of how all keywords and types work in practice and in combination with each other.The files can be found here and show both schema/data combinations that will work and that will fail.tests/files/success/tests/files/fail/tests/files/partial_schemas/YAML parserruamel.yamlis the default YAMl parser installed with pykwalify.Ruamel.yaml is more supported in the yaml 1.2 spec and is more actively developed.Depending on how both libraries are developed, this can change in the future in any major update.UTF-8 and data encodingIf you have problems with unicode values not working properly when running pykwalify on Python 3.6x then try to add this environment variable to your execution:PYTHONIOENCODING=UTF-8 pykwalify ...and it might help to force UTF-8 encoding on all string objects. If this does not work please open up an issue with your schema and data that can be used to track down the problem in the source code.Project detailspython support3.6, 3.7, 3.8, 3.9Sourcehttps://github.com/Grokzen/pykwalifyDocs (Latest release)http://pykwalify.readthedocs.io/en/master/Docs (Unstable branch)http://pykwalify.readthedocs.io/en/unstable/Gitter (Free Chat)Changeloghttps://github.com/Grokzen/pykwalify/blob/unstable/docs/release-notes.rstUpgrade instructionshttps://github.com/Grokzen/pykwalify/blob/unstable/docs/upgrade-instructions.rstIssueshttps://github.com/Grokzen/pykwalify/issuesTravis (master)https://travis-ci.org/Grokzen/pykwalifyTravis (unstable)https://travis-ci.org/Grokzen/pykwalifyTest coveragehttps://coveralls.io/github/Grokzen/pykwalifypypihttps://pypi.python.org/pypi/pykwalify/Open Hubhttps://www.openhub.net/p/pykwalifyLicenseMIThttps://github.com/Grokzen/pykwalify/blob/unstable/docs/license.rstCopyrightCopyright (c) 2013-2017 Johan Anderssongit repogit clone git@github.com:Grokzen/pykwalify.gitinstall stablepip install pykwalifyinstall dev$ git clone git@github.com:Grokzen/pykwalify.git pykwalify$ cd ./pykwalify$ virtualenv .venv$ source .venv/bin/activate$ pip install -r dev-requirements.txt$ pip install -e .required dependenciesdocopt >= 0.6.2python-dateutil >= 2.4.2supported yml parsersruamel.yaml >= 0.11.0