Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

datalab tool plugin template

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.

Generate a project

Install Copier and generate a repository:

uvx copier copy --trust \
  https://github.com/Matgenix/datalab-tool-plugin-template \
  ../my-datalab-tool

Then 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 main

Update a generated project

After the template has a new release:

uvx copier update

Review 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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages