Skip to main content

ONIX validation library and commandline tool

Project description

docs

Documentation Status

tests

Travis-CI Build Status AppVeyor Build Status

package

PyPI Package latest release PyPI Package monthly downloads

ONIX validation library and commandline tool

ONIX for Books is an international XML standard for the publishing and book trade industry. Onixcheck allows you to validate ONIX versions 2.1 and 3.0 against the official XML Schema.

  • Free software: BSD license

Installation

pip install onixcheck

Quickstart

Command line usage examples

Validate all .xml, .onx, .onix files in current directory:

onixcheck

Validate a single onix file:

onixcheck myonixfile.xml

Validate all .xml files in /onixdata and its subdirectories:

onixcheck --path /onixdata --ext xml --recursive

Show help:

onixcheck -h

Using onixcheck as a python lib

Simple usage with onixcheck.validate:

import onixcheck
errors = onixcheck.validate('/somedir/onixfile.xml')

errors is either a list of Message objects (INVALID file) or an empty list (VALID file)

Documentation

https://onixcheck.readthedocs.org/

Development

To run the all tests run:

tox

Changelog

0.8.0 (2015-07-23)

  • Added CLI-support for fast directory traversal validation

  • Secured XML-Parsing via defusedxml

  • Catch basic XML syntax errors

  • Windows standalone binary builds

0.4.0 (2015-07-18)

  • First release on PyPI.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

onixcheck-0.8.0.zip (407.3 kB view hashes)

Uploaded Source

Built Distribution

onixcheck-0.8.0-py2.py3-none-any.whl (391.3 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page