Skip to main content

Validation module for HyDAMO data

Project description

The HyDAMO Validation Module: hydamo_validation

Validation Module for HyDAMO data.

Installation

Make sure you have Python 3.12 or 3.13 installed from the official homepage

pip install hydamo-validation

Alternatively, install with uv

uv venv
uv pip install hydamo-validation

Specify a coverage directory

To get the validator running you need some AHN data. You can find these in the data directory of this directory. We assume you copy this to your/local/ahn/dir. Now specify your coverage and init the validator in a python-script:

from hydamo_validation import validator
from pathlib import Path

coverage = {"AHN": Path("your/local/ahn/dir")}

hydamo_validator = validator(
    output_types=["geopackage", "csv", "geojson"], coverages=coverage, log_level="INFO"
)

With this validator you can validate a directory that directory should have the following structure. The name of datasets directory and ValidatorRules.json are mandatory. Within datasets you can put one or more geopackages with HyDAMO layers.

your/directory/
├─ datasets/
│  ├─ hydamo.gpkg
├─ ValidationRules.json

Now you can validate the HyDAMO layers inside your/ directory by:


directory = Path("your/directory")

datamodel, layer_summary, result_summary = hydamo_validator(
    directory=directory, raise_error=False
)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hydamo_validation-1.5.0b1.tar.gz (76.5 kB view details)

Uploaded Source

File details

Details for the file hydamo_validation-1.5.0b1.tar.gz.

File metadata

  • Download URL: hydamo_validation-1.5.0b1.tar.gz
  • Upload date:
  • Size: 76.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.11

File hashes

Hashes for hydamo_validation-1.5.0b1.tar.gz
Algorithm Hash digest
SHA256 75d96bbb5c64a22f72964c0874377238af05faf6732625b38687060b71ce12f8
MD5 1cdd21a565c5b1973a12324ab477c49f
BLAKE2b-256 878452c4fb8211ac956d3dfa11329b06241b526b56c6119396077881bbb7d81f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page