apx-example 0.3.0__tar.gz → 0.3.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. {apx_example-0.3.0 → apx_example-0.3.1}/PKG-INFO +35 -3
  2. apx_example-0.3.1/README.md +68 -0
  3. {apx_example-0.3.0 → apx_example-0.3.1}/apx_example.egg-info/PKG-INFO +35 -3
  4. {apx_example-0.3.0 → apx_example-0.3.1}/pyproject.toml +1 -1
  5. apx_example-0.3.0/README.md +0 -36
  6. {apx_example-0.3.0 → apx_example-0.3.1}/LICENSE +0 -0
  7. {apx_example-0.3.0 → apx_example-0.3.1}/apx_example/__init__.py +0 -0
  8. {apx_example-0.3.0 → apx_example-0.3.1}/apx_example/abc.py +0 -0
  9. {apx_example-0.3.0 → apx_example-0.3.1}/apx_example/checks.py +0 -0
  10. {apx_example-0.3.0 → apx_example-0.3.1}/apx_example/cli.py +0 -0
  11. {apx_example-0.3.0 → apx_example-0.3.1}/apx_example/cloud.py +0 -0
  12. {apx_example-0.3.0 → apx_example-0.3.1}/apx_example/overlays/cloud/example/DEPLOY.md +0 -0
  13. {apx_example-0.3.0 → apx_example-0.3.1}/apx_example/overlays/cloud/example/deploy/run.sh +0 -0
  14. {apx_example-0.3.0 → apx_example-0.3.1}/apx_example/overlays/index.json +0 -0
  15. {apx_example-0.3.0 → apx_example-0.3.1}/apx_example/plugin.py +0 -0
  16. {apx_example-0.3.0 → apx_example-0.3.1}/apx_example/release.py +0 -0
  17. {apx_example-0.3.0 → apx_example-0.3.1}/apx_example/rules.py +0 -0
  18. {apx_example-0.3.0 → apx_example-0.3.1}/apx_example/spec.py +0 -0
  19. {apx_example-0.3.0 → apx_example-0.3.1}/apx_example/target.py +0 -0
  20. {apx_example-0.3.0 → apx_example-0.3.1}/apx_example/tools.py +0 -0
  21. {apx_example-0.3.0 → apx_example-0.3.1}/apx_example.egg-info/SOURCES.txt +0 -0
  22. {apx_example-0.3.0 → apx_example-0.3.1}/apx_example.egg-info/dependency_links.txt +0 -0
  23. {apx_example-0.3.0 → apx_example-0.3.1}/apx_example.egg-info/entry_points.txt +0 -0
  24. {apx_example-0.3.0 → apx_example-0.3.1}/apx_example.egg-info/requires.txt +0 -0
  25. {apx_example-0.3.0 → apx_example-0.3.1}/apx_example.egg-info/top_level.txt +0 -0
  26. {apx_example-0.3.0 → apx_example-0.3.1}/setup.cfg +0 -0
  27. {apx_example-0.3.0 → apx_example-0.3.1}/tests/test_plugin.py +0 -0
  28. {apx_example-0.3.0 → apx_example-0.3.1}/tests/test_target.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: apx-example
3
- Version: 0.3.0
3
+ Version: 0.3.1
4
4
  Summary: Template for an Action Platform plugin: tools, a CLI command, an overlay, a release strategy, a replaced slot, lifecycle hooks.
5
5
  Author-email: Action Platform <cloud@actionplatform.io>
6
6
  License-Expression: Apache-2.0
@@ -14,9 +14,29 @@ Requires-Dist: ruff>=0.6; extra == "dev"
14
14
  Requires-Dist: action-platform[mcp]; extra == "dev"
15
15
  Dynamic: license-file
16
16
 
17
- # apx-example
17
+ <p align="center">
18
+ <img src="https://raw.githubusercontent.com/actionplatform/action-platform/master/docs/assets/icon.svg" alt="Action Platform" width="120">
19
+ </p>
18
20
 
