bidsschematools is a Python library providing utilities for programmatic interaction with the Brain Imaging Data Structure (BIDS) schema. It enables loading, parsing, and validating BIDS datasets against the official specification. The current version is 1.2.2, with releases typically coinciding with major BIDS specification updates or essential bug fixes and enhancements.
pip install bidsschematoolsVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to load the default BIDS schema, inspect its properties like version and entities, and perform a basic check for filename pattern validity. For full dataset validation, a more complete BIDS dataset structure would be required.
Replace calls to `load_schema(path)` with `schema.BIDS_SCHEMA.from_path(path)`.
These internal modules are no longer exposed. Access schema components directly through the `bids_schema` object (e.g., `bids_schema.entities`, `bids_schema.datatypes`).
Always confirm which BIDS specification version is loaded (`bids_schema.version`) and use `schema.BIDS_SCHEMA.from_path('/path/to/your/bids-specification')` if a specific version or custom schema is required.