omnibase_spi
omnibase_spi is the Service Provider Interface package for ONEX (OmniNode eXecution). It defines
protocol contracts, small wire-format contracts, and SPI exceptions that other
repos implement or consume.
This package is intentionally not the implementation layer. Concrete runtime,
transport, service, registry, and I/O behavior belongs in implementation repos
such as omnibase_infra.
Current Role
- Defines 231
protocol_*.pyfiles across 39 protocol domains. - Provides runtime-checkable Python
Protocolcontracts for service boundaries. - Provides frozen, data-only contracts in
src/omnibase_spi/contracts/for selected cross-boundary wire formats. - Imports
omnibase_coremodels and types where protocol signatures need shared platform data shapes. - Must not import implementation packages such as
omnibase_infra. - Must not contain service implementations, business workflows, state machines, transport clients, or general domain Pydantic models.
Dependency Direction
The import direction is deliberate and non-obvious:
Application and product repos
|
v
omnibase_spi ---- imports models/types ----> omnibase_core
^ ^
| implements protocols | uses models/types
|
omnibase_infra and other implementation repos --+
Allowed:
omnibase_spi -> omnibase_coreomnibase_infra -> omnibase_spiomnibase_infra -> omnibase_core- Product repos importing SPI protocols for type boundaries
Forbidden:
omnibase_core -> omnibase_spiomnibase_spi -> omnibase_infra- Protocol files that perform I/O or instantiate concrete services
- General domain
BaseModelclasses in SPI protocol modules
See Dependency Direction for the full rule, examples, and rationale.
Install
uv add omnibase_spi
For local workspace development, use the repository lockfile and the configured
omnibase-core source:
uv sync --group dev
Minimal Protocol Example
from typing import Protocol, runtime_checkable
@runtime_checkable
class ProtocolExampleService(Protocol):
"""Service boundary implemented outside omnibase_spi."""
async def run(self, payload: bytes) -> bytes:
"""Run the service operation."""
...
Add A Protocol
- Choose the domain under
src/omnibase_spi/protocols/. - Create a
protocol_<domain>_<name>.pyfile. - Name the public protocol
Protocol<Name>. - Add
@runtime_checkable. - Use
...method bodies only. - Import shared models from
omnibase_coreonly when the signature requires canonical platform models or types. - Add or update tests under
tests/. - Export the protocol from the domain
__init__.pyif it is public.
Common Commands
uv sync --group dev
uv run pytest
uv run mypy src/ --strict
uv run ruff check src/ tests/
uv run ruff format src/ tests/
python scripts/validation/run_all_validations.py
pre-commit run --all-files
uv build
Documentation
- Docs index
- Dependency direction
- Architecture overview
- API reference
- Developer guide
- Testing guide
- Contributing
- Security
- Agent context
- Claude context
License
Metadata
Release files for omnibase_spi 0.23.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| omnibase_spi-0.23.1.tar.gz | 1.1 MB | Without provenance | Details for omnibase_spi-0.23.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| omnibase_spi-0.23.1-py3-none-any.whl | Python 3 | none | any | Details for omnibase_spi-0.23.1-py3-none-any.whl |
Total release size: 1.9 MB
Release files / omnibase_spi-0.23.1.tar.gz
| Download URL | omnibase_spi-0.23.1.tar.gz |
|---|---|
| Size | 1.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
052129cde0811f232886bf1adf2c933549a0645190d6543d6d57b3133e8007f9
|
|
BLAKE2b-256 checksum How to use checksums |
a95cab273b77c5f4733a93dc4b7cc838c932cff521a9c1100d8006e6563e0b6f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","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}
|
Release files / omnibase_spi-0.23.1-py3-none-any.whl
| Download URL | omnibase_spi-0.23.1-py3-none-any.whl |
|---|---|
| Size | 746.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8f15d75ec17828ffac6790199854181df8011e9765efd2177cc9e117cf68dcf6
|
|
BLAKE2b-256 checksum How to use checksums |
b70f88eeff6e7078df14ea147ca6654d07d819570511204de6e59d6675f8c8cd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","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}
|
Security for omnibase_spi 0.23.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.