Skip to main content

ONEX Service Provider Interface - Protocol definitions

Project description

omnibase_spi

Service provider interface protocols for the ONEX platform.

CI Python 3.12+ License: MIT Ruff Checked with mypy pre-commit

Install

uv add omnibase-spi

Minimal Example

from omnibase_spi.protocols.event_bus import ProtocolEventBusProducer

class MyProducer(ProtocolEventBusProducer):
    """Implement the event bus producer protocol."""

    async def publish(self, topic: str, payload: bytes) -> None:
        # Your implementation here
        ...

Key Features

  • 176+ protocol interfaces: Runtime-checkable protocols for all ONEX service boundaries
  • 22 domains: Event bus, handlers, nodes, registry, storage, and more
  • Zero implementations: Protocols only -- concrete implementations live in omnibase_infra
  • Structural typing: All protocols use @runtime_checkable for duck typing
  • Contract-first: Protocols define the contract, implementations fulfill it

Documentation

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

omnibase_spi-0.20.2.tar.gz (1.1 MB view details)

Uploaded Source

Built Distribution

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

omnibase_spi-0.20.2-py3-none-any.whl (758.3 kB view details)

Uploaded Python 3

File details

Details for the file omnibase_spi-0.20.2.tar.gz.

File metadata

  • Download URL: omnibase_spi-0.20.2.tar.gz
  • Upload date:
  • Size: 1.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for omnibase_spi-0.20.2.tar.gz
Algorithm Hash digest
SHA256 a44127b14cdb0bb3e41ce6e4c6676d69803f8039df975b6bc212d8166875dbc1
MD5 7c3eae3b1af6f3a67e45255717d68410
BLAKE2b-256 a3d1a129c6d6f59b39830cc6ff067980d1f9e950ea77e36a4213fe23be67b6aa

See more details on using hashes here.

File details

Details for the file omnibase_spi-0.20.2-py3-none-any.whl.

File metadata

  • Download URL: omnibase_spi-0.20.2-py3-none-any.whl
  • Upload date:
  • Size: 758.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for omnibase_spi-0.20.2-py3-none-any.whl
Algorithm Hash digest
SHA256 194388cebb86f96c803d6ab7cd51fa67c358eb54edae07b35dece59b3fb102dd
MD5 ff689b8d1b4b1e1a5b1e23e4806cfb70
BLAKE2b-256 5c3bc4b59a1e75b2de1bdcb9c3210196748e9ee5dc5eabeed83b7c81d34a1024

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page