Registry / devops / abxbus

abxbus

JSON →
library2.5.10pypypi✓ verified 83d ago

Advanced Pydantic-powered event bus with async support. Current version 2.5.10, requires Python >=3.11. Active development with frequent releases.

pip install abxbus
INSTALL
IMPORT
SIG · ABXBUS
A
abxbus
devopspythonv2.5.10
harness data pending
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())
Debug
Known issues
breakingIn version 2.0, the EventBus API changed from sync to async. All listeners and publish calls must be awaited.
fix
Use async def listener and await bus.publish().
affects: >=2.0
gotchaEvent subclasses must define at least one field; otherwise, validation may fail silently.
fix
Always add fields to your Event subclass.
affects: all
gotchaSubscribing with a lambda or non-async function may cause runtime errors if the bus expects async handlers.
fix
Ensure all handlers are async functions.
affects: >=2.0
Errors
Common errors & fixes
AttributeError: module 'abxbus' has no attribute 'EventBus'
Trying to import from a submodule like abxbus.core instead of top-level.
fix
Use 'from abxbus import EventBus'
TypeError: object Event can't be used in 'await' expression
Calling publish without await in an async context.
fix
Add 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
Agent activity
47 hits · last 30 days
node
40
OpenAI (training)
1
Resources
abxbus — pip install abxbus · libregistry