xyberos-plugin-sdk
Typed plugin base classes, a declarative loader, and contract introspection for building Xyberos plugins.
Everything in this package is external and additive: it imports only the
stable public API of xyberos (the contracts, create_app, kernel.register,
entry points) and never modifies the core.
Install
pip install xyberos-plugin-sdk
Typed plugins
from xyberos.contracts import Tool
from xyberos_plugin_sdk.base import ToolPlugin
class GreetTool(Tool):
@property
def name(self) -> str:
return "greet"
def execute(self, context: object, **arguments) -> object:
return f"hello, {arguments.get('who', 'world')}"
class GreetPlugin(ToolPlugin):
@property
def name(self) -> str:
return "greet"
def tools(self):
return [GreetTool()]
Declarative plugins
Define a plugin in pyproject.toml and load it with
xyberos_plugin_sdk.declarative:
[tool.xyberos.plugins.github]
type = "tool"
auth = "token"
capabilities = ["repositories", "issues", "pull_requests"]
See xyberos_plugin_sdk.introspect for the contract introspection used by
the generator and validator (the "one rule" — derive everything from the
contracts so nothing can drift).
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file xyberos_plugin_sdk-0.1.0.tar.gz.
File metadata
- Download URL: xyberos_plugin_sdk-0.1.0.tar.gz
- Upload date:
- Size: 9.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
853f5c1431be5b518c72353b9b357b60a331d9f9f509e3bec87d5109d1aa84f4
|
|
| MD5 |
03542b78744ebb58755b71af9471597b
|
|
| BLAKE2b-256 |
c40c67353fa02293e740199e4e0e568c3b2ff1202d1b09d88cdbfb2754b18133
|
File details
Details for the file xyberos_plugin_sdk-0.1.0-py3-none-any.whl.
File metadata
- Download URL: xyberos_plugin_sdk-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4a6e559662c50d2f9f74edd05b988e5741f2f656df5bf1fbb59d0bacdaf9f29f
|
|
| MD5 |
9801beac592cf6e3aa0ceff39699c683
|
|
| BLAKE2b-256 |
feba91c7967144bc7ebfd772b22f0754fb6235257546887943556713cedf12bb
|