Copier template for independently maintained datalab tool plugins.
Warning
The datalab tool API is under active development. Until it is merged
upstream, generated projects use the Matgenix dw/analysis_tools branch
during development.
The template generates either:
- a standalone tool that opens outside the datalab application and uses a temporary tool access token; or
- an in-app tool that renders below the datalab navigation and uses the browser-session frontend SDK.
Both variants include packaging, documentation, continuous integration, pre-commit, tests, an MIT license, and Copier update metadata. In-app projects also include the minimal Vue/Vite frontend and may declare a selected-item table action.
Install Copier and generate a repository:
uvx copier copy --trust \
https://github.com/Matgenix/datalab-tool-plugin-template \
../my-datalab-toolThen initialize and publish the generated repository:
cd ../my-datalab-tool
git init
git add .
git commit -m "Initial tool plugin"
git branch -M main
git remote add origin git@github.com:YOUR-NAMESPACE/YOUR-REPOSITORY.git
git push -u origin mainAfter the template has a new release:
uvx copier updateReview the resulting changes, resolve conflicts, rebuild any in-app frontend bundle, and run the generated checks before committing.
See the standalone example and in-app example.
Tool plugins are trusted extensions. A datalab deployment administrator must review their Python code, dependencies, release provenance, and—for in-app tools—the frontend source and compiled bundle before installation or upgrade.