Derek Stegelman

Django-Piston RSS Emitter

I recently had the need to push data to Django-Piston in RSS format. A little background: I had been developing an API with django piston emitting json and xml objects which was great, our project owner requested that these also be emitted in RSS format. This could be completed right out of the box with django's syndication framework and ignoring piston all together. The challenge with this, is my API currently supports passing in loads of parameters to query exactly the information desired. Implementing a solution with the syndication framework means I would need to replicate all my logic and duplicate it accross numerous classes and methods. To avoid this issue I created a custom emitter that expells RSS formatted data. I have open sourced the code on github. I would love any and all feedback to make this thing better.