I have a REST API, say:
http://localhost/api/v1/foo1
http://localhost/api/v1/foo2
http://localhost/api/v1/foo3
I'd like to have a python client that would look something like
api({some kinda init code})
result1 = api.get_foo1(params)
result2 = api.post_foo2(params)
result2 = api.post_foo2(params)
I'm really lazy and I was wondering if there's some existing python package that would generate such an API for me.
I've already done some searching in SO, the best approach I've found so far is to use the python-requests package, and write my own wrapper to pretty it up. Is there anything easier?