# Hestia Data Validation
[![Pipeline Status](https://gitlab.com/hestia-earth/hestia-data-validation/badges/master/pipeline.svg)](https://gitlab.com/hestia-earth/hestia-data-validation/commits/master)
[![Coverage Report](https://gitlab.com/hestia-earth/hestia-data-validation/badges/master/coverage.svg)](https://gitlab.com/hestia-earth/hestia-data-validation/commits/master)
[![Documentation Status](https://readthedocs.org/projects/hestia-data-validation/badge/?version=latest)](https://hestia-data-validation.readthedocs.io/en/latest/?badge=latest)
## Install
```bash
pip install hestia_earth.validation
```
## Usage
```python
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
```
Raw data
{
"_id": null,
"home_page": "https://gitlab.com/hestia-earth/hestia-data-validation",
"name": "hestia-earth-validation",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3",
"maintainer_email": null,
"keywords": "hestia, data, validation",
"author": "Guillaume Royer",
"author_email": "guillaumeroyer.mail@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/cc/8f/a330a211fde0905a1bac41c788ab4c77c9bb8e2b323b86a115cccc15ff43/hestia-earth-validation-0.29.7.tar.gz",
"platform": null,
"description": "# Hestia Data Validation\n\n[![Pipeline Status](https://gitlab.com/hestia-earth/hestia-data-validation/badges/master/pipeline.svg)](https://gitlab.com/hestia-earth/hestia-data-validation/commits/master)\n[![Coverage Report](https://gitlab.com/hestia-earth/hestia-data-validation/badges/master/coverage.svg)](https://gitlab.com/hestia-earth/hestia-data-validation/commits/master)\n[![Documentation Status](https://readthedocs.org/projects/hestia-data-validation/badge/?version=latest)](https://hestia-data-validation.readthedocs.io/en/latest/?badge=latest)\n\n## Install\n\n```bash\npip install hestia_earth.validation\n```\n\n## Usage\n\n```python\nfrom hestia_earth.validation import validate\n\n# for each node, this will return a list containing all the errors/warnings (empty list if no errors/warnings)\nerrors = validate(nodes)\n```\n\nNote 1: if you want to validate existing data (with `@type` and `@id` fields), please set the following environment variable:\n\n```\nVALIDATE_EXISTING_NODES=true\n```\n\nNote 2: to skip searching for terms using the Hestia API, please enable mocking:\n\n```\nENABLE_MOCKING=true\n```\n\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Hestia Data Validation library",
"version": "0.29.7",
"project_urls": {
"Homepage": "https://gitlab.com/hestia-earth/hestia-data-validation"
},
"split_keywords": [
"hestia",
" data",
" validation"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "600cc337e3f39b91a8f55d5c73a5d082be521372ee09023731c88b446691f92f",
"md5": "615c05da629fbda99de6b28fab29585f",
"sha256": "7bab54d59e7eba6b252176927051c91622a55c2a1656efb14ca3866bc077f579"
},
"downloads": -1,
"filename": "hestia_earth_validation-0.29.7-py3-none-any.whl",
"has_sig": false,
"md5_digest": "615c05da629fbda99de6b28fab29585f",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3",
"size": 76033,
"upload_time": "2024-05-09T06:52:51",
"upload_time_iso_8601": "2024-05-09T06:52:51.698766Z",
"url": "https://files.pythonhosted.org/packages/60/0c/c337e3f39b91a8f55d5c73a5d082be521372ee09023731c88b446691f92f/hestia_earth_validation-0.29.7-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "cc8fa330a211fde0905a1bac41c788ab4c77c9bb8e2b323b86a115cccc15ff43",
"md5": "c8c666510684785e8228281fe85d627c",
"sha256": "c5eb4a127c832baa4c785e3ad92eb1950d7c4d0d22644b5b8b8e788d463b4c35"
},
"downloads": -1,
"filename": "hestia-earth-validation-0.29.7.tar.gz",
"has_sig": false,
"md5_digest": "c8c666510684785e8228281fe85d627c",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3",
"size": 53558,
"upload_time": "2024-05-09T06:52:54",
"upload_time_iso_8601": "2024-05-09T06:52:54.436007Z",
"url": "https://files.pythonhosted.org/packages/cc/8f/a330a211fde0905a1bac41c788ab4c77c9bb8e2b323b86a115cccc15ff43/hestia-earth-validation-0.29.7.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-05-09 06:52:54",
"github": false,
"gitlab": true,
"bitbucket": false,
"codeberg": false,
"gitlab_user": "hestia-earth",
"gitlab_project": "hestia-data-validation",
"lcname": "hestia-earth-validation"
}