Module Import alias Import alias TryExcept body ImportFrom alias handlers ExceptHandler type NameLoad body ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign AttributeStore NameLoad attr BoolOpOr NameLoad Call NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Dict Str Str Str Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Assign AttributeStore NameLoad attr DictComp NameLoad NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad kwarg body Expr Str Assign NameStore AttributeLoad Call NameLoad NameLoad attr If UnaryOpNot Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Raise Call NameLoad BinOpMod Str NameLoad Assign NameStore IfExp CompareIs NameLoad NameLoad Dict NameLoad Expr Call AttributeLoad NameLoad attr Str Str If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Assign NameStore AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Return Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Str If BoolOpOr UnaryOpNot NameLoad UnaryOpNot NameLoad body If CompareLt AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr keyword Num Return Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad If CompareEq NameLoad Num body Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Call AttributeLoad NameLoad attr Str Str Return If CompareGt BinOpMult Num NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr orelse Assign NameStore AttributeLoad NameLoad attr Expr Call NameLoad Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad kwarg body Expr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Call NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad kwarg body Expr Str Assign NameStore Call AttributeLoad Str attr NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad kwarg body Expr Str Assign NameStore Call AttributeLoad Str attr Call NameLoad If CompareIsNot NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Dict Assign SubscriptStore NameLoad Index Str NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad kwarg body Expr Str Assign NameStore Call AttributeLoad Str attr keyword NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad kwarg body Expr Str Assign NameStore Call AttributeLoad Str attr keyword NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults Str NameLoad NameLoad kwarg body Expr Str Assign NameStore Call AttributeLoad Str attr Call NameLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Dict Assign SubscriptStore NameLoad Index Str NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad kwarg body Expr Str Assign NameStore Call AttributeLoad Str attr keyword NameLoad keyword NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad kwarg body Expr Str Assign NameStore Call AttributeLoad Str attr keyword NameLoad keyword NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad For NameStore SubscriptLoad NameLoad Index Str body If CompareEq SubscriptLoad NameLoad Index Str NameLoad body Return NameLoad Raise Call NameLoad Num BinOpMod Str TupleLoad NameLoad Call NameLoad SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults Str NameLoad kwarg body Expr Str If CompareIn Str NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad Assign NameStore Call NameLoad FunctionDef arguments args NameParam defaults body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr NameLoad Return If NameLoad body Assign NameStore Call NameLoad NameLoad orelse Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad keyword NameLoad NameLoad Return NameLoad decorator_list decorator_list
N/A N/A json N/A os N/A N/A urllib.parse urlparse N/A N/A N/A ImportError N/A urlparse urlparse tornado.concurrent Future tornado.httpclient AsyncHTTPClient HTTPError tornado.httputil url_concat tornado.log app_log utils url_path_join quote response_text AsyncGitHubClient N/A object N/A N/A AsyncHTTPClient wrapper with methods for common requests N/A auth None __init__ N/A N/A self client N/A None N/A N/A N/A self client N/A client N/A AsyncHTTPClient N/A N/A self github_api_url N/A N/A N/A os environ get GITHUB_API_URL https://api.github.com/ N/A N/A N/A self authenticate N/A authenticate N/A N/A self N/A N/A N/A N/A self auth N/A client_id client_secret access_token N/A N/A N/A os environ get GITHUB_OAUTH_KEY N/A N/A N/A os environ get GITHUB_OAUTH_SECRET N/A N/A N/A os environ get GITHUB_API_TOKEN N/A N/A self auth N/A k v N/A N/A k v N/A N/A N/A self auth items v N/A fetch N/A N/A self url callback params N/A None None kwargs N/A N/A Add GitHub auth to self.client.fetch N/A host N/A N/A urlparse url hostname N/A N/A N/A N/A url startswith N/A self github_api_url N/A N/A N/A ValueError N/A Only fetch GitHub urls with GitHub auth (%s) url N/A params N/A N/A params None N/A params N/A N/A N/A kwargs setdefault user_agent Tornado-Async-GitHub-Client N/A N/A self auth N/A N/A N/A N/A params update N/A self auth N/A url N/A url_concat url params N/A future N/A N/A N/A self client fetch url callback kwargs N/A N/A N/A future add_done_callback N/A self _log_rate_limit N/A future N/A _log_rate_limit N/A N/A self future N/A N/A N/A log GitHub rate limit headers
        
        - error if 0 remaining
        - warn if 10% or less remain
        - debug otherwise
         N/A N/A N/A r N/A N/A future result N/A N/A N/A HTTPError N/A e N/A N/A r N/A e response N/A N/A r None N/A N/A N/A limit_s N/A N/A N/A r headers get X-RateLimit-Limit N/A remaining_s N/A N/A N/A r headers get X-RateLimit-Remaining N/A N/A N/A remaining_s N/A limit_s N/A N/A N/A N/A r code 300 N/A N/A N/A N/A app_log warn No rate limit headers. Did GitHub change? %s N/A N/A json dumps N/A dict N/A r headers indent 1 N/A N/A remaining N/A int remaining_s N/A limit N/A int limit_s N/A N/A remaining 0 N/A N/A jsondata N/A response_text r N/A data N/A N/A json loads jsondata N/A N/A N/A app_log error GitHub rate limit (%s) exceeded: %s limit N/A N/A data get message no message N/A N/A N/A N/A 10 remaining limit N/A N/A log N/A app_log debug N/A N/A log N/A app_log warn N/A N/A log %i/%i GitHub API requests remaining remaining limit N/A github_api_request N/A N/A self path callback N/A None kwargs N/A N/A Make a GitHub API request to URL
        
        URL is constructed from url and params, if specified.
        callback and **kwargs are passed to client.fetch unmodified.
         N/A url N/A url_path_join N/A self github_api_url N/A quote path N/A N/A N/A self fetch url callback kwargs N/A get_gist N/A N/A self gist_id callback N/A None kwargs N/A N/A Get a gist N/A path N/A N/A gists/{} format gist_id N/A N/A N/A self github_api_request path callback kwargs N/A get_contents N/A N/A self user repo path callback ref N/A None None kwargs N/A N/A Make contents API request - either file contents or directory listing N/A path N/A N/A repos/{user}/{repo}/contents/{path} format N/A locals N/A N/A ref None N/A N/A params N/A N/A kwargs setdefault params N/A N/A N/A params N/A ref ref N/A N/A N/A self github_api_request path callback kwargs N/A get_repos N/A N/A self user callback N/A None kwargs N/A N/A List a user's repos N/A path N/A N/A users/{user}/repos format user user N/A N/A N/A self github_api_request path callback kwargs N/A get_gists N/A N/A self user callback N/A None kwargs N/A N/A List a user's gists N/A path N/A N/A users/{user}/gists format user user N/A N/A N/A self github_api_request path callback kwargs N/A get_tree N/A N/A self user repo ref recursive callback N/A master False None kwargs N/A N/A Get a git tree N/A path N/A N/A repos/{user}/{repo}/git/trees/{ref} format N/A locals N/A recursive N/A N/A params N/A N/A kwargs setdefault params N/A N/A N/A params N/A recursive True N/A N/A N/A self github_api_request path callback kwargs N/A get_branches N/A N/A self user repo callback N/A None kwargs N/A N/A List a repo's branches N/A path N/A N/A repos/{user}/{repo}/branches format user user repo repo N/A N/A N/A self github_api_request path callback kwargs N/A get_tags N/A N/A self user repo callback N/A None kwargs N/A N/A List a repo's branches N/A path N/A N/A repos/{user}/{repo}/tags format user user repo repo N/A N/A N/A self github_api_request path callback kwargs N/A _extract_tree_entry N/A N/A self path tree_response N/A N/A N/A extract a single tree entry from a file list
        
        For use as a callback in get_tree_entry
        raises 404 if not found
         N/A N/A N/A tree_response rethrow N/A jsondata N/A response_text tree_response N/A data N/A N/A json loads jsondata N/A entry N/A data N/A tree N/A N/A N/A N/A entry N/A path path N/A N/A entry N/A N/A HTTPError 404 N/A %s not found among %i files N/A path N/A len N/A data N/A tree N/A get_tree_entry N/A N/A self user repo path ref callback N/A master None kwargs N/A N/A Get a single tree entry for a path
        
        Useful for finding the blob url for a given path.
         N/A N/A / path N/A N/A N/A kwargs N/A recursive True N/A f N/A Future cb N/A N/A response N/A N/A N/A N/A N/A tree_entry N/A N/A self _extract_tree_entry path response N/A N/A N/A Exception N/A e N/A N/A N/A N/A f set_exception e N/A N/A callback N/A N/A result N/A callback tree_entry N/A N/A result tree_entry N/A N/A N/A f set_result result N/A N/A N/A N/A self get_tree user repo ref ref callback cb kwargs N/A f N/A N/A