I need:
1. A generic AMQP consumer that receives messages that change the IP address used to access the AMQP broker. 2. An clean way of implementing an AMQP client that can support #1.
py-amqp-client provides a base class that is easily overridden to create custom AMQP clients that will automatically update their connection settings once certain messages are received on a secondary channel.
I was inspired by the declarative style of Django's models and forms classes, and Alex Gaynor's article, "You Built a Metaclass for *what*?" See the example.py file to get the gist of it.
- py-amqplib is used to interface with the AMQP broker.
- Developed for Python 2.6