Skip to content

Repository files navigation

MPT Extension Python Template

mpt-extension-python-template is a minimal SoftwareOne Marketplace extension built on top of mpt-extension-sdk and mpt-tool.

It is primarily a template repository: it shows the baseline extension shape, agreement API endpoints, order and agreement event listeners, small fulfillment pipelines, Marketplace Portal plugs (including a UI SDK showcase — an examples app, a guide, and per-socket plug demos), and the development workflow used by extension repositories in this ecosystem.

Repository Layout

  • backend/mpt_extension_python_template/ contains the extension package.
  • backend/tests/ contains the pytest suite.
  • frontend/ contains the React plug source code.
  • static/ contains generated plug assets served by the extension.
  • make/*.mk contains the repository make targets.
  • compose.yaml defines the Docker-based development environment.
  • compose.local.yaml adds local mock services for mpt-ext run --local.

Quick Start

Prerequisites:

  • Docker with the docker compose plugin
  • make

Recommended setup:

make build
make test
make run-local

Local mock mode exposes the application on http://localhost:8080.

Most make targets accept scope=backend, scope=frontend, or scope=all. The default scope is all.

Common Commands

Shared meaning of common make targets is documented in:

Documentation

Keep repository-specific workflow details in the documents under docs/, not in this file.

SDK References

This repository builds on SDKs documented in their own repositories. For library APIs, prefer those guides over duplicating them here:

Used by

Contributors

Languages