Skip to main content

Action Platform

apx-example

Template for an Action Platform plugin: every extension point once, small enough to read in one sitting.

PyPI Release CI License Python


Writing a plugin from the documentation alone means guessing the shape: where the tools go, how a deploy target composes its parts, what a fake looks like in tests. apx-example is that shape, working: an apx, an Action Platform extension; every package is named apx-<slug>. Copy it, rename it, delete what you do not need — a plugin with only plugin.py and one tool is fine.

What you get

File Extension point
plugin.py the Plugin: slug, needs, options (one with a setup button), register, after_release, after_deploy
tools.py MCP tools example_hello and example_remember, with input and output schemas; remember writes the plugin's options store
cli.py action-platform example hello
rules.py a replaced core slot (gitflow_rules) — stricter branch kinds while the plugin is enabled
release.py named providers: [release] strategy = "calver", [release] changelog = "plain"
target.py the DeployTarget for the example cloud — preflight, readiness, deploy, verify, diagnose, delete — composing the parts below through parts(spec)
abc.py, spec.py one ABC per responsibility (Cloud, Readiness); a frozen Spec per call
cloud.py, checks.py the implementations: the overlay's script (streams its output to the job log), the readiness checks
tests/fake.py, tests/live/ the cloud in memory for fast tests; a suite against the real destination, skipped without it
overlays/ a cloud overlay example — plain files, copied as they are by action-platform cloud set example; add a cookiecutter.json only when the files need rendering

For agents and editors

SPEC.md is the contract a plugin follows. skills/create-plugin/SKILL.md walks an agent through creating apx-<slug> from here — installable in Claude Code (/plugin marketplace add actionplatform/apx-example, then /plugin install apx-example@apx-example), read by Codex through .codex-plugin/, and mirrored for Cursor in .cursor/rules/plugin.mdc. AGENTS.md holds the repository rules every agent reads.

Use this template

  1. Create a repository from it, named apx-<slug>.
  2. Rename apx_example → apx_<slug>, example → <slug> in pyproject.toml (package name, entry points), plugin.py (slug), target.py (name), cli.py, overlays/index.json.
  3. Delete what you do not need; a plugin with only plugin.py and one tool is fine.
  4. pip install -e ".[dev]", pytest, action-platform plugin list (shows example once installed).
  5. Publish to PyPI; open a pull request to plugins-index with <slug>.json.

Rules

  • register only declares; no I/O, threads or connections at import or in register.
  • No monkey-patching of action_platform.* — replace a slot (surface.core.replace) or ask for a hook.
  • needs lists every host you talk to and every environment variable you read.

Reference: writing a plugin · plugins.

How it fits in Action Platform

Everything cloud-specific or service-specific in Action Platform is a plugin: deploy targets, CI runners, access providers, release strategies, changelog formats, MCP tools, CLI commands and cloud overlays. The real ones — apx-aws-lambda, apx-dokploy, apx-jenkins and apx-sentry — follow the same contract, and the catalog is plugins-index.

Contributing

Git-flow branches (<kind>/<issue>-slug), Conventional Commits and one pull request per change, as in the main repository's guide. Rules for contributors and agents are in AGENTS.md; the contract is SPEC.md.

License

Apache 2.0 — see LICENSE.

Metadata

Release files for apx-example 0.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for apx-example 0.3.1
File Size Uploaded Provenance Actions
apx_example-0.3.1.tar.gz 17.0 kB With provenance Details for apx_example-0.3.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for apx-example 0.3.1
File Interpreter ABI Platform Actions
apx_example-0.3.1-py3-none-any.whl Python 3 none any Details for apx_example-0.3.1-py3-none-any.whl

Total release size: 33.7 kB

Release files / apx_example-0.3.1.tar.gz

Download URL apx_example-0.3.1.tar.gz
Size 17.0 kB
Tags Source
SHA-256 checksum
How to use checksums
97b94542a3885cef5f9e44a0252d2c1690da0a4de35b30abf7e75e585940fe41
BLAKE2b-256 checksum
How to use checksums
b400a907a024cad5df9bc8012853d0397f45adbd9a17467b3de91580d675a2b5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

Release files / apx_example-0.3.1-py3-none-any.whl

Download URL apx_example-0.3.1-py3-none-any.whl
Size 16.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a49e06a49bfacc06f5b7dd3c7929bafaec15e666c13936e768c781027dba5ebe
BLAKE2b-256 checksum
How to use checksums
3bed62afff73ff7fd0a75fc8c65b8dfeed07fc5e47fc77578005e742ef54a84f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

Security for apx-example 0.3.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for apx_example-0.3.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page