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.27.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a0e063b669b83cd4f93223ede3363c5bfd011a1f6254431727b07a1cab4ebcb |
|
MD5 | 00ebcd83ab1c58f86d8a3025b40f95b0 |
|
BLAKE2b-256 | fb0e7a50e4606f5a569729a63581f8c880fc6acce346d35246d9f0f64120c98e |
Close
Hashes for hestia_earth_validation-0.27.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a2dfda68d6f840b4eb89f1e7a46cf28bf873d25b9f35b28ea3f3a553cc07c62 |
|
MD5 | d5ff876e75fd1ab65dca2fba4a24232b |
|
BLAKE2b-256 | 8e63e0c626910c5d46716392e390dd57f772803d15b5cc10a8b545302db74828 |