python-oauth2

A fully tested, abstract interface to creating OAuth clients and servers.

  • 所有者: joestump/python-oauth2
  • 平台:
  • 许可证: MIT License
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

Join the chat at https://gitter.im/joestump/python-oauth2 Build Status Coverage Number of issues Licence MIT

Note: This library implements OAuth 1.0 and not OAuth 2.0.

Overview

python-oauth2 is a python oauth library fully compatible with python versions: 2.6, 2.7, 3.3 and 3.4. This library is depended on by many other downstream packages such as Flask-Oauth.

Installing

You can install oauth2 via the PIP package.

$ pip install oauth2

We recommend using virtualenv.

Examples

Examples can be found in the wiki

Running tests

You can run tests using the following at the command line:

$ pip install -r requirements.txt
$ python setup.py test

History

This code was originally forked from Leah Culver and Andy Smith's oauth.py code. Some of the tests come from a fork by Vic Fryzel, while a revamped Request class and more tests were merged in from Mark Paschal's fork. A number of notable differences exist between this code and its forefathers:

  • 100% unit test coverage.
  • The DataStore object has been completely ripped out. While creating unit tests for the library I found several substantial bugs with the implementation and confirmed with Andy Smith that it was never fully baked.
  • Classes are no longer prefixed with OAuth.
  • The Request class now extends from dict.
  • The library is likely no longer compatible with Python 2.3.
  • The Client class works and extends from httplib2. It's a thin wrapper that handles automatically signing any normal HTTP request you might wish to make.

主要指标

概览
名称与所有者joestump/python-oauth2
主编程语言Python
编程语言Python (语言数: 2)
平台
许可证MIT License
所有者活动
创建于2009-10-21 17:21:07
推送于2024-04-09 13:40:11
最后一次提交2018-02-12 16:35:04
发布数152
最新版本名称v1.9 (发布于 2015-09-12 21:31:34)
第一版名称pre-1.0a (发布于 )
用户参与
星数3k
关注者数216
派生数0.9k
提交数352
已启用问题?
问题数133
打开的问题数51
拉请求数28
打开的拉请求数24
关闭的拉请求数63
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?