Alex Martelli answers this SO question on this topic:
http://stackoverflow.com/questions/1288198/can-someone-suggest-a-well-designed-python-wrapper-of-a-rest-api

Toby

On 4/24/13 8:25 PM, Jim Gray wrote:
You usually want to follow the pattern actor.action(data) and not data.action(). Better grammar and no confusion about which actor performs action.

It is also more DRY and more friendly to duck typing. Which objects can .store()?

If you really want to do it the second way, consider using decorators such that my_object inherits the relevant bits from rest_service.

Jim

Reply via email to