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.0.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.0-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: vids_validator-1.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 43324243a698b31624c26be27722dd38a07d65db633697618d2d36edfec78b1b
MD5 7ba376da320c69eb6247d904846bd9ca
BLAKE2b-256 c03eaf020b7f459d510f8ebd8a82aa45c21ab5e02b73c405450b692b9772a7d4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: vids_validator-1.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2d9f524a1fa35302f717806ccb7466fc4f0eacff8e9ac26d2fd1968bb0687273
MD5 29831cb1c5da7411ce1dfc352f745ae5
BLAKE2b-256 acdf1254d744e02643e2dd8a54e9f088e6e0d5340fb812a8c3987bbb0ba17750

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