ActiveResource for Python

March 20, 2008

Note: This not ActiveRecord, but ActiveResource.

I’ve begun porting Ruby on Rails’ ActiveResource to Python. This is especially useful when dealing with APIs (such as the one I’m currently developing for Slicehost) or other ActiveResource implementations without having to use Ruby (or Rails).

Continue to the project Page


Comments

Your example didn't work on my python 2.5. Please provide more meaningful working example (may be with working REST-service, flickr, google?). I don't know Ruby well to understand it's ActiveResource magic, but still think that python example is somewhat broken.

Posted by Nick

The library works in 2.5, as that's what I'm testing in. The example posted is for illustrative purposes; the example itself won't work. If I can find a public-facing ActiveResource project, then I'll update the example. Keep in mind that ActiveResource isn't just simply REST, it's the XML format as well.

Posted by SuperJared

Plus, a good resource on understanding ActiveResource is here:

http://api.rubyonrails.com/files/vend...

Posted by SuperJared

Add your comment

No HTML; Only URLs and line breaks are converted.