Skip to content

Python OAuth 1.0a provider and client for Python 2.7 and 3

License

Notifications You must be signed in to change notification settings

TimSC/python-oauth10a

Repository files navigation

Build Status Licence MIT

Overview

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.

Installing

From pypi:

$ pip install oauth10a

From source:

$ python setup.py install

We recommend using virtualenv.

Examples

See the server and client source in the examples folder.

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. 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 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.

About

Python OAuth 1.0a provider and client for Python 2.7 and 3

Resources

License

Stars

Watchers

Forks

Packages

No packages published