Current collected state Current
Observed since 21 Oct, 11:42 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
aiobus
An event-bus application layer, supports redis
Simply ASYNC framework to integrate DISTRIBUTED message bus to your application:
topic to instance without cluster setuppip install aiobus
import json
import asyncio
import datetime
from aiobus.redis import RedisBus
...
bus = RedisBus(
servers=['192.168.100.1', '192.168.100.2:6380'],
max_pool_size=1000
)
...
# Publisher Coroutine
async def publisher():
while True:
await bus.publish('my-topic', {'stamp': str(datetime.datetime.now())})
await asyncio.sleep(0.1)
...
# Subscriber Coroutine
async def subscriber():
await bus.subscribe('my-topic')
async for msg in await bus.listen():
print(json.dumps(msg, indent=2, sort_keys=True))
...
docker-compose up -d for demo purposesBefore to run tests you should
pip install -r requirements.txtdocker-compose up -dDownload counts and popularity will appear here as the collector receives them.
| Package / target | Requirement | Relationship |
|---|---|---|
aioredisEnvironment{
"extras": "",
"marker": null,
"requires_python": ">=3.5",
"evaluation": "NOT_EVALUATED"
} | aioredis (>=1.3.1) | runtime |
bdist_wheel · 11.32 KB · Python py3
sdist · 11.09 KB · Python source
Observed since 21 Oct, 11:42 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:088c2def83e2a7fc6f44fa2ba9806dc92af72bfb61390306c25ac8e94daa9be7