Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python: OAuth Library [closed]

Is there a full flegged python library for oauth? I haven't found any that handle reissuing of oauth tokens once they expire (Step 5 on the Yahoo OAuth flow).

So what is the most complete? I tried the one from oauth.net, and it doesn't handle oauth_session_handle which the oauth spec says is required if the endpoint returns it (like yahoo does).

So, what library should I be using? Are they all incomplete and I have to do it on my own?

like image 910
Paul Tarjan Avatar asked Nov 03 '09 10:11

Paul Tarjan


2 Answers

I think Leah Culver's python-oauth (that you've already found) is the best starting point even though it's not complete.

Leah has a mirror up on github which would make it easy to collaborate: http://github.com/leah/python-oauth/tree/master/oauth/

Update: As it stands today, it looks like SimpleGeo's python-oauth2 is the best starting point.

like image 69
lemonad Avatar answered Oct 10 '22 20:10

lemonad


Rauth is the new best answer as far as I'm concerned. Wraps requests library and it's well-maintained.

like image 39
Yarin Avatar answered Oct 10 '22 19:10

Yarin