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 details)

Uploaded Source

File details

Details for the file oap-rq-0.0.6.tar.gz.

File metadata

  • Download URL: oap-rq-0.0.6.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for oap-rq-0.0.6.tar.gz
Algorithm Hash digest
SHA256 22af45ee24255cbbdeebddd3729d76338edf2495a5c5f47f4a86696e3b08a664
MD5 90321f607d4540371a55cf73713d9da5
BLAKE2b-256 78993e8eda9c42fb5f6bd08ce5aeb761b8c1f2237ead4642c8a542ad4fb95d70

See more details on using hashes here.

Supported by

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