Base (compliance_checker.base)#

Compliance Checker

Functions

attr_check(kvp, ds, priority, ret_val[, ...])

Handles attribute checks for simple presence of an attribute, presence of one of several attributes, and passing a validation function.

check_has([priority, gname])

Decorator to wrap a function to check if a dataset has given attributes.

csv_splitter(input_string)

Splits a string in CSV format and returns a flattened list

fix_return_value(v, method_name[, method, ...])

Transforms scalar return values into Result.

get_namespaces()

maybe_get_global_attr(attr_name, ds)

ratable_result(value, name, msgs[, ...])

Returns a partial function with a Result that has not been weighted.

score_group([group_name])

Warning this is deprecated as of Compliance Checker v3.2!

std_check(dataset, name)

std_check_in(base_context, name, allowed_vals)

Check that a value is contained within an iterable

xpath_check(tree, xpath)

Checks whether tree contains one or more elements matching xpath

Classes

BaseCheck([options])

Methods

BaseNCCheck()

Base Class for NetCDF Dataset supporting Check Suites.

BaseSOSDSCheck()

Base class for SOS-DescribeSensor supporting Check Suites.

BaseSOSGCCheck()

Base class for SOS-GetCapabilities supporting Check Suites.

EmailValidator([split_func])

Methods

GenericFile(fpath)

Simple class for any file.

RegexValidator([split_func])

Methods

Result([weight, value, name, msgs, ...])

Holds the result of a check method.

TestCtx([category, description, out_of, ...])

Simple struct object that holds score values and messages to compile into a result

UrlValidator([split_func])

Methods

ValidationObject([split_func])

Attributes: