mesokit-schema
Shared data contract for the mesofield → datakit → databench pipeline.
This package defines the typed manifests that travel alongside data between the three repos. It is the single source of truth for:
AcquisitionManifest— what mesofield writes at the end of a session: the list of producers that ran, the files they wrote, calibration constants, time bases, and session identity. Datakit consumes this instead of globbing the filesystem.DatasetManifest— what datakit writes alongside the dataset table: schema version, datakit version, content hash of the data file, hash of the upstream acquisition manifest, masterTimeBasis, source-parser versions, declared columns. Databench validates against this on load and concatenates it into provenance.AnalysisDeclaration— what each databench analysis declares about its inputs and parameters, so a dataset can be validated against an analysis before it runs.
Plus shared building blocks: TimeBasis, ColumnSpec, BIDS path helpers, and a single SCHEMA_VERSION constant.
Install
From PyPI:
pip install mesokit-schema
From GitHub (latest main):
pip install git+https://github.com/Gronemeyer/mesokit-schema.git
Development
For local development across the pipeline, editable-install into all three envs at once:
./scripts/install-dev.sh # all envs
./scripts/install-dev.sh mesofield # one env
The script editable-installs mesokit-schema plus the env's own package (mesofield, datakit, databench) into each matching conda env. Override layout via CONDA_ENVS_ROOT, DEV_ROOT, or DATABENCH_ROOT env vars.
Or install manually:
pip install -e /path/to/mesokit-schema
Versioning
The package exposes mesokit_schema.SCHEMA_VERSION (semver). Consumers compare against the schema_version field on each manifest and refuse to load anything they don't know how to read. Bump the major version on breaking changes; minor on additive fields.
Metadata
Release files for mesokit-schema 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mesokit_schema-1.1.0.tar.gz | 18.3 kB | With provenance | Details for mesokit_schema-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mesokit_schema-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for mesokit_schema-1.1.0-py3-none-any.whl |
Total release size: 36.4 kB
Release files / mesokit_schema-1.1.0.tar.gz
| Download URL | mesokit_schema-1.1.0.tar.gz |
|---|---|
| Size | 18.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9c6df2905fbf25593f7f8ef6868a174c2aa02c2598a3641142f10338ed4eaa02
|
|
BLAKE2b-256 checksum How to use checksums |
6bfc78e2a82c0e23d037ff436224543cdd05a76b0895e97bb6b5e3b06d509f86
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 20, 2026.
Transparency logRelease files / mesokit_schema-1.1.0-py3-none-any.whl
| Download URL | mesokit_schema-1.1.0-py3-none-any.whl |
|---|---|
| Size | 18.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
63e239a61e419ed3e58b995902ae2fb4cefb6808a4b20e5112467cf8c4fa0227
|
|
BLAKE2b-256 checksum How to use checksums |
7e82c4d76a26525371759f51cdb7ec26d4406c181a9c92d2247a6dad04a6f277
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 20, 2026.
Transparency logSecurity for mesokit-schema 1.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for mesokit_schema-1.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 20, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.