r/Python•
alairock

RoboRabbit - A rabbitmq abstraction and configurator!

Resource

Hi! I have just published RoboRabbit! It's a slick little RabbitMQ asynchronous abstraction and configurator!

https://github.com/alairock/roborabbit

Background:
I have written (and rewritten) Rabbit code many times using aio_pika, and while it is a fantastic library, I find it can be really cumbersome to have to write the same basic logic for just listening-to and handling messages.

Another problem I have is all the code that I use to declare queues, exchanges, bindings to those queues and exchanges, dead letter exchanges and queues and binding the dead letter exchange to the dead letter queue. Phew! It can add up a lot with basic projects and balloons with more complex ones!

This library is my attempt at simplifying all the most common things I do with Rabbit. This library handles automatic declaration of exchanges queues and bindings through a simple yaml file. It also has a simple worker class that you can pass in the name of your queue and a handler and you can start handling messages right away!

Posted Oct 5, 2021, 5:26 PM UTC

2213
apockill•

Heck yeah! I'm all for rabbitmq wrappers to make getting started easier. It took me forever to make an extensible easy to use wrapper on my last project.

2
[deleted]•

[deleted]

-1
laundmo•

i think you accidentally commented twice dude

2
eicosane•

forgot to ack

2