# HESTIA Data Validation
[](https://gitlab.com/hestia-earth/hestia-data-validation/commits/master)
[](https://gitlab.com/hestia-earth/hestia-data-validation/commits/master)
[](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/ec/17/aac4b4266f25671633d5926bb54ac550cbf9b3e88c7c306d930602254935/hestia_earth_validation-0.32.25.tar.gz",
"platform": null,
"description": "# HESTIA Data Validation\n\n[](https://gitlab.com/hestia-earth/hestia-data-validation/commits/master)\n[](https://gitlab.com/hestia-earth/hestia-data-validation/commits/master)\n[](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.32.25",
"project_urls": {
"Homepage": "https://gitlab.com/hestia-earth/hestia-data-validation"
},
"split_keywords": [
"hestia",
" data",
" validation"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "cf7b6f1a2bc6add3979bbc755b9f95a002c0d31271a5013c43c0d6ebd6b0edcd",
"md5": "48cdf0e88a7f8ec2418376be929ced73",
"sha256": "771b520c0c1c16dba4092eea67adbb1b831d23dc524e058b2f49a559a2df93a2"
},
"downloads": -1,
"filename": "hestia_earth_validation-0.32.25-py3-none-any.whl",
"has_sig": false,
"md5_digest": "48cdf0e88a7f8ec2418376be929ced73",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3",
"size": 83992,
"upload_time": "2025-03-28T12:43:33",
"upload_time_iso_8601": "2025-03-28T12:43:33.291695Z",
"url": "https://files.pythonhosted.org/packages/cf/7b/6f1a2bc6add3979bbc755b9f95a002c0d31271a5013c43c0d6ebd6b0edcd/hestia_earth_validation-0.32.25-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "ec17aac4b4266f25671633d5926bb54ac550cbf9b3e88c7c306d930602254935",
"md5": "743dee60b93a00a50755dec835e43d42",
"sha256": "34a46ab5efb945810b8d2a007c50df62e68fdf957d2a52040bf8a61bf7d6dfb0"
},
"downloads": -1,
"filename": "hestia_earth_validation-0.32.25.tar.gz",
"has_sig": false,
"md5_digest": "743dee60b93a00a50755dec835e43d42",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3",
"size": 60475,
"upload_time": "2025-03-28T12:43:34",
"upload_time_iso_8601": "2025-03-28T12:43:34.608775Z",
"url": "https://files.pythonhosted.org/packages/ec/17/aac4b4266f25671633d5926bb54ac550cbf9b3e88c7c306d930602254935/hestia_earth_validation-0.32.25.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-03-28 12:43:34",
"github": false,
"gitlab": true,
"bitbucket": false,
"codeberg": false,
"gitlab_user": "hestia-earth",
"gitlab_project": "hestia-data-validation",
"lcname": "hestia-earth-validation"
}