Skip to main content

apx-example

Template for an Action Platform plugin — an apx, Action Platform extension; every package is named apx-<slug>. Every extension point once, small enough to read in one sitting:

File Extension point
plugin.py the Plugin: slug, needs, 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 (checks before a deploy), deploy (streams its output to the job log), verify, diagnose, delete
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

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.

Metadata

Release files for apx-example 0.2.0

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.2.0
File Size Uploaded
apx_example-0.2.0.tar.gz 12.2 kB Details

Built distribution (wheel)

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

Total release size: 24.8 kB

Release files / apx_example-0.2.0.tar.gz

Download URL apx_example-0.2.0.tar.gz
Size 12.2 kB
Tags Source
SHA-256 checksum
How to use checksums
746a042202f269a4abb2a60393b2a53bf78bf9dd0ead36ff91c0edd16d435c8b
BLAKE2b-256 checksum
How to use checksums
c2793d7c8873363b8c42e611e8b29fc9df196cebac402b419bfe53c7aafcf21f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 19, 2026.

Transparency log

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

Download URL apx_example-0.2.0-py3-none-any.whl
Size 12.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
285ee71b29e179f92616fd650b146ccc8178788a9767d16a9e4fd179f834fcef
BLAKE2b-256 checksum
How to use checksums
5445a5abada52b09843882976acb8b87a28780119e315f2a49c7b36df7468e54
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 19, 2026.

Transparency log

Release history Release notifications | RSS feed

0.3.0

2 release files

This release

0.2.0 This release

2 release files

0.1.0

2 release files

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