一种基于休息的普通orm。
pyresto的Python项目详细描述
示例
Github
import pyresto.apis.github as GitHub user = GitHub.User.get('berkerpeksag') print 'Watchers: {0:d}'.format(sum(r.watchers for r in user.repos))
布吉拉
from pyresto.apis.bugzilla import mozilla mozilla.auth(username='<USERNAME>', password='<PASSWORD>') bug = mozilla.Bug.get('774141') print bug.id, bug.status, bug.summary # 774141 NEW Add generic Bugzilla Python client API
安装
要安装pyresto,只需:
pip install pyresto
文档
位于Read the Docs上的文档。
许可证
以下许可证涵盖了本项目中的所有文件,除非另有明确说明。
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.