title: Generate python functions to wrap a REST API
body: <p>I have a REST API, say:</p>
  
  <pre><code>http://localhost/api/v1/foo1
  http://localhost/api/v1/foo2
  http://localhost/api/v1/foo3
  </code></pre>
  
  <p>I'd like to have a python client that would look something like</p>
  
  <pre><code>api({some kinda init code})
  
  result1 = api.get_foo1(params)
  result2 = api.post_foo2(params)
  result2 = api.post_foo2(params)
  </code></pre>
  
  <p>I'm really lazy and I was wondering if there's some existing python package that would generate such an API for me.</p>
  
  <p>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?</p>