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.29.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 411a56f60b153fdbab94c6c52e6af35327412888d26bd129ea8d890d418cc5f5 |
|
MD5 | 37fec89307054b7234089ab34849e5fc |
|
BLAKE2b-256 | 18be322376900c920f8f3b56d3ae224d62d584145b514314f1bc5d58661ee7ac |
Close
Hashes for hestia_earth_validation-0.29.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd02f64b48ce8807400a4de81718e7e9c1a9cd19abb5d18e69abc8256e4fa3a7 |
|
MD5 | 68b6fb5ab63f14e742c19547fece1280 |
|
BLAKE2b-256 | 5e9caa86ea7f2d3d1484db12b10b941c7f9f7c20426a95780895664d1d97f85d |