pyrate是一个用于restfulwebapi的python包装器。这就像魔法,但更简单。
pyrate的Python项目详细描述
吡咯酸盐图片::https://pypip.in/v/pyrate/badge.png
:目标:https://crate.io/packages/pyrate/
:alt:最新的PyPI版本
图片::https://pypip.in/d/pyrate/badge.png
:目标:https://crate.io/packages/pyrate/
:alt:pypi下载数
pyrate是restful web api的python包装。这就像是“魔法”,但却比简单得多。
>目前,以下服务已经实现
-`github<;github>;`` ` `丰收<;丰收>;` ` ` ` ` Basecamp<;Basecamp>;` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` `twitter(v1.1+oauth)<;twitter>;`
下面有一个快速入门指南,有关完整文档(WIP),请访问:`http://pyrate.readthedocs.org/en/latest/<;http://pyrate.readthedocs.org/en/latest/>;` ` ` ` ` ` ` ----`requests<;http://python requests.org>;` ` `-`requests\`oauthlib<;https://github.com/requests/requests oauthlib>;`_
安装
----
::
如此简单
pip安装pyrate
quick start
----
twitter
~~~~
:
从pyrate.services导入twitter
h=twitter.twitterpyrate('oauth-consumer-key','oauth-consumer-secret',
“oauth_token”、“oauth_token_secret”)
打印(h.do('account/verify_credentials')
打印(h.check_connection())
h.tweet(“太棒了!”)
mailchimp
~~~~~~~
:
从Pyrate.services导入mailchimp
打印(h.do('helper/ping')
打印(h.check_connection())
h.subscribeolist('listname','myemail@example.com')
h.unsubscribeFromList('listname',,'myemail@example.com')
~~~~~~~~~
:
>打印(h.check\u connection())
~~~~~~~
来自pyrate.services importgithub
h=github.GithubPyrate('user','password')
print(h.do('35;')
print(h.check#connection())
h.create_repo('name','description',private=True)
h.create_repo('name','description''organization')
h.删除回购协议('name')
basecamp
~“组织id”)
print(h.do('projects')
h.check_connection()
----
-创建更多的“便利”方法(比如
``h.tweet(“太棒了!”)``)
-实现CLI接口(请参阅branch
`feature/CLI<;https://github.com/Chive/pyrate/tree/feature/CLI>;`}uu)
-添加更多服务(打开以获取建议!)
-扩展文档
:目标:https://crate.io/packages/pyrate/
:alt:最新的PyPI版本
图片::https://pypip.in/d/pyrate/badge.png
:目标:https://crate.io/packages/pyrate/
:alt:pypi下载数
pyrate是restful web api的python包装。这就像是“魔法”,但却比简单得多。
>目前,以下服务已经实现
-`github<;github>;`` ` `丰收<;丰收>;` ` ` ` ` Basecamp<;Basecamp>;` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` `twitter(v1.1+oauth)<;twitter>;`
下面有一个快速入门指南,有关完整文档(WIP),请访问:`http://pyrate.readthedocs.org/en/latest/<;http://pyrate.readthedocs.org/en/latest/>;` ` ` ` ` ` `
安装
----
::
如此简单
pip安装pyrate
quick start
----
~~~~
:
从pyrate.services导入twitter
h=twitter.twitterpyrate('oauth-consumer-key','oauth-consumer-secret',
“oauth_token”、“oauth_token_secret”)
打印(h.do('account/verify_credentials')
打印(h.check_connection())
h.tweet(“太棒了!”)
mailchimp
~~~~~~~
:
从Pyrate.services导入mailchimp
打印(h.do('helper/ping')
打印(h.check_connection())
h.subscribeolist('listname','myemail@example.com')
h.unsubscribeFromList('listname',,'myemail@example.com')
~~~~~~~~~
:
>打印(h.check\u connection())
来自pyrate.services importgithub
h=github.GithubPyrate('user','password')
print(h.do('35;')
print(h.check#connection())
h.create_repo('name','description',private=True)
h.create_repo('name','description''organization')
h.删除回购协议('name')
basecamp
~“组织id”)
print(h.do('projects')
h.check_connection()
-创建更多的“便利”方法(比如
``h.tweet(“太棒了!”)``)
-实现CLI接口(请参阅branch
`feature/CLI<;https://github.com/Chive/pyrate/tree/feature/CLI>;`}uu)
-添加更多服务(打开以获取建议!)
-扩展文档