Overview

docs Documentation Status
tests
Github Actions Build Status Dependabot dependency management
Coverage Status

Validate ERDDAP XML files and snippets to make sure they conform to best practices.

  • Free software: MIT license

Installation

pip install erddap-xml

You can also install the in-development version with:

pip install https://github.com/gulfofmaine/python-erddap-xml-validator/archive/master.zip

Documentation

Read the docs

erddap_xml can be imported into a larger project, and can be used from the command line.

erddap_xml_validate path/to/dataset.xml will check if an XML chunk for a single dataset is correctly formatted. It will print Valid Dataset if it’s correctly formatted, or raise an exception pointing to the specific check that the dataset failed.

Development

To run the all tests run:

tox

Note, to combine the coverage data from all the tox environments run:

Windows
set PYTEST_ADDOPTS=--cov-append
tox
Other
PYTEST_ADDOPTS=--cov-append tox