Skip to main content

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

xyberos_plugin_sdk-0.1.0.tar.gz (9.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

xyberos_plugin_sdk-0.1.0-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

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

Hashes for xyberos_plugin_sdk-0.1.0.tar.gz
Algorithm Hash digest
SHA256 853f5c1431be5b518c72353b9b357b60a331d9f9f509e3bec87d5109d1aa84f4
MD5 03542b78744ebb58755b71af9471597b
BLAKE2b-256 c40c67353fa02293e740199e4e0e568c3b2ff1202d1b09d88cdbfb2754b18133

See more details on using hashes here.

File details

Details for the file xyberos_plugin_sdk-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for xyberos_plugin_sdk-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4a6e559662c50d2f9f74edd05b988e5741f2f656df5bf1fbb59d0bacdaf9f29f
MD5 9801beac592cf6e3aa0ceff39699c683
BLAKE2b-256 feba91c7967144bc7ebfd772b22f0754fb6235257546887943556713cedf12bb

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 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