MetaRelay is a backend-agnostic Python interface for writing NWB metadata to electronic lab notebooks and other destinations. You pick a destination and pass validated metadata records. MetaRelay handles the rest.
Planned backends:
- Local disk (always available)
- LabArchives, via
labapi - eLabFTW, via
elabapi-python - GitHub, via the Git Data API (one commit per write)
Metadata schemas cover
ndx-fiber-photometry
and ndx-microscopy.
Status: pre-alpha. The package scaffold is in place. The core interface and backends are in progress. See
docs/IMPLEMENTATION_PLAN.mdfor the design and roadmap.
MetaRelay is not on PyPI yet. Once it is, the base install carries only
pydantic and pydantic-settings. Each backend is an optional extra:
pip install metarelay # core, local backend, schemas
pip install "metarelay[labarchives]" # adds the LabArchives backend
pip install "metarelay[all]" # every backend, NWB builders, test suite| Extra | Adds |
|---|---|
labarchives |
labapi |
elabftw |
elabapi-python |
github |
httpx |
nwb |
pynwb and the ndx-* extensions |
testing |
pytest, for the backend conformance suite |
all |
everything above |
The docs are at https://nimh-dsst.github.io/MetaRelay/.
- Quickstart: write a record to a folder, read it back, and update it.
- Examples: runnable scripts for common tasks, including logging in to LabArchives. None needs an account.
- Concepts and architecture: how MetaRelay works, and where each piece lives in the code.
See CONTRIBUTING.md for setup, tests, and PR
expectations.
Released under the BSD 3-Clause License.