Skip to content

Instantly share code, notes, and snippets.

View danielrobbins's full-sized avatar

Daniel Robbins danielrobbins

View GitHub Profile
@vincenting
vincenting / github.py
Created March 10, 2015 13:50
github oauth2 for tornado.
#!/usr/bin/python
# -*- coding: utf-8 -*-
import functools
import urllib.parse as urllib_parse
from tornado.concurrent import return_future
from tornado.auth import _auth_return_future, AuthError
from tornado import httpclient
from tornado.httputil import url_concat