Skip to content
nimh-dsstPublic

About

A unified interface for electronic lab notebook APIs

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

MetaRelay

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.md for the design and roadmap.

Install

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

Getting started

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.

Contributing

See CONTRIBUTING.md for setup, tests, and PR expectations.

License

Released under the BSD 3-Clause License.

About

A unified interface for electronic lab notebook APIs

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages