Categories
General

txamqp-twistd update

A while ago I put some code online that makes using txamqp with twistd easy.

Recently Jason Williams has forked the code and created a module called txampq-helpers which is available via pypi. This new module is now linked from the Rabbitmq devtools page.

I’ve merged Jason’s changes back into my repository as well.

Categories
General

AMQP and Twisted

In one of my pet projects I’ve been using Twisted and txamqp. I use Twisted’s twistd to launch the service but unfortunately txamqp doesn’t come with any examples of how to use it with twistd. So I wrote a factory and protocol which makes it trivial to use txamqp with twistd. I haven’t tested it extensively but it appears to survive losing the connection to the AMQP server and reconnecting. I’m far from a Twisted expert though so please let me know if this isn’t the way it supposed to be done.

You can find the code in my Git repository.