Need to use an OAuth-protected API in a Python webapp? oauth-dropins is for you! It’s a collection of drop-in OAuth client flows for many popular sites. It supports Facebook, Twitter, Google+, Instagram, Dropbox, Blogger, Tumblr, and WordPress.com, with more on the way. It also currently requires Google App Engine, but should support other platforms in the future.
You can use oauth-dropins in your project with just a bit of code. For example, to use it for Facebook, just add these two lines to your WSGI application:
from oauth_dropins import facebook application = webapp2.WSGIApplication([ ... ('/facebook/start_oauth', facebook.StartHandler.to('/facebook/oauth_callback')), ('/facebook/oauth_callback', facebook.CallbackHandler.to('/next')), ]
See the GitHub repo for more details. Happy hacking!