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.2.1.tar.gz (12.2 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.2.1-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: vids_validator-1.2.1.tar.gz
  • Upload date:
  • Size: 12.2 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.2.1.tar.gz
Algorithm Hash digest
SHA256 aab2b30f2d31e1d23f558e98ac651c64b452ee3433222b4543590c1ae59e3691
MD5 2274d9359d5c088d19def44f96f87931
BLAKE2b-256 6a62e93b548d833f194c5e21222e4eaa7bd54f49b422b35849e8891d3900eebe

See more details on using hashes here.

File details

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

File metadata

  • Download URL: vids_validator-1.2.1-py3-none-any.whl
  • Upload date:
  • Size: 11.8 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.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e15b440090b8444288f74fb763bd8a2e946b9a027e48ea0876883696479b0264
MD5 16faab510e74a06d05e57b4c521c46b7
BLAKE2b-256 bc6cc348d18008277cd0af7a874ddebf3c3e7bba06a80654e2b4afbdf5ac33d5

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