• Stars
    star
    2,981
  • Rank 15,173 (Top 0.3 %)
  • Language
    Python
  • License
    MIT License
  • Created about 15 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

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.

More Repositories

1

django-ajax

A simple framework for creating AJAX endpoints in Django.
Python
260
star
2

kissxml

A simplistic take on SimpleXML for Python
Python
39
star
3

framework

Light weight MVC framework
PHP
17
star
4

python-gas-cli

A CLI utility for pushing local code to a remote Google App Script via the GDrive API.
Python
17
star
5

python-transloadit

A basic Python client library for Transloadit
Python
17
star
6

services_facebook

PEAR package for interfacing with Facebook's API
PHP
9
star
7

services_shorturl

A unified PEAR interface for creating and expanding short URL's.
PHP
8
star
8

db_virtual

DB_Virtual allows you to set up a single master and N nodes to balance traffic across multiple DB servers. Compatible with PEAR DB's API.
6
star
9

python-antminer

A Pythonic interface to the Antminer API.
Python
5
star
10

services_twitter

PHP interface to Twitter's API
PHP
5
star
11

services_flickr

This package lets you communicate with the popular photo sharing site, Flickr.com, through it's REST API.
PHP
5
star
12

services_urltea

An interface for creating urlTea URL's with their API as well as looking up destinations of given urlTea URL's.
PHP
4
star
13

laminate

A ReactJS UI framework for Cordova.
JavaScript
4
star
14

services_tinyurl

An interface for creating TinyURL's with their API as well as looking up destinations of given TinyURL's.
PHP
3
star
15

jax

JAX is a dead PHP4 MVC framework
3
star
16

services_digg

PEAR package to interface with Digg's API.
PHP
3
star
17

mysql2json

Converts a MySQL database to json.
Python
3
star
18

jane

A client library for Cassandra.
2
star
19

Services_Basecamp

A PEAR package for interfacing with 37Signals' Basecamp API
2
star
20

killedbypolice.net

Corporate news reports of people killed by nonmilitary law enforcement officers, whether in the line of duty or not, and regardless of reason or method. Inclusion implies neither wrongdoing nor justification on the part of the person killed or the officer involved. The post merely documents the occurrence of a death.
2
star
21

alexa-bot

Playing with making Alexa do things for me.
JavaScript
1
star
22

joestump.github.io

HTML
1
star
23

ubuntu-lts-cookbooks

A set of opinionated Chef cookbooks for Ubuntu's LTS distribution.
Ruby
1
star