views:

495

answers:

1

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?

+1  A: 

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.

lemonad
Thanks. I forked her repo and am waiting on a pull request. http://github.com/ptarjan/python-oauth
Paul Tarjan
Thanks for adding to it! Helps me too as I'm using it for several projects — much appreciated!
lemonad