Skip to main content

No project description provided

Project description

use-rabbitmq

a plugin for usepy to use rabbitmq

example

from use_rabbitmq import useRabbitMQ

rmq = useRabbitMQ()


@rmq.listener(queue_name="test")
def test_listener(message):
    print(message.body)
    message.ack()  # ack message

if you use it with usepy, you can use it like this:

from usepy.plugin import useRabbitMQ

rmq = useRabbitMQ()

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

use_rabbitmq-0.1.7.tar.gz (2.8 kB view hashes)

Uploaded Source

Built Distribution

use_rabbitmq-0.1.7-py3-none-any.whl (3.1 kB view hashes)

Uploaded Python 3

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