Skip to main content

Reference validator for the VIDS (Verified Imaging Dataset Standard) specification

Project description

VIDS Validator

PyPI Python License

Reference validator for the VIDS (Verified Imaging Dataset Standard) specification.

Zero dependencies. Python 3.8+. One command.

Install

pip install vids-validator

Usage

Command line

# Validate a dataset (auto-detects profile from .vids marker)
vids-validate /path/to/dataset

# Explicit Full profile validation
vids-validate /path/to/dataset --profile full

# JSON output (for CI pipelines)
vids-validate /path/to/dataset --json

# Save report to file
vids-validate /path/to/dataset --output report.json

Python API

from vids_validator import VIDSValidator

validator = VIDSValidator("/path/to/dataset", profile="auto")
report = validator.validate()

print(report["Summary"]["Status"])  # "PASS" or "FAIL"
print(report["Summary"]["Passed"])  # number of rules passed

As a module

python -m vids_validator /path/to/dataset

What it checks

21 validation rules across 6 categories:

Category Rules Scope
Structure (S001–S006) .vids marker, dataset_description.json, participants, README, subject/session dirs All profiles
Imaging (I001–I004) NIfTI files, sidecar JSONs, valid JSON, naming convention All profiles
Annotation (A001–A005) Annotation directory, segmentation files, sidecars, provenance fields All profiles
Quality (Q001–Q003) Quality directory, quality summary, annotation agreement Full only
ML (M001–M002) ML directory, splits.json Full only
Metadata (D001) CHANGES.md All (WARN)

A dataset is compliant if and only if zero rules have FAIL status.

Profiles

  • POC (15 rules) — quick prototypes, pilots, internal research
  • Full (21 rules) — production, publications, regulatory submissions

The profile is declared in the .vids marker file at the dataset root.

Exit codes

  • 0 — validation passed
  • 1 — validation failed

Links

License

Apache License 2.0 — see LICENSE.

VIDS was created by Princeton Medical Systems and is maintained as an open community standard.

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

vids_validator-1.1.1.tar.gz (11.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vids_validator-1.1.1-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

Details for the file vids_validator-1.1.1.tar.gz.

File metadata

  • Download URL: vids_validator-1.1.1.tar.gz
  • Upload date:
  • Size: 11.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.12

File hashes

Hashes for vids_validator-1.1.1.tar.gz
Algorithm Hash digest
SHA256 8136d185cad18ba9bc83b02154fb7ab8a4e8883cbe0539fc7508a39eca04a912
MD5 6658cad0efb62a846d2fd7a027f00b71
BLAKE2b-256 ce4411da8ada0e2bf10738401f89a5a3682aa60a715bc0f030ae374638dabda4

See more details on using hashes here.

File details

Details for the file vids_validator-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: vids_validator-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 11.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.12

File hashes

Hashes for vids_validator-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2d48928e4f69a8ac510f5ef966bdf6b3cea354f2e126f5698014253d314fc652
MD5 67d02f190d4bb7558ab083313df283e1
BLAKE2b-256 0b4dd7907bbfca2d60bc429b477a308fe3eaf2c2a285cd7368ea9bc68b900197

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