Skip to content

tradej/nulecule_validator

Repository files navigation

Nulecule Validator

Copyright 2015 Tomas Radej tradej@redhat.com

This is a library for validating application spec files according to the Nulecule specification. This library can be imported in your project or used as a stand-alone executable when invoked through validate.py.

The supported Nulecule spec versions are 0.0.1alpha, 0.0.2

This library only checks the contents of the provided file. It does not check directory layout or the correct naming of the file.

To use the validator in your code, import it through from nulecule_validator import Validator. Initializing the Validator class can be done with the (string) argument version, which specifies the version of the spec to validate against. When initialized without arguments, Validator automatically selects the latest available version of the spec.

If you run validate.py, the script either returns 0 silently when the file in question is valid, or exits with 1 and outputs errors one by one into STDERR.

About

Validator library for the Nulecule app spec

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published