19
- Template for an [Action Platform](https://github.com/actionplatform/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:
21
+ <h1 align="center">apx-example</h1>
22
+
23
+ <p align="center">
24
+ <strong>Template for an Action Platform plugin: every extension point once, small enough to read in one sitting.</strong>
25
+ </p>
26
+
27
+ <p align="center">
28
+ <a href="https://pypi.org/project/apx-example/"><img alt="PyPI" src="https://img.shields.io/pypi/v/apx-example?style=flat-square&logo=pypi&logoColor=white&color=2ea44f"></a>
29
+ <a href="https://github.com/actionplatform/apx-example/releases/latest"><img alt="Release" src="https://img.shields.io/github/v/release/actionplatform/apx-example?style=flat-square&logo=github&color=2ea44f"></a>
30
+ <a href="https://github.com/actionplatform/apx-example/actions/workflows/code-quality.yml"><img alt="CI" src="https://img.shields.io/github/actions/workflow/status/actionplatform/apx-example/code-quality.yml?branch=master&style=flat-square&label=ci"></a>
31
+ <a href="https://github.com/actionplatform/apx-example/blob/master/LICENSE"><img alt="License" src="https://img.shields.io/pypi/l/apx-example?style=flat-square&color=blue"></a>
32
+ <img alt="Python" src="https://img.shields.io/badge/python-%E2%89%A53.11-3776ab?style=flat-square&logo=python&logoColor=white">
33
+ </p>
34
+
35
+ ---
36
+
37
+ 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](https://github.com/actionplatform/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.
38
+
39
+ ## What you get
20
40
 
21
41
  | File | Extension point |
22
42
  |---|---|
@@ -50,3 +70,15 @@ Template for an [Action Platform](https://github.com/actionplatform/action-platf
50
70
  - `needs` lists every host you talk to and every environment variable you read.
51
71
 
52
72
  Reference: [writing a plugin](https://github.com/actionplatform/action-platform/blob/master/docs/contribute_plugins.md) · [plugins](https://github.com/actionplatform/action-platform/blob/master/docs/use_plugins.md).
73
+
74
+ ## How it fits in Action Platform
75
+
76
+ Everything cloud-specific or service-specific in [Action Platform](https://github.com/actionplatform/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](https://github.com/actionplatform/apx-aws-lambda), [apx-dokploy](https://github.com/actionplatform/apx-dokploy), [apx-jenkins](https://github.com/actionplatform/apx-jenkins) and [apx-sentry](https://github.com/actionplatform/apx-sentry) — follow the same contract, and the catalog is [plugins-index](https://github.com/actionplatform/plugins-index).
77
+
78
+ ## Contributing
79
+
80
+ Git-flow branches (`<kind>/<issue>-slug`), Conventional Commits and one pull request per change, as in the [main repository's guide](https://github.com/actionplatform/action-platform/blob/master/CONTRIBUTING.md). Rules for contributors and agents are in [`AGENTS.md`](AGENTS.md); the contract is [`SPEC.md`](SPEC.md).
81
+
82
+ ## License
83
+
84
+ Apache 2.0 — see [LICENSE](LICENSE).
@@ -0,0 +1,68 @@
1
+ <p align="center">
2
+ <img src="https://raw.githubusercontent.com/actionplatform/action-platform/master/docs/assets/icon.svg" alt="Action Platform" width="120">
3
+ </p>
4
+
5
+ <h1 align="center">apx-example</h1>
6
+
7
+ <p align="center">
8
+ <strong>Template for an Action Platform plugin: every extension point once, small enough to read in one sitting.</strong>
9
+ </p>
10
+
11
+ <p align="center">
12
+ <a href="https://pypi.org/project/apx-example/"><img alt="PyPI" src="https://img.shields.io/pypi/v/apx-example?style=flat-square&logo=pypi&logoColor=white&color=2ea44f"></a>
13
+ <a href="https://github.com/actionplatform/apx-example/releases/latest"><img alt="Release" src="https://img.shields.io/github/v/release/actionplatform/apx-example?style=flat-square&logo=github&color=2ea44f"></a>
14
+ <a href="https://github.com/actionplatform/apx-example/actions/workflows/code-quality.yml"><img alt="CI" src="https://img.shields.io/github/actions/workflow/status/actionplatform/apx-example/code-quality.yml?branch=master&style=flat-square&label=ci"></a>
15
+ <a href="https://github.com/actionplatform/apx-example/blob/master/LICENSE"><img alt="License" src="https://img.shields.io/pypi/l/apx-example?style=flat-square&color=blue"></a>
16
+ <img alt="Python" src="https://img.shields.io/badge/python-%E2%89%A53.11-3776ab?style=flat-square&logo=python&logoColor=white">
17
+ </p>
18
+
19
+ ---
20
+
21
+ 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](https://github.com/actionplatform/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.
22
+
23
+ ## What you get
24
+
25
+ | File | Extension point |
26
+ |---|---|
27
+ | `plugin.py` | the `Plugin`: slug, `needs`, `options` (one with a setup button), `register`, `after_release`, `after_deploy` |
28
+ | `tools.py` | MCP tools `example_hello` and `example_remember`, with input and output schemas; `remember` writes the plugin's options store |
29
+ | `cli.py` | `action-platform example hello` |
30
+ | `rules.py` | a replaced core slot (`gitflow_rules`) — stricter branch kinds while the plugin is enabled |
31
+ | `release.py` | named providers: `[release] strategy = "calver"`, `[release] changelog = "plain"` |
32
+ | `target.py` | the `DeployTarget` for the `example` cloud — `preflight`, `readiness`, `deploy`, `verify`, `diagnose`, `delete` — composing the parts below through `parts(spec)` |
33
+ | `abc.py`, `spec.py` | one ABC per responsibility (`Cloud`, `Readiness`); a frozen `Spec` per call |
34
+ | `cloud.py`, `checks.py` | the implementations: the overlay's script (streams its output to the job log), the readiness checks |
35
+ | `tests/fake.py`, `tests/live/` | the cloud in memory for fast tests; a suite against the real destination, skipped without it |
36
+ | `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 |
37
+
38
+ ## For agents and editors
39
+
40
+ `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.
41
+
42
+ ## Use this template
43
+
44
+ 1. Create a repository from it, named `apx-<slug>`.
45
+ 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`.
46
+ 3. Delete what you do not need; a plugin with only `plugin.py` and one tool is fine.
47
+ 4. `pip install -e ".[dev]"`, `pytest`, `action-platform plugin list` (shows `example` once installed).
48
+ 5. Publish to PyPI; open a pull request to [plugins-index](https://github.com/actionplatform/plugins-index) with `<slug>.json`.
49
+
50
+ ## Rules
51
+
52
+ - `register` only declares; no I/O, threads or connections at import or in `register`.
53
+ - No monkey-patching of `action_platform.*` — replace a slot (`surface.core.replace`) or ask for a hook.
54
+ - `needs` lists every host you talk to and every environment variable you read.
55
+
56
+ Reference: [writing a plugin](https://github.com/actionplatform/action-platform/blob/master/docs/contribute_plugins.md) · [plugins](https://github.com/actionplatform/action-platform/blob/master/docs/use_plugins.md).
57
+
58
+ ## How it fits in Action Platform
59
+
60
+ Everything cloud-specific or service-specific in [Action Platform](https://github.com/actionplatform/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](https://github.com/actionplatform/apx-aws-lambda), [apx-dokploy](https://github.com/actionplatform/apx-dokploy), [apx-jenkins](https://github.com/actionplatform/apx-jenkins) and [apx-sentry](https://github.com/actionplatform/apx-sentry) — follow the same contract, and the catalog is [plugins-index](https://github.com/actionplatform/plugins-index).
61
+
62
+ ## Contributing
63
+
64
+ Git-flow branches (`<kind>/<issue>-slug`), Conventional Commits and one pull request per change, as in the [main repository's guide](https://github.com/actionplatform/action-platform/blob/master/CONTRIBUTING.md). Rules for contributors and agents are in [`AGENTS.md`](AGENTS.md); the contract is [`SPEC.md`](SPEC.md).
65
+
66
+ ## License
67
+
68
+ Apache 2.0 — see [LICENSE](LICENSE).
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: apx-example
3
- Version: 0.3.0
3
+ Version: 0.3.1
4
4
  Summary: Template for an Action Platform plugin: tools, a CLI command, an overlay, a release strategy, a replaced slot, lifecycle hooks.
5
5
  Author-email: Action Platform <cloud@actionplatform.io>
6
6
  License-Expression: Apache-2.0
@@ -14,9 +14,29 @@ Requires-Dist: ruff>=0.6; extra == "dev"
14
14
  Requires-Dist: action-platform[mcp]; extra == "dev"
15
15
  Dynamic: license-file
16
16
 
17
- # apx-example
17
+ <p align="center">
18
+ <img src="https://raw.githubusercontent.com/actionplatform/action-platform/master/docs/assets/icon.svg" alt="Action Platform" width="120">
19
+ </p>
18
20
 
19
- Template for an [Action Platform](https://github.com/actionplatform/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:
21
+ <h1 align="center">apx-example</h1>
22
+
23
+ <p align="center">
24
+ <strong>Template for an Action Platform plugin: every extension point once, small enough to read in one sitting.</strong>
25
+ </p>
26
+
27
+ <p align="center">
28
+ <a href="https://pypi.org/project/apx-example/"><img alt="PyPI" src="https://img.shields.io/pypi/v/apx-example?style=flat-square&logo=pypi&logoColor=white&color=2ea44f"></a>
29
+ <a href="https://github.com/actionplatform/apx-example/releases/latest"><img alt="Release" src="https://img.shields.io/github/v/release/actionplatform/apx-example?style=flat-square&logo=github&color=2ea44f"></a>
30
+ <a href="https://github.com/actionplatform/apx-example/actions/workflows/code-quality.yml"><img alt="CI" src="https://img.shields.io/github/actions/workflow/status/actionplatform/apx-example/code-quality.yml?branch=master&style=flat-square&label=ci"></a>
31
+ <a href="https://github.com/actionplatform/apx-example/blob/master/LICENSE"><img alt="License" src="https://img.shields.io/pypi/l/apx-example?style=flat-square&color=blue"></a>
32
+ <img alt="Python" src="https://img.shields.io/badge/python-%E2%89%A53.11-3776ab?style=flat-square&logo=python&logoColor=white">
33
+ </p>
34
+
35
+ ---
36
+
37
+ 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](https://github.com/actionplatform/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.
38
+
39
+ ## What you get
20
40
 
21
41
  | File | Extension point |
22
42
  |---|---|
@@ -50,3 +70,15 @@ Template for an [Action Platform](https://github.com/actionplatform/action-platf
50
70
  - `needs` lists every host you talk to and every environment variable you read.
51
71
 
52
72
  Reference: [writing a plugin](https://github.com/actionplatform/action-platform/blob/master/docs/contribute_plugins.md) · [plugins](https://github.com/actionplatform/action-platform/blob/master/docs/use_plugins.md).
73
+
74
+ ## How it fits in Action Platform
75
+
76
+ Everything cloud-specific or service-specific in [Action Platform](https://github.com/actionplatform/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](https://github.com/actionplatform/apx-aws-lambda), [apx-dokploy](https://github.com/actionplatform/apx-dokploy), [apx-jenkins](https://github.com/actionplatform/apx-jenkins) and [apx-sentry](https://github.com/actionplatform/apx-sentry) — follow the same contract, and the catalog is [plugins-index](https://github.com/actionplatform/plugins-index).
77
+
78
+ ## Contributing
79
+
80
+ Git-flow branches (`<kind>/<issue>-slug`), Conventional Commits and one pull request per change, as in the [main repository's guide](https://github.com/actionplatform/action-platform/blob/master/CONTRIBUTING.md). Rules for contributors and agents are in [`AGENTS.md`](AGENTS.md); the contract is [`SPEC.md`](SPEC.md).
81
+
82
+ ## License
83
+
84
+ Apache 2.0 — see [LICENSE](LICENSE).
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "apx-example"
3
- version = "0.3.0"
3
+ version = "0.3.1"
4
4
  description = "Template for an Action Platform plugin: tools, a CLI command, an overlay, a release strategy, a replaced slot, lifecycle hooks."
5
5
  readme = "README.md"
6
6
  license = "Apache-2.0"
@@ -1,36 +0,0 @@
1
- # apx-example
2
-
3
- Template for an [Action Platform](https://github.com/actionplatform/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:
4
-
5
- | File | Extension point |
6
- |---|---|
7
- | `plugin.py` | the `Plugin`: slug, `needs`, `options` (one with a setup button), `register`, `after_release`, `after_deploy` |
8
- | `tools.py` | MCP tools `example_hello` and `example_remember`, with input and output schemas; `remember` writes the plugin's options store |
9
- | `cli.py` | `action-platform example hello` |
10
- | `rules.py` | a replaced core slot (`gitflow_rules`) — stricter branch kinds while the plugin is enabled |
11
- | `release.py` | named providers: `[release] strategy = "calver"`, `[release] changelog = "plain"` |
12
- | `target.py` | the `DeployTarget` for the `example` cloud — `preflight`, `readiness`, `deploy`, `verify`, `diagnose`, `delete` — composing the parts below through `parts(spec)` |
13
- | `abc.py`, `spec.py` | one ABC per responsibility (`Cloud`, `Readiness`); a frozen `Spec` per call |
14
- | `cloud.py`, `checks.py` | the implementations: the overlay's script (streams its output to the job log), the readiness checks |
15
- | `tests/fake.py`, `tests/live/` | the cloud in memory for fast tests; a suite against the real destination, skipped without it |
16
- | `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 |
17
-
18
- ## For agents and editors
19
-
20
- `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.
21
-
22
- ## Use this template
23
-
24
- 1. Create a repository from it, named `apx-<slug>`.
25
- 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`.
26
- 3. Delete what you do not need; a plugin with only `plugin.py` and one tool is fine.
27
- 4. `pip install -e ".[dev]"`, `pytest`, `action-platform plugin list` (shows `example` once installed).
28
- 5. Publish to PyPI; open a pull request to [plugins-index](https://github.com/actionplatform/plugins-index) with `<slug>.json`.
29
-
30
- ## Rules
31
-
32
- - `register` only declares; no I/O, threads or connections at import or in `register`.
33
- - No monkey-patching of `action_platform.*` — replace a slot (`surface.core.replace`) or ask for a hook.
34
- - `needs` lists every host you talk to and every environment variable you read.
35
-
36
- Reference: [writing a plugin](https://github.com/actionplatform/action-platform/blob/master/docs/contribute_plugins.md) · [plugins](https://github.com/actionplatform/action-platform/blob/master/docs/use_plugins.md).
File without changes
File without changes