A Couple of Python Tools for Tornado or AMQP Users

By m0j0, November 23, 2009 9:20 am

Hi all,

Not lots of time to blog since starting my new gig as Senior Operations Developer at MyYearbook.com (which is pretty awesome, btw), but wanted to let anyone who’s interested know about a couple of tools I’ve released on github:

bunny is a CLI tool for doing quick tests and simple operations on an AMQP server (I use RabbitMQ for testing, but it should work with any AMQP server). It’ll do your basic create/delete of exchanges, queues, and bindings. It’s only capable of doing things that are part of AMQP, and I still need to finish the feature that tests functionality via a ’round trip’ test, where it sends a message, then gets it, then sends the body to stdout. If you find time before me to finish that, send a pull request or patch.

curtain is a mixin for use with the Tornado web server that provides HTTP Digest Authentication. I actually started with this recipe and altered/updated it in various ways. It’s still not complete according to RFC 2617 — I need to code for a few edge cases like getting a stale nonce, but what’s there does work, so if you (like me) were wondering what the performance comparison would look like between tornado doing digest auth and having a front-end proxy do it, have at it :)

4 Responses to “A Couple of Python Tools for Tornado or AMQP Users”

  1. As I was telling you on IRC, bunny is really nice. In regards to curtain, you might have been interested in some work I’ve done to integrate Tornado with CherryPy: http://trac.defuze.org/browser/oss/cumulus

    This would allow you to have RFC 2617 support for free through http://www.cherrypy.org/wiki/BuiltinTools#tools.auth_digest

  2. m0j0 says:

    Thanks, Sylvain — I don’t know cherrypy well, but it might’ve actually been easier to just learn it than to build my own. Of course once you go down the road of integration, there’s always some annoying lag between the newest version of tornado (which breaks some integration point) and the glue code that does the integration (or… vice versa).

    But that sounds overly pessimistic — good work on the integration stuff, and thanks for the kind words about bunny :)

  3. [...] This post was mentioned on Twitter by Peter Hoffmann, Planet Python. Planet Python said: Brian Jones: A Couple of Python Tools for Tornado or AMQP Users http://bit.ly/6Cvdbz [...]

  4. [...] original here:  A Couple of Python Tools for Tornado or AMQP Users | Musings of an … By admin | category: python | tags: developer, developer-at-myyearbook, new-gig, [...]

Leave a Reply

Panorama Theme by Themocracy