https://github.com/cedadev/compliance-check-lib
A Python library for compliance checking
https://github.com/cedadev/compliance-check-lib
Last synced: about 5 hours ago
JSON representation
A Python library for compliance checking
- Host: GitHub
- URL: https://github.com/cedadev/compliance-check-lib
- Owner: cedadev
- License: bsd-3-clause
- Created: 2017-07-12T08:49:57.000Z (almost 9 years ago)
- Default Branch: main
- Last Pushed: 2022-02-09T09:12:18.000Z (over 4 years ago)
- Last Synced: 2025-11-16T10:20:29.143Z (7 months ago)
- Language: Python
- Homepage:
- Size: 2.12 MB
- Stars: 3
- Watchers: 7
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: docs/contributing.rst
- License: LICENSE
Awesome Lists containing this project
README
# Compliance Check Library - python library of compliance checks
This is a python library (`checklib`) that defines generic, reusable compliance checks for use with the [IOOS compliance checker](https://github.com/ioos/compliance-checker).
Each check is defined within a class that knows about:
- a human-readable description of the check (including templating for modifications)
- a list of return values and useful user messages based on a range of possible results
- unit tests for each test
- hooks to talk to any vocabularies that can be interpreted by the [pyessv](https://github.com/es-doc/pyessv).
## Testing
To run the tests:
```
python -m pytest tests
```
## Importing the checks
You can get to all checks with.
```
from checklib.checks import *
print(dir())
print(ALL_CHECKS)
```