|
|
|
|
|
by icebraining
4441 days ago
|
|
Have you tried Hammock? It fakes it very well: >>> from hammock import Hammock as Github
>>> # Let's create the first chain of hammock using base api url
>>> github = Github('https://api.github.com')
>>> # Ok, let the magic happens, ask github for hammock watchers
>>> resp = github.repos('kadirpekel', 'hammock').watchers.GET()
>>> # now you're ready to take a rest for the rest the of code :)
>>> for watcher in resp.json: print watcher.get('login')
kadirpekel
...
..
Your "resources" example only works if there's a /resources endpoint, but client.foo(id).GET() works just fine.https://pypi.python.org/pypi/hammock |
|