ONEX Core Framework (omnibase-core)
raw JSON → 0.40.0 verified Fri May 01 auth: no python
ONEX Core Framework provides base classes, contracts, and essential implementations for the ONEX ecosystem, including runtime local orchestration, compliance scanning, event bus, and CLI tools. Current version: 0.40.0. Active development with weekly releases.
pip install omnibase-core Common errors
error ModuleNotFoundError: No module named 'omnibase' ↓
cause Incorrect package name used in import; the PyPI package is 'omnibase-core' and the import module is 'omnibase_core'.
fix
Install omnibase-core and import as from omnibase_core import ...
error AttributeError: module 'omnibase_core' has no attribute 'RuntimeLocal' ↓
cause Attempting to import RuntimeLocal directly from the top-level package instead of its specific submodule.
fix
Use 'from omnibase_core.runtime_local import RuntimeLocal'
Warnings
breaking The event_bus_enabled parameter was removed from contracts in v0.40.0. Use EventBusInmemory directly if needed. ↓
fix Instantiate EventBusInmemory separately and pass it to components that require an event bus.
breaking Removal of old import paths: from omnibase_core.contracts import ModelHandlerContractExtended is deprecated; use the new contract import paths as per documentation. ↓
fix Check the official docs for updated contract import locations.
gotcha The package uses SPDX license headers; ensure your code complies if you contribute. ↓
fix Add SPDX header to any files you create in the repo.
Imports
- RuntimeLocal wrong
from omnibase import RuntimeLocalcorrectfrom omnibase_core.runtime_local import RuntimeLocal - EventBusInmemory wrong
from omnibase_core.event_bus import EventBuscorrectfrom omnibase_core.event_bus import EventBusInmemory
Quickstart
import os
from omnibase_core.runtime_local import RuntimeLocal
rt = RuntimeLocal()
result = rt.run("hello_world", params={"name": os.environ.get('NAME', 'World')})
print(result)