访问restapi的助手模块
beanbag的Python项目详细描述
beanbag是一个简单的模块,让您可以轻松地访问restapi 太好了。例如:
>>> import beanbag >>> github = beanbag.BeanBag("https://api.github.com") >>> watchers = github.repos.ajtowns.beanbag.watchers() >>> for w in watchers: ... print(w["login"])
有关详细信息,请参见http://beanbag.readthedocs.org/。