python-oauth10a is a python OAuth 1.0a library fully compatible with python versions: 2.7 and 3.4+. Documentation is generated by sphinx and hosted on readthedocs.io.
From pypi:
$ pip install oauth10a
From source:
$ python setup.py install
We recommend using virtualenv.
See the server and client source in the examples folder.
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. Forked again from joestump's python-oauth2 which seems to be unmaintained. A number of notable differences exist between this code and its forefathers:
- Nearly 100% unit test coverage.
- Classes are no longer prefixed with
OAuth
. - The
Request
class now extends fromdict
. - The library is likely no longer compatible with Python 2.3.
- The
Client
class works and extends fromhttplib2
. It's a thin wrapper that handles automatically signing any normal HTTP request you might wish to make.