Hestia Data Validation library
Project description
Hestia Data Validation
Install
pip install hestia_earth.validation
Usage
from hestia_earth.validation import validate
# for each node, this will return a list containing all the errors/warnings (empty list if no errors/warnings)
errors = validate(nodes)
Note 1: if you want to validate existing data (with @type
and @id
fields), please set the following environment variable:
VALIDATE_EXISTING_NODES=true
Note 2: to skip searching for terms using the Hestia API, please enable mocking:
ENABLE_MOCKING=true
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for hestia-earth-validation-0.28.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0fae747f99adf2542f48e63a9d5602d8705a8e7de6b0d27a27986ff17bcd31b |
|
MD5 | 18b61c73af346ba60e2b1a673a0fbb97 |
|
BLAKE2b-256 | 293ace874f3bc7ba55f5c99f55da9170876f16332c86363e1025a5ab63575e6a |
Close
Hashes for hestia_earth_validation-0.28.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81532eb0ab8fa7f71c786dd7d9c27e8d561e078551bb4c51634257e197c21b28 |
|
MD5 | de9ca53e78a3dcd82481918fbb29973d |
|
BLAKE2b-256 | 76cfc025f4e22557d1d4325d5bb8ce72c9bac29e36de22ff795c3c5bb635e46a |