Skip to content

Latest commit

 

History

History
65 lines (47 loc) · 1.59 KB

File metadata and controls

65 lines (47 loc) · 1.59 KB

Create a Plugin Package

Create a standalone, installable plugin package using the official template.

From Template

The easiest way to start is using the mloda-plugin-template:

# Create a new repo from the template
gh repo create my-plugin --template mloda-ai/mloda-plugin-template --private
git clone git@github.com:yourname/my-plugin.git
cd my-plugin

Or use the "Use this template" button on GitHub.

Structure

The template provides a ready-to-use structure:

placeholder/
├── feature_groups/
│   └── my_plugin/
│       ├── __init__.py
│       ├── my_feature_group.py
│       └── tests/
├── compute_frameworks/
│   └── my_framework/
└── extenders/
    └── my_extender/

Set Up Your Plugin

  1. Rename the namespace to your organization:

    mv placeholder acme
  2. Update pyproject.toml:

    • name: Change "placeholder-my-plugin" to "acme-my-plugin"
    • authors: Your name and email
    • tool.setuptools.packages.find.include: Change to ["acme*"]
  3. Update imports in Python files from placeholder. to acme.

  4. Verify setup:

    uv venv && source .venv/bin/activate && uv pip install -e ".[dev]" && tox

See the template README for detailed setup instructions.

Install Locally

pip install -e .

Next Steps