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.0.4.tar.gz
(13.1 kB
view hashes)
Built Distribution
bsmschema-0.0.4-py3-none-any.whl
(17.4 kB
view hashes)
Close
Hashes for bsmschema-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 076163a2564ae840b679a17e80c04e4a444fed02e2d995153d28615e9781f355 |
|
MD5 | a12fce656934c6488b03776b90b0975b |
|
BLAKE2b-256 | 4ff349afbefb1ae3a8441d4c02491a5d434933f98b8d66e6355cc9c5efc2fdba |