A fully tested, abstract interface to creating OAuth clients and servers.
Switch branches/tags
v1.9 v1.9RC1 pre-1.0a hudson-python-oauth2-211 hudson-python-oauth2-210 hudson-python-oauth2-209 hudson-python-oauth2-208 hudson-python-oauth2-207 hudson-python-oauth2-206 hudson-python-oauth2-205 hudson-python-oauth2-204 hudson-python-oauth2-203 hudson-python-oauth2-202 hudson-python-oauth2-201 hudson-python-oauth2-200 hudson-python-oauth2-199 hudson-python-oauth2-170 hudson-python-oauth2-169 hudson-python-oauth2-169-SUCCESS hudson-python-oauth2-168 hudson-python-oauth2-168-SUCCESS hudson-python-oauth2-167 hudson-python-oauth2-167-SUCCESS hudson-python-oauth2-166 hudson-python-oauth2-166-SUCCESS hudson-python-oauth2-165 hudson-python-oauth2-165-SUCCESS hudson-python-oauth2-164 hudson-python-oauth2-164-SUCCESS hudson-python-oauth2-163 hudson-python-oauth2-163-SUCCESS hudson-python-oauth2-162 hudson-python-oauth2-162-SUCCESS hudson-python-oauth2-161 hudson-python-oauth2-161-SUCCESS hudson-python-oauth2-160 hudson-python-oauth2-160-SUCCESS hudson-python-oauth2-159 hudson-python-oauth2-159-SUCCESS hudson-python-oauth2-158 hudson-python-oauth2-158-SUCCESS hudson-python-oauth2-157 hudson-python-oauth2-156 hudson-python-oauth2-155 hudson-python-oauth2-155-SUCCESS hudson-python-oauth2-154 hudson-python-oauth2-154-SUCCESS hudson-python-oauth2-153 hudson-python-oauth2-153-SUCCESS hudson-python-oauth2-152 hudson-python-oauth2-152-SUCCESS hudson-python-oauth2-151 hudson-python-oauth2-151-SUCCESS hudson-python-oauth2-150 hudson-python-oauth2-150-SUCCESS hudson-python-oauth2-149 hudson-python-oauth2-149-SUCCESS hudson-python-oauth2-148 hudson-python-oauth2-148-SUCCESS hudson-python-oauth2-147 hudson-python-oauth2-147-SUCCESS hudson-python-oauth2-146 hudson-python-oauth2-146-SUCCESS hudson-python-oauth2-145 hudson-python-oauth2-145-SUCCESS hudson-python-oauth2-144 hudson-python-oauth2-144-SUCCESS hudson-python-oauth2-143 hudson-python-oauth2-143-SUCCESS hudson-python-oauth2-142 hudson-python-oauth2-141 hudson-python-oauth2-140 hudson-python-oauth2-139 hudson-python-oauth2-138 hudson-python-oauth2-137 hudson-python-oauth2-136 hudson-python-oauth2-135 hudson-python-oauth2-134 hudson-python-oauth2-134-SUCCESS hudson-python-oauth2-133 hudson-python-oauth2-133-SUCCESS hudson-python-oauth2-132 hudson-python-oauth2-132-SUCCESS hudson-python-oauth2-131 hudson-python-oauth2-131-SUCCESS hudson-python-oauth2-130 hudson-python-oauth2-130-SUCCESS hudson-python-oauth2-129 hudson-python-oauth2-129-SUCCESS hudson-python-oauth2-128 hudson-python-oauth2-128-SUCCESS hudson-python-oauth2-127 hudson-python-oauth2-127-SUCCESS debian/1.5.211 debian/1.5.210 debian/1.5.209 debian/1.5.208 debian/1.5.207 debian/1.5.206 debian/1.5.205
Nothing to show
Clone or download
jaitaiwan Merge pull request #216 from SylvainDe/master
Add most recent Python versions in Travis CI
Latest commit b94f69b Feb 12, 2018

README.md

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.