swm-example-plugin 0.6.6.dev3__py3-none-any.whl → 0.11.0__py3-none-any.whl
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.
- swm_example_plugin/__init__.py +5 -1
- swm_example_plugin-0.11.0.dist-info/METADATA +378 -0
- swm_example_plugin-0.11.0.dist-info/RECORD +7 -0
- {swm_example_plugin-0.6.6.dev3.dist-info → swm_example_plugin-0.11.0.dist-info}/WHEEL +1 -1
- swm_example_plugin-0.11.0.dist-info/licenses/NOTICE +7 -0
- swm_example_plugin-0.6.6.dev3.dist-info/METADATA +0 -113
- swm_example_plugin-0.6.6.dev3.dist-info/RECORD +0 -6
- {swm_example_plugin-0.6.6.dev3.dist-info → swm_example_plugin-0.11.0.dist-info}/entry_points.txt +0 -0
- {swm_example_plugin-0.6.6.dev3.dist-info → swm_example_plugin-0.11.0.dist-info}/licenses/LICENSE +0 -0
swm_example_plugin/__init__.py
CHANGED
|
@@ -3,7 +3,11 @@ try:
|
|
|
3
3
|
except ImportError: # pragma: no cover
|
|
4
4
|
from importlib_metadata import PackageNotFoundError, version
|
|
5
5
|
from pathlib import Path
|
|
6
|
-
|
|
6
|
+
|
|
7
|
+
try:
|
|
8
|
+
import tomllib
|
|
9
|
+
except ImportError: # Python 3.10
|
|
10
|
+
import tomli as tomllib
|
|
7
11
|
|
|
8
12
|
try:
|
|
9
13
|
__version__ = version("swm-example-plugin")
|
|
@@ -0,0 +1,378 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: swm_example_plugin
|
|
3
|
+
Version: 0.11.0
|
|
4
|
+
Summary: This repository includes an example of a Swarmauri Plugin.
|
|
5
|
+
License-Expression: Apache-2.0
|
|
6
|
+
License-File: LICENSE
|
|
7
|
+
License-File: NOTICE
|
|
8
|
+
Keywords: swarmauri,plugin,example,agents,entry-points,sdk,scaffolding,template,tutorial,packaging,asyncio,extension-points,media-workflows
|
|
9
|
+
Author: Jacob Stewart
|
|
10
|
+
Author-email: jacob@swarmauri.com
|
|
11
|
+
Requires-Python: >=3.10,<3.15
|
|
12
|
+
Classifier: Development Status :: 1 - Planning
|
|
13
|
+
Classifier: Natural Language :: English
|
|
14
|
+
Classifier: Framework :: AsyncIO
|
|
15
|
+
Classifier: Operating System :: OS Independent
|
|
16
|
+
Classifier: Intended Audience :: Developers
|
|
17
|
+
Classifier: Topic :: Software Development :: Libraries
|
|
18
|
+
Classifier: Topic :: Education
|
|
19
|
+
Classifier: Programming Language :: Python
|
|
20
|
+
Classifier: Programming Language :: Python :: 3
|
|
21
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
24
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
25
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
26
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
27
|
+
Requires-Dist: tomli (>=2) ; python_version < "3.11"
|
|
28
|
+
Project-URL: Changelog, https://github.com/swarmauri/swarmauri-sdk/releases
|
|
29
|
+
Project-URL: Documentation, https://github.com/swarmauri/swarmauri-sdk/tree/main/pkgs/60-plugins/example_plugin#readme
|
|
30
|
+
Project-URL: Discussions, https://github.com/orgs/swarmauri/discussions
|
|
31
|
+
Project-URL: Homepage, https://github.com/swarmauri/swarmauri-sdk
|
|
32
|
+
Project-URL: Issues, https://github.com/swarmauri/swarmauri-sdk/issues
|
|
33
|
+
Project-URL: Source, https://github.com/swarmauri/swarmauri-sdk/tree/main/pkgs/60-plugins/example_plugin
|
|
34
|
+
Description-Content-Type: text/markdown
|
|
35
|
+
|
|
36
|
+
# swm_example_plugin
|
|
37
|
+
|
|
38
|
+
<!-- readme-standards:begin branding -->
|
|
39
|
+
<p align="center"><a href="https://github.com/swarmauri/swarmauri-sdk"><img src="https://raw.githubusercontent.com/swarmauri/swarmauri-sdk/master/assets/swarmauri.brand.theme.svg" alt="Swarmauri SDK" width="300"></a></p>
|
|
40
|
+
<p align="center"><strong>swm_example_plugin</strong></p>
|
|
41
|
+
<p align="center">This repository includes an example of a Swarmauri Plugin.</p>
|
|
42
|
+
<p align="center">
|
|
43
|
+
<a href="https://pypi.org/project/swm_example_plugin/"><img alt="pypi: swm_example_plugin" src="https://img.shields.io/pypi/v/swm_example_plugin?labelColor=1E293B&color=1D4ED8"></a>
|
|
44
|
+
<a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/60-plugins/example_plugin/pyproject.toml"><img alt="Source version: 0.11.0" src="https://img.shields.io/static/v1?label=Source%20version&message=0.11.0&labelColor=1E293B&color=4338CA"></a>
|
|
45
|
+
<a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/60-plugins/example_plugin/pyproject.toml"><img alt="Python: >=3.10,<3.15" src="https://img.shields.io/static/v1?label=Python&message=%3E%3D3.10%2C%3C3.15&labelColor=1E293B&color=0F766E"></a>
|
|
46
|
+
<a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/60-plugins/example_plugin/pyproject.toml"><img alt="Layer: plugins" src="https://img.shields.io/static/v1?label=Layer&message=plugins&labelColor=1E293B&color=6D28D9"></a>
|
|
47
|
+
<a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/60-plugins/example_plugin/README.md#lifecycle-and-migration"><img alt="Lifecycle: active" src="https://img.shields.io/static/v1?label=Lifecycle&message=active&labelColor=1E293B&color=166534"></a>
|
|
48
|
+
<a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/60-plugins/example_plugin/LICENSE"><img alt="License: Apache-2.0" src="https://img.shields.io/static/v1?label=License&message=Apache-2.0&labelColor=1E293B&color=86198F"></a>
|
|
49
|
+
<a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/60-plugins/example_plugin/NOTICE"><img alt="Notice: attribution" src="https://img.shields.io/static/v1?label=Notice&message=attribution&labelColor=1E293B&color=86198F"></a>
|
|
50
|
+
</p>
|
|
51
|
+
<p align="center">
|
|
52
|
+
<a href="https://pypi.org/project/swm_example_plugin/"><img alt="Monthly PyPI downloads: swm_example_plugin" src="https://img.shields.io/pypi/dm/swm_example_plugin?labelColor=1E293B&color=0E7490"></a>
|
|
53
|
+
<a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/60-plugins/example_plugin/README.md"><img alt="README hits: swm_example_plugin" src="https://hits.sh/github.com/swarmauri/swarmauri-sdk/pkgs/60-plugins/example_plugin/README.md.svg?label=README%20hits&labelColor=1E293B&color=0E7490"></a>
|
|
54
|
+
</p>
|
|
55
|
+
<p align="center">
|
|
56
|
+
<a href="https://github.com/swarmauri/swarmauri-sdk/actions/workflows/readme-standards.yml"><img alt="README standards: CI gate" src="https://img.shields.io/static/v1?label=README%20standards&message=CI%20gate&labelColor=1E293B&color=1D4ED8"></a>
|
|
57
|
+
<a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/60-plugins/example_plugin/tests/unit/test_readme_sources.py"><img alt="Tests: example source" src="https://img.shields.io/static/v1?label=Tests&message=example%20source&labelColor=1E293B&color=0F766E"></a>
|
|
58
|
+
<a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/60-plugins/example_plugin/README.md#certification-status"><img alt="Certification: not certified" src="https://img.shields.io/static/v1?label=Certification&message=not%20certified&labelColor=1E293B&color=92400E"></a>
|
|
59
|
+
<a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/tools/readme/POLICY.md"><img alt="Governance: repository policy" src="https://img.shields.io/static/v1?label=Governance&message=repository%20policy&labelColor=1E293B&color=4338CA"></a>
|
|
60
|
+
<a href="https://github.com/swarmauri/swarmauri-sdk/actions/workflows/readme-standards.yml"><img alt="Evidence: source and CI" src="https://img.shields.io/static/v1?label=Evidence&message=source%20and%20CI&labelColor=1E293B&color=6D28D9"></a>
|
|
61
|
+
</p>
|
|
62
|
+
<p align="center"><a href="#overview">Overview</a> · <a href="#installation">Installation</a> · <a href="#quick-start">Quick Start</a> · <a href="#usage">Usage</a> · <a href="#public-api-and-import-surfaces">API</a> · <a href="#contributing">Contributing</a> · <a href="#governance">Governance</a> · <a href="#license">License</a></p>
|
|
63
|
+
<!-- readme-standards:end branding -->
|
|
64
|
+
|
|
65
|
+
---
|
|
66
|
+
|
|
67
|
+
## Overview
|
|
68
|
+
|
|
69
|
+
### Summary
|
|
70
|
+
|
|
71
|
+
The Swarmauri Example Plugin is a lightweight reference package that shows how to
|
|
72
|
+
ship a plugin ready for the Swarmauri ecosystem. It demonstrates how to declare
|
|
73
|
+
entry points, surface metadata, and structure tests so that new plugin projects
|
|
74
|
+
start from a fully configured baseline that supports Python 3.10 through 3.12.
|
|
75
|
+
|
|
76
|
+
### Why This Package
|
|
77
|
+
|
|
78
|
+
`swm_example_plugin` isolates this responsibility: This repository includes an example of a Swarmauri Plugin. Its [package source](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/60-plugins/example_plugin/swm_example_plugin/__init__.py) exposes `Path`, allowing consumers to select this package without treating adjacent packages as part of its public contract.
|
|
79
|
+
|
|
80
|
+
### When to Use
|
|
81
|
+
|
|
82
|
+
Choose `swm_example_plugin` when your integration needs this repository includes an example of a Swarmauri Plugin. Match the imports below to your application boundary and install its declared dependencies before using the example.
|
|
83
|
+
|
|
84
|
+
### Features
|
|
85
|
+
|
|
86
|
+
- **Entry-point wiring** - exposes the `swarmauri.plugins` group so your agent
|
|
87
|
+
classes can be discovered automatically once implemented.
|
|
88
|
+
- **Ready-to-publish metadata** - includes keywords, classifiers, and long
|
|
89
|
+
descriptions wired directly into `pyproject.toml`.
|
|
90
|
+
- **Version helpers** - surfaces `__version__` and `__long_desc__` constants so
|
|
91
|
+
documentation and tooling can introspect the package after installation.
|
|
92
|
+
- **Testing scaffold** - ships with baseline unit tests verifying version
|
|
93
|
+
resolution to encourage a test-first development workflow.
|
|
94
|
+
|
|
95
|
+
### Non-Goals
|
|
96
|
+
|
|
97
|
+
`swm_example_plugin` owns this repository includes an example of a Swarmauri Plugin. Its imports do not by themselves configure credentials, deploy a service, or certify the behavior of its consumers. Dependencies and neighboring packages retain their own documented responsibilities.
|
|
98
|
+
|
|
99
|
+
---
|
|
100
|
+
|
|
101
|
+
## Getting Started
|
|
102
|
+
|
|
103
|
+
### Prerequisites
|
|
104
|
+
|
|
105
|
+
Python `>=3.10,<3.15` is required. The [manifest](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/60-plugins/example_plugin/pyproject.toml) declares no direct runtime dependencies. Read the example’s inputs and service requirements before execution.
|
|
106
|
+
|
|
107
|
+
### Installation
|
|
108
|
+
|
|
109
|
+
**Using uv**
|
|
110
|
+
|
|
111
|
+
```bash
|
|
112
|
+
uv add swm-example-plugin
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
**Using pip**
|
|
116
|
+
|
|
117
|
+
```bash
|
|
118
|
+
pip install swm-example-plugin
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
#### uv
|
|
122
|
+
|
|
123
|
+
<!-- readme-standards:begin installation.uv -->
|
|
124
|
+
```bash
|
|
125
|
+
uv add swm_example_plugin
|
|
126
|
+
```
|
|
127
|
+
<!-- readme-standards:end installation.uv -->
|
|
128
|
+
|
|
129
|
+
#### pip
|
|
130
|
+
|
|
131
|
+
<!-- readme-standards:begin installation.pip -->
|
|
132
|
+
```bash
|
|
133
|
+
python -m pip install swm_example_plugin
|
|
134
|
+
```
|
|
135
|
+
<!-- readme-standards:end installation.pip -->
|
|
136
|
+
|
|
137
|
+
#### Poetry
|
|
138
|
+
|
|
139
|
+
<!-- readme-standards:begin installation.poetry -->
|
|
140
|
+
```bash
|
|
141
|
+
poetry add swm_example_plugin
|
|
142
|
+
```
|
|
143
|
+
<!-- readme-standards:end installation.poetry -->
|
|
144
|
+
|
|
145
|
+
### Quick Start
|
|
146
|
+
|
|
147
|
+
#### Example
|
|
148
|
+
|
|
149
|
+
<!-- readme-standards:begin example.quick-start -->
|
|
150
|
+
Source: [docs/readme/quick_start.py](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/60-plugins/example_plugin/docs/readme/quick_start.py).
|
|
151
|
+
|
|
152
|
+
```python
|
|
153
|
+
from swm_example_plugin import __long_desc__, __version__
|
|
154
|
+
|
|
155
|
+
print(__version__)
|
|
156
|
+
print(__long_desc__.splitlines()[0])
|
|
157
|
+
```
|
|
158
|
+
<!-- readme-standards:end example.quick-start -->
|
|
159
|
+
|
|
160
|
+
#### Expected Result
|
|
161
|
+
|
|
162
|
+
The example demonstrates the documented `swm_example_plugin` source boundary or workflow. Complete its required configuration first. README CI checks the maintained source’s syntax and declarations; it does not claim that external services or the application workflow were exercised.
|
|
163
|
+
|
|
164
|
+
---
|
|
165
|
+
|
|
166
|
+
## Usage
|
|
167
|
+
|
|
168
|
+
### Common Workflows
|
|
169
|
+
|
|
170
|
+
<!-- readme-standards:begin example.usage -->
|
|
171
|
+
Source: [docs/readme/usage.py](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/60-plugins/example_plugin/docs/readme/usage.py).
|
|
172
|
+
|
|
173
|
+
```python
|
|
174
|
+
from swm_example_plugin import __long_desc__, __version__
|
|
175
|
+
|
|
176
|
+
print(__version__)
|
|
177
|
+
print(__long_desc__.splitlines()[0])
|
|
178
|
+
```
|
|
179
|
+
<!-- readme-standards:end example.usage -->
|
|
180
|
+
|
|
181
|
+
**Inspect published metadata**
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
**Discover the registered entry point**
|
|
185
|
+
|
|
186
|
+
```python
|
|
187
|
+
from importlib.metadata import entry_points
|
|
188
|
+
|
|
189
|
+
for ep in entry_points(group="swarmauri.plugins"):
|
|
190
|
+
if ep.name == "example_agent":
|
|
191
|
+
print(ep.name, "->", ep.value)
|
|
192
|
+
break
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
This skeleton intentionally leaves the actual agent implementation up to you.
|
|
196
|
+
Replace the target specified in the entry point with your concrete class to wire
|
|
197
|
+
custom functionality into the Swarmauri plugin registry.
|
|
198
|
+
|
|
199
|
+
### Configuration
|
|
200
|
+
|
|
201
|
+
Configure `swm_example_plugin` through the APIs in [package source](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/60-plugins/example_plugin/swm_example_plugin/__init__.py); its [manifest](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/60-plugins/example_plugin/pyproject.toml) describes installation requirements, not an implicit service configuration. No additional package-global configuration contract is inferred from dependencies.
|
|
202
|
+
|
|
203
|
+
### Error Handling
|
|
204
|
+
|
|
205
|
+
The inspected `swm_example_plugin` source does not establish a package-wide exception hierarchy. Preserve errors from its declared dependencies and validate inputs using the specific public contract in [package source](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/60-plugins/example_plugin/swm_example_plugin/__init__.py).
|
|
206
|
+
|
|
207
|
+
### Best Practices
|
|
208
|
+
|
|
209
|
+
Use the explicit `swm_example_plugin` imports documented below and keep collaborator configuration with the caller. Run the package’s relevant tests after changing `Path`; an import or successful installation alone does not establish its runtime guarantees.
|
|
210
|
+
|
|
211
|
+
---
|
|
212
|
+
|
|
213
|
+
## Package Boundary
|
|
214
|
+
|
|
215
|
+
### What It Owns
|
|
216
|
+
|
|
217
|
+
`swm_example_plugin` is located in `plugins` and owns this repository includes an example of a Swarmauri Plugin. Source-declared APIs include `Path`. The [manifest](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/60-plugins/example_plugin/pyproject.toml) records its direct dependency boundary.
|
|
218
|
+
|
|
219
|
+
### Public API and Import Surfaces
|
|
220
|
+
|
|
221
|
+
Import namespace: `swm_example_plugin`.
|
|
222
|
+
|
|
223
|
+
Source-declared exports or types: `Path`.
|
|
224
|
+
|
|
225
|
+
Inspect [package source](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/60-plugins/example_plugin/swm_example_plugin/__init__.py) for exact signatures; this inventory does not designate every internal module as stable.
|
|
226
|
+
|
|
227
|
+
### Entry Points
|
|
228
|
+
|
|
229
|
+
<!-- readme-standards:begin entry-points -->
|
|
230
|
+
- `swarmauri.plugins` → `example_agent` → `swm_example_plugin.agents:ExampleAgent`
|
|
231
|
+
<!-- readme-standards:end entry-points -->
|
|
232
|
+
|
|
233
|
+
### Injected Dependencies
|
|
234
|
+
|
|
235
|
+
The direct installation dependencies of `swm_example_plugin` are empty in the manifest. These declarations do not imply automatic provider selection. Pass collaborators through the explicit constructors or call signatures in [package source](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/60-plugins/example_plugin/swm_example_plugin/__init__.py).
|
|
236
|
+
|
|
237
|
+
### Protocol Consumers
|
|
238
|
+
|
|
239
|
+
No direct package-manifest dependency on `swm_example_plugin` was found in the audited three-repository inventory. External consumers may still use its documented imports or commands.
|
|
240
|
+
|
|
241
|
+
### Extensions
|
|
242
|
+
|
|
243
|
+
For `swm_example_plugin`, use the source-declared public interfaces (`Path`) when composing or extending behavior. Its entry-point section below is authoritative for registered plugins; no additional extension loader is inferred from the package name.
|
|
244
|
+
|
|
245
|
+
---
|
|
246
|
+
|
|
247
|
+
## Operations and Readiness
|
|
248
|
+
|
|
249
|
+
### Operational Requirements
|
|
250
|
+
|
|
251
|
+
Operate `swm_example_plugin` according to its actual entry points and collaborators. The dependency and Python requirements in the [manifest](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/60-plugins/example_plugin/pyproject.toml) are prerequisites; deployment topology, credentials, and readiness remain the responsibility of the consuming application unless explicitly documented above.
|
|
252
|
+
|
|
253
|
+
### Health and Observability
|
|
254
|
+
|
|
255
|
+
This README does not establish a standalone health endpoint for `swm_example_plugin`. Observe the concrete caller’s results, exceptions, and existing test reports. An application that embeds this package must define its own health and telemetry contract.
|
|
256
|
+
|
|
257
|
+
### Security and Resource Limits
|
|
258
|
+
|
|
259
|
+
Apply the input, credential, and resource constraints implemented in [package source](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/60-plugins/example_plugin/swm_example_plugin/__init__.py). The `swm_example_plugin` README gate is a documentation check, not a security review or a substitute for the implementation’s limits and caller authorization.
|
|
260
|
+
|
|
261
|
+
### Compatibility
|
|
262
|
+
|
|
263
|
+
This source version of `swm_example_plugin` declares Python `>=3.10,<3.15`. Consult its dependency constraints before upgrading. Source-version and registry-version badges have separate meanings; this migration makes no additional platform or interoperability certification claim.
|
|
264
|
+
|
|
265
|
+
---
|
|
266
|
+
|
|
267
|
+
## Verification
|
|
268
|
+
|
|
269
|
+
### Tests
|
|
270
|
+
|
|
271
|
+
Run `python -m pytest tests/unit/test_readme_sources.py` from the `swm_example_plugin` package directory for the maintained example source checks (Python compilation and non-Python file presence). Existing package tests include:
|
|
272
|
+
|
|
273
|
+
- [tests/unit/test_version.py](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/60-plugins/example_plugin/tests/unit/test_version.py)
|
|
274
|
+
|
|
275
|
+
The repository README gate also checks the required heading tree, metadata, managed fragments, and referenced files.
|
|
276
|
+
|
|
277
|
+
### Certification Status
|
|
278
|
+
|
|
279
|
+
No external certification is asserted for `swm_example_plugin` by this documentation migration. README conformance, example syntax, runtime tests, and protocol or security certification are distinct evidence scopes.
|
|
280
|
+
|
|
281
|
+
### Evidence
|
|
282
|
+
|
|
283
|
+
The [README standards CI](https://github.com/swarmauri/swarmauri-sdk/actions/workflows/readme-standards.yml) records mechanical documentation results for its tested commit. The [package source](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/60-plugins/example_plugin/swm_example_plugin/__init__.py) and example sources support the package-boundary description; external runtime behavior requires its own test evidence.
|
|
284
|
+
|
|
285
|
+
---
|
|
286
|
+
|
|
287
|
+
## FAQ
|
|
288
|
+
|
|
289
|
+
### Why
|
|
290
|
+
|
|
291
|
+
**Why select this package?** `swm_example_plugin` provides this repository includes an example of a Swarmauri Plugin; use its own API boundary rather than assuming neighboring packages are bundled or configured automatically.
|
|
292
|
+
|
|
293
|
+
### How
|
|
294
|
+
|
|
295
|
+
**How do I start?** Install or synchronize the environment under Getting Started, follow the maintained example for `swm_example_plugin`, and consult [package source](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/60-plugins/example_plugin/swm_example_plugin/__init__.py) for the exact types and signatures involved.
|
|
296
|
+
|
|
297
|
+
### When
|
|
298
|
+
|
|
299
|
+
**When should I validate an upgrade?** Recheck `swm_example_plugin` whenever its source version, declared collaborators, configuration, or caller changes. Run relevant behavioral tests in addition to the README gate before promotion.
|
|
300
|
+
|
|
301
|
+
---
|
|
302
|
+
|
|
303
|
+
## Documentation and Related Packages
|
|
304
|
+
|
|
305
|
+
### More Documentation
|
|
306
|
+
|
|
307
|
+
The [repository contribution guide](https://github.com/swarmauri/swarmauri-sdk/blob/master/CONTRIBUTING.md), [package source](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/60-plugins/example_plugin/swm_example_plugin/__init__.py), and [manifest](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/60-plugins/example_plugin/pyproject.toml) provide the supporting context for `swm_example_plugin`. The [README policy](https://github.com/groupsum/readme-standards/blob/master/docs/outline.md) defines the common document structure.
|
|
308
|
+
|
|
309
|
+
### Related Packages
|
|
310
|
+
|
|
311
|
+
No direct local dependency was identified for `swm_example_plugin` in this checkout. External dependency names are listed under Prerequisites; packages in the same directory layer are not automatically dependencies.
|
|
312
|
+
|
|
313
|
+
### Project Links
|
|
314
|
+
|
|
315
|
+
<!-- readme-standards:begin project-links -->
|
|
316
|
+
- [Changelog](https://github.com/swarmauri/swarmauri-sdk/releases)
|
|
317
|
+
- [Discussions](https://github.com/orgs/swarmauri/discussions)
|
|
318
|
+
- [Documentation](https://github.com/swarmauri/swarmauri-sdk/tree/main/pkgs/60-plugins/example_plugin#readme)
|
|
319
|
+
- [Homepage](https://github.com/swarmauri/swarmauri-sdk)
|
|
320
|
+
- [Issues](https://github.com/swarmauri/swarmauri-sdk/issues)
|
|
321
|
+
- [Source](https://github.com/swarmauri/swarmauri-sdk/tree/main/pkgs/60-plugins/example_plugin)
|
|
322
|
+
- [pypi: swm_example_plugin](https://pypi.org/project/swm_example_plugin/)
|
|
323
|
+
<!-- readme-standards:end project-links -->
|
|
324
|
+
|
|
325
|
+
- Source: <https://github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/60-plugins/example_plugin>
|
|
326
|
+
- Documentation: <https://github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/60-plugins/example_plugin#readme>
|
|
327
|
+
- Issues: <https://github.com/swarmauri/swarmauri-sdk/issues>
|
|
328
|
+
- Releases: <https://github.com/swarmauri/swarmauri-sdk/releases>
|
|
329
|
+
- Discussions: <https://github.com/orgs/swarmauri/discussions>
|
|
330
|
+
|
|
331
|
+
---
|
|
332
|
+
|
|
333
|
+
## Contributing
|
|
334
|
+
|
|
335
|
+
### How to Contribute
|
|
336
|
+
|
|
337
|
+
Follow the [contribution guide](https://github.com/swarmauri/swarmauri-sdk/blob/master/CONTRIBUTING.md) and include a focused example or regression for changes to `swm_example_plugin`. Keep package behavior, its documented boundary, and its tests aligned.
|
|
338
|
+
|
|
339
|
+
### Development Setup
|
|
340
|
+
|
|
341
|
+
Work from the `pkgs/60-plugins/example_plugin` checkout. Synchronize its declared development environment with uv, then run the relevant package tests and `python -m pytest tests/unit/test_readme_sources.py`. The repository’s dedicated README job installs `readme-standards==0.1.3` without resolving unrelated runtime packages.
|
|
342
|
+
|
|
343
|
+
### Notes for Maintainers
|
|
344
|
+
|
|
345
|
+
Edit authored prose directly in this `swm_example_plugin` README. Update source examples in `docs/readme/`, then run `readme-standards render --root . --write` from the package directory and review the diff. Required headings and generated blocks come from package-guide-v1.
|
|
346
|
+
|
|
347
|
+
---
|
|
348
|
+
|
|
349
|
+
## Governance
|
|
350
|
+
|
|
351
|
+
### Ownership and Decision Making
|
|
352
|
+
|
|
353
|
+
Changes to `swm_example_plugin` follow the maintainer review process of [swarmauri/swarmauri-sdk](https://github.com/swarmauri/swarmauri-sdk) and its contribution guide. Author attribution remains in the [manifest](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/60-plugins/example_plugin/pyproject.toml); this README does not assign new publishing or administrative authority.
|
|
354
|
+
|
|
355
|
+
### Standards and Policies
|
|
356
|
+
|
|
357
|
+
`swm_example_plugin` follows the versioned [package-guide-v1 outline](https://github.com/groupsum/readme-standards/blob/master/docs/outline.md). All fixed headings, hierarchy, order, separators, and package-specific branding are checked by CI; reviewers assess the accuracy and usefulness of authored claims.
|
|
358
|
+
|
|
359
|
+
### Lifecycle and Migration
|
|
360
|
+
|
|
361
|
+
The `swm_example_plugin` source version is `0.11.0`.
|
|
362
|
+
|
|
363
|
+
---
|
|
364
|
+
|
|
365
|
+
## License and Attribution
|
|
366
|
+
|
|
367
|
+
### License
|
|
368
|
+
|
|
369
|
+
<!-- readme-standards:begin license -->
|
|
370
|
+
Licensed under `Apache-2.0`. See [LICENSE](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/60-plugins/example_plugin/LICENSE).
|
|
371
|
+
<!-- readme-standards:end license -->
|
|
372
|
+
|
|
373
|
+
### Notices
|
|
374
|
+
|
|
375
|
+
<!-- readme-standards:begin notices -->
|
|
376
|
+
See [NOTICE](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/60-plugins/example_plugin/NOTICE) for attribution.
|
|
377
|
+
<!-- readme-standards:end notices -->
|
|
378
|
+
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
swm_example_plugin/__init__.py,sha256=wMz1gtWHAdRAN-nnEIsJH54L2WjNnRQgIDWE7lAQYs0,798
|
|
2
|
+
swm_example_plugin-0.11.0.dist-info/METADATA,sha256=p2XpjR3nKv4LU5eM-QzKMzJ05VKoSpAmmneaaZ3FJaA,21252
|
|
3
|
+
swm_example_plugin-0.11.0.dist-info/WHEEL,sha256=L-WvLdSBvJWHXv5zrQxDvNRnIgoBzLUpcbuiw19KCuQ,88
|
|
4
|
+
swm_example_plugin-0.11.0.dist-info/entry_points.txt,sha256=-N9PEgQFte2Yvv-b2FDLTQxjlpjcbXB67DPuThTiu7g,74
|
|
5
|
+
swm_example_plugin-0.11.0.dist-info/licenses/LICENSE,sha256=djUXOlCxLVszShEpZXshZ7v33G-2qIC_j9KXpWKZSzQ,11359
|
|
6
|
+
swm_example_plugin-0.11.0.dist-info/licenses/NOTICE,sha256=j4nFM9MWySdssgASEajNYsTiBQX_JaeFMPoeX1tIiQs,184
|
|
7
|
+
swm_example_plugin-0.11.0.dist-info/RECORD,,
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: swm_example_plugin
|
|
3
|
-
Version: 0.6.6.dev3
|
|
4
|
-
Summary: This repository includes an example of a Swarmauri Plugin.
|
|
5
|
-
License-Expression: Apache-2.0
|
|
6
|
-
License-File: LICENSE
|
|
7
|
-
Keywords: swarmauri,plugin,example,agents,entry-points,sdk,scaffolding,template,tutorial,packaging,asyncio,extension-points,media-workflows
|
|
8
|
-
Author: Jacob Stewart
|
|
9
|
-
Author-email: jacob@swarmauri.com
|
|
10
|
-
Requires-Python: >=3.10,<3.15
|
|
11
|
-
Classifier: Development Status :: 1 - Planning
|
|
12
|
-
Classifier: License :: OSI Approved :: Apache Software License
|
|
13
|
-
Classifier: Natural Language :: English
|
|
14
|
-
Classifier: Framework :: AsyncIO
|
|
15
|
-
Classifier: Operating System :: OS Independent
|
|
16
|
-
Classifier: Intended Audience :: Developers
|
|
17
|
-
Classifier: Topic :: Software Development :: Libraries
|
|
18
|
-
Classifier: Topic :: Education
|
|
19
|
-
Classifier: Programming Language :: Python
|
|
20
|
-
Classifier: Programming Language :: Python :: 3
|
|
21
|
-
Classifier: Programming Language :: Python :: 3 :: Only
|
|
22
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
23
|
-
Classifier: Programming Language :: Python :: 3.11
|
|
24
|
-
Classifier: Programming Language :: Python :: 3.12
|
|
25
|
-
Classifier: Programming Language :: Python :: 3.13
|
|
26
|
-
Classifier: Programming Language :: Python :: 3.14
|
|
27
|
-
Project-URL: Changelog, https://github.com/swarmauri/swarmauri-sdk/releases
|
|
28
|
-
Project-URL: Documentation, https://github.com/swarmauri/swarmauri-sdk/tree/main/pkgs/plugins/example_plugin#readme
|
|
29
|
-
Project-URL: Discussions, https://github.com/orgs/swarmauri/discussions
|
|
30
|
-
Project-URL: Homepage, https://github.com/swarmauri/swarmauri-sdk
|
|
31
|
-
Project-URL: Issues, https://github.com/swarmauri/swarmauri-sdk/issues
|
|
32
|
-
Project-URL: Source, https://github.com/swarmauri/swarmauri-sdk/tree/main/pkgs/plugins/example_plugin
|
|
33
|
-
Description-Content-Type: text/markdown
|
|
34
|
-
|
|
35
|
-

|
|
36
|
-
|
|
37
|
-
<p align="center">
|
|
38
|
-
<a href="https://pepy.tech/project/swm_example_plugin/">
|
|
39
|
-
<img src="https://static.pepy.tech/badge/swm_example_plugin/month" alt="PyPI - Downloads"/></a>
|
|
40
|
-
<a href="https://hits.sh/github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/plugins/example_plugin/">
|
|
41
|
-
<img alt="Hits" src="https://hits.sh/github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/plugins/example_plugin.svg"/></a>
|
|
42
|
-
<a href="https://pypi.org/project/swm_example_plugin/">
|
|
43
|
-
<img src="https://img.shields.io/badge/python-3.10%20%7C%203.11%20%7C%203.12%20%7C%203.13%20%7C%203.14-blue" alt="PyPI - Python Version"/></a>
|
|
44
|
-
<a href="https://pypi.org/project/swm_example_plugin/">
|
|
45
|
-
<img src="https://img.shields.io/pypi/l/swm_example_plugin" alt="PyPI - License"/></a>
|
|
46
|
-
<a href="https://pypi.org/project/swm_example_plugin/">
|
|
47
|
-
<img src="https://img.shields.io/pypi/v/swm_example_plugin?label=swm_example_plugin&color=green" alt="PyPI - swm_example_plugin"/></a>
|
|
48
|
-
</p>
|
|
49
|
-
|
|
50
|
-
The Swarmauri Example Plugin is a lightweight reference package that shows how to
|
|
51
|
-
ship a plugin ready for the Swarmauri ecosystem. It demonstrates how to declare
|
|
52
|
-
entry points, surface metadata, and structure tests so that new plugin projects
|
|
53
|
-
start from a fully configured baseline that supports Python 3.10 through 3.12.
|
|
54
|
-
|
|
55
|
-
## Features
|
|
56
|
-
|
|
57
|
-
- **Entry-point wiring** - exposes the `swarmauri.plugins` group so your agent
|
|
58
|
-
classes can be discovered automatically once implemented.
|
|
59
|
-
- **Ready-to-publish metadata** - includes keywords, classifiers, and long
|
|
60
|
-
descriptions wired directly into `pyproject.toml`.
|
|
61
|
-
- **Version helpers** - surfaces `__version__` and `__long_desc__` constants so
|
|
62
|
-
documentation and tooling can introspect the package after installation.
|
|
63
|
-
- **Testing scaffold** - ships with baseline unit tests verifying version
|
|
64
|
-
resolution to encourage a test-first development workflow.
|
|
65
|
-
|
|
66
|
-
## Installation
|
|
67
|
-
|
|
68
|
-
### Using `uv`
|
|
69
|
-
|
|
70
|
-
```bash
|
|
71
|
-
uv add swm-example-plugin
|
|
72
|
-
```
|
|
73
|
-
|
|
74
|
-
### Using `pip`
|
|
75
|
-
|
|
76
|
-
```bash
|
|
77
|
-
pip install swm-example-plugin
|
|
78
|
-
```
|
|
79
|
-
|
|
80
|
-
## Usage
|
|
81
|
-
|
|
82
|
-
### Inspect published metadata
|
|
83
|
-
|
|
84
|
-
```python
|
|
85
|
-
from swm_example_plugin import __long_desc__, __version__
|
|
86
|
-
|
|
87
|
-
print(__version__)
|
|
88
|
-
print(__long_desc__.splitlines()[0])
|
|
89
|
-
```
|
|
90
|
-
|
|
91
|
-
### Discover the registered entry point
|
|
92
|
-
|
|
93
|
-
```python
|
|
94
|
-
from importlib.metadata import entry_points
|
|
95
|
-
|
|
96
|
-
for ep in entry_points(group="swarmauri.plugins"):
|
|
97
|
-
if ep.name == "example_agent":
|
|
98
|
-
print(ep.name, "->", ep.value)
|
|
99
|
-
break
|
|
100
|
-
```
|
|
101
|
-
|
|
102
|
-
This skeleton intentionally leaves the actual agent implementation up to you.
|
|
103
|
-
Replace the target specified in the entry point with your concrete class to wire
|
|
104
|
-
custom functionality into the Swarmauri plugin registry.
|
|
105
|
-
|
|
106
|
-
## Project Resources
|
|
107
|
-
|
|
108
|
-
- Source: <https://github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/plugins/example_plugin>
|
|
109
|
-
- Documentation: <https://github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/plugins/example_plugin#readme>
|
|
110
|
-
- Issues: <https://github.com/swarmauri/swarmauri-sdk/issues>
|
|
111
|
-
- Releases: <https://github.com/swarmauri/swarmauri-sdk/releases>
|
|
112
|
-
- Discussions: <https://github.com/orgs/swarmauri/discussions>
|
|
113
|
-
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
swm_example_plugin/__init__.py,sha256=m5Q34kx7J-3ozJSjmEc8egJFV_eakNOXLNMFv9T1FPM,725
|
|
2
|
-
swm_example_plugin-0.6.6.dev3.dist-info/METADATA,sha256=8vrPH3g_AFRRh8jSbT_RwJKelnN6SPxQdbZSahKLjBQ,4906
|
|
3
|
-
swm_example_plugin-0.6.6.dev3.dist-info/WHEEL,sha256=EGEvSphFYqXKs23-kQBeyNoJP1nrT8ZJKQoi5p5DYL8,88
|
|
4
|
-
swm_example_plugin-0.6.6.dev3.dist-info/entry_points.txt,sha256=-N9PEgQFte2Yvv-b2FDLTQxjlpjcbXB67DPuThTiu7g,74
|
|
5
|
-
swm_example_plugin-0.6.6.dev3.dist-info/licenses/LICENSE,sha256=djUXOlCxLVszShEpZXshZ7v33G-2qIC_j9KXpWKZSzQ,11359
|
|
6
|
-
swm_example_plugin-0.6.6.dev3.dist-info/RECORD,,
|
{swm_example_plugin-0.6.6.dev3.dist-info → swm_example_plugin-0.11.0.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
{swm_example_plugin-0.6.6.dev3.dist-info → swm_example_plugin-0.11.0.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|