Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
EventBus
✓ from abxbus import EventBus
Always import top-level; submodules are internal.
Event
✓ from abxbus import Event
Base event class.
Basic async event publishing and subscribing.
import asyncio
from abxbus import EventBus, Event
class MyEvent(Event):
data: str
async def handler(event: MyEvent):
print(f"Handling: {event.data}")
async def main():
bus = EventBus()
bus.subscribe(MyEvent, handler)
await bus.publish(MyEvent(data="hello"))
asyncio.run(main())
Errors
Common errors & fixes
AttributeError: module 'abxbus' has no attribute 'EventBus'
Trying to import from a submodule like abxbus.core instead of top-level.
fixUse 'from abxbus import EventBus'
TypeError: object Event can't be used in 'await' expression
Calling publish without await in an async context.
fixAdd await before bus.publish(): 'await bus.publish(...)'
Upgrade
Version history
2.5.10latest on PyPI · released Jun 4, 2026
Audit
Dependencies
pydanticrequiredcore dependency for event schema validation
asynciooptionalrequired for async API