A fully tested, abstract interface to creating OAuth clients and servers.
Python
3,007
230 commits
updated Apr 9, 2024
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.
You can install oauth2 via the PIP package.
$ pip install oauth2
We recommend using virtualenv.
Examples can be found in the wiki
You can run tests using the following at the command line:
$ pip install -r requirements.txt
$ python setup.py test
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:
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.OAuth.Request class now extends from dict.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.Overall
Maintained
Code review
PyPI
Latest release
Releases this year
783 followers · starred Feb 2010
310 followers · starred Jan 2011
648 followers · starred Oct 2009
1,069 followers · starred Oct 2009
A fully tested, abstract interface to creating OAuth clients and servers.
Python
3,007
230 commits
updated Apr 9, 2024
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.
You can install oauth2 via the PIP package.
$ pip install oauth2
We recommend using virtualenv.
Examples can be found in the wiki
You can run tests using the following at the command line:
$ pip install -r requirements.txt
$ python setup.py test
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:
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.OAuth.Request class now extends from dict.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.Overall
Maintained
Code review
PyPI
Latest release
Releases this year
783 followers · starred Feb 2010
310 followers · starred Jan 2011
648 followers · starred Oct 2009
1,069 followers · starred Oct 2009