Registry / database / edx-event-bus-redis

edx-event-bus-redis

JSON →
library1.0.0pypypiunverified

Redis Streams implementation for the Open edX event bus. Provides classes like RedisEventBus to produce and consume events over Redis streams. Current version 1.0.0, requires Python >=3.12. Release cadence is irregular, driven by requirements maintenance and occasional breaking changes.

pip install edx-event-bus-redis
INSTALL
IMPORT
SIG · EDX-EVENT-BUS-REDI
E
edx-event-bus-redis
databasepythonv1.0.0
Install
8.0s avg
Import
Disk
113MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.5.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 104.4MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 8.0s · import 0.000s · 111MB
113MB installed
● package 113MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

RedisEventBus
from edx_event_bus_redis import RedisEventBus
from edx_event_bus_redis import RedisEventBus

Minimal example: create a RedisEventBus, send an event, then consume from a stream.

import os from edx_event_bus_redis import RedisEventBus redis_url = os.environ.get('REDIS_URL', 'redis://localhost:6379/0') bus = RedisEventBus(url=redis_url) # Produce an event bus.send('user.registered', {'user_id': 42, 'email': 'test@example.com'}) # Consume events (blocking example) for event in bus.consume(['user.registered']): print(event) break
Debug
Known issues
breakingv1.0.0 drops Python 3.11 support. Must use Python >=3.12.
fix
Upgrade Python environment to 3.12 or later.
affects: >=1.0.0
breakingv0.3.0 removed the deprecated signal parameter from the consumer. Code relying on that parameter will break.
fix
Remove the signal argument from consumer calls.
affects: >=0.3.0
gotchaEnsure Redis is running and accessible at the configured URL. Misconfiguration leads to silent failures or ConnectionError.
fix
Verify REDIS_URL or default url points to a valid Redis instance.
affects: all
gotchaEvent bus configuration must match between producer and consumer (stream names, consumer groups). Mismatch results in no events being consumed.
fix
Use consistent stream names and group IDs across services.
affects: all
Upgrade
Version history
1.0.0latest on PyPI · released Mar 11, 2026
Audit
Dependencies
event-bus-kafkaoptionalAlternative backend; often confused with Redis backend
redisrequiredRequired for Redis Streams connectivity
djangooptionalUsed for signal handling and settings integration, but not strictly required for core bus
Agent activity
4 hits · last 30 days
node
4
Resources
edx-event-bus-redis — pip install edx-event-bus-redis · libregistry