A Pydantic schema for BIDS Stats Models
Project description
BIDS Stats Models Schema
This package contains a Pydantic description of the BIDS Stats Models format, which can be used as a schema validator or generate JSON schema for independent validation.
Installing bsmschema
From the Python package index
pip install bsmschema
From source
git clone https://github.com/bids-standard/stats-models.git
pip install stats-models/bsmschema
You may wish to install in editable mode, to ensure that your changes get propagated without reinstalling:
pip install -e stats-models/bsmschema
How to run schema validator
from bsmschema.models import BIDSStatsModel
BIDSStatsModel.parse_file('stats-models/specification/examples/model-example_smdl.json')
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
bsmschema-0.1.0.tar.gz
(13.3 kB
view hashes)
Built Distribution
bsmschema-0.1.0-py3-none-any.whl
(17.5 kB
view hashes)
Close
Hashes for bsmschema-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0663e333a65e84b888cb9e3c3219cf3d447de99c19aea488623ad33cde96f246 |
|
MD5 | ae53adb3e51d91319c7976053f1a4f23 |
|
BLAKE2b-256 | a28d9ae8638a4eebbfcaa2b3c7cd27045eb7a22ee3a2f0017e047931b3716e91 |