Skip to main content

No project description provided

Project description

oap-rq

Getting started

Simple Asyncio Queue message Sender and Receiver using redis

  • Contains:
    • Sender
    • Receiver
    • Monitor

Minimum Requirements

  • python 3.8 or greater

installation

  • pip install oap-rq

Usage

from oap_rq.q import QBus

q = QBus(redis, service="test", queue="customer-food") # pass redis object 

Sender

resp = await q.send({"test": "me"})
print(resp) #confirmation msg id

Receiver

@q.consumer(name="foo-consumer")
async def process(event):
    async for e in event:
        print(e.data) # incoming data
        await e.ack()  # send msg ack 
        

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

oap-rq-0.0.6.tar.gz (5.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page