Module Expr Str Import alias TryExcept body ImportFrom alias alias handlers ExceptHandler type NameLoad body ImportFrom alias ImportFrom alias ImportFrom alias Import alias ImportFrom alias alias alias Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body TryExcept body Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Index Str handlers ExceptHandler type NameLoad body Assign NameStore NameLoad Return BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return SubscriptLoad AttributeLoad NameLoad attr Index Num decorator_list NameLoad decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str Assign NameStore Str FunctionDef arguments args NameParam NameParam defaults NameLoad body If CompareIsNot NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Raise NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Expr Call AttributeLoad NameLoad attr Str Assign NameStore Dict Str AttributeLoad NameLoad attr If NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad If NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad Assign NameStore BinOpAdd BinOpAdd AttributeLoad NameLoad attr Str Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str FunctionDef arguments args defaults vararg kwarg body If CompareIn Str AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr orelse Assign NameStore Call AttributeLoad NameLoad attr Return Call NameLoad BinOpAdd TupleLoad NameLoad NameLoad NameLoad decorator_list Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str Assign NameStore Dict Str Str Str Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore BinOpAdd AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If CompareEq Call NameLoad NameLoad Num body Assign SubscriptStore NameLoad Index NameLoad SubscriptLoad NameLoad Index Num Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad If CompareIsNot NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad kwarg body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore Dict If CompareNotIn Str NameLoad body Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Assign NameStore BinOpAdd AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad keyword NameLoad keyword NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults kwarg body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr If UnaryOpNot Call AttributeLoad NameLoad attr Str body Raise Call NameLoad NameLoad If Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr Str body Return Call AttributeLoad NameLoad attr orelse Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Str Return Call AttributeLoad NameLoad attr Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults kwarg body Expr Str Assign NameStore Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr Str NameLoad keyword NameLoad keyword NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body Return Call AttributeLoad NameLoad attr Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body Return Call AttributeLoad NameLoad attr Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body Return Call AttributeLoad NameLoad attr Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body Return Call AttributeLoad NameLoad attr Str NameLoad NameLoad decorator_list decorator_list
N/A N/A 
    GitHub-Flask
    ============

    Authenticate users in your Flask app with GitHub.

 N/A logging N/A N/A urllib.parse urlencode parse_qs N/A N/A N/A ImportError N/A urllib urlencode urlparse parse_qs functools wraps N/A requests flask redirect request json N/A __version__ 2.0.0 N/A _logger N/A N/A logging getLogger __name__ N/A null_handler N/A N/A logging NullHandler N/A N/A N/A _logger addHandler null_handler GitHubError N/A Exception N/A N/A Raised if a request fails to the GitHub API. __str__ N/A N/A self N/A N/A N/A N/A N/A message N/A N/A N/A N/A self response json N/A message N/A N/A N/A Exception N/A N/A message None N/A N/A %s: %s N/A N/A N/A self response status_code message N/A response N/A N/A self N/A N/A N/A The :class:`~requests.Response` object for the request. N/A N/A N/A self args N/A 0 N/A property N/A GitHub N/A object N/A N/A 
    Provides decorators for authenticating users with GitHub within a Flask
    application. Helper methods are also provided interacting with GitHub API.

     N/A BASE_URL https://api.github.com/ N/A BASE_AUTH_URL https://github.com/login/oauth/ __init__ N/A N/A self app N/A None N/A N/A N/A app None N/A N/A N/A self app app N/A N/A N/A self init_app N/A self app N/A N/A N/A self app None N/A init_app N/A N/A self app N/A N/A N/A N/A self client_id N/A N/A app config N/A GITHUB_CLIENT_ID N/A N/A self client_secret N/A N/A app config N/A GITHUB_CLIENT_SECRET N/A N/A self base_url N/A N/A N/A app config get GITHUB_BASE_URL N/A self BASE_URL N/A N/A self auth_url N/A N/A N/A app config get GITHUB_AUTH_URL N/A self BASE_AUTH_URL N/A N/A self session N/A N/A requests session N/A access_token_getter N/A N/A self f N/A N/A N/A 
        Registers a function as the access_token getter. Must return the
        access_token used to make requests to GitHub on the user's behalf.

         N/A N/A self get_access_token f N/A f N/A get_access_token N/A N/A self N/A N/A N/A NotImplementedError N/A authorize N/A N/A self scope redirect_uri N/A None None N/A N/A 
        Redirect to GitHub and request access to a user's data.

         N/A N/A N/A _logger debug Called authorize() N/A params N/A client_id N/A self client_id N/A scope N/A N/A N/A params N/A scope scope N/A redirect_uri N/A N/A N/A params N/A redirect_uri redirect_uri N/A url N/A N/A N/A self auth_url authorize? N/A urlencode params N/A N/A N/A _logger debug Redirecting to %s url N/A N/A redirect url N/A authorized_handler N/A N/A self f N/A N/A N/A 
        Decorator for the route that is used as the callback for authorizing
        with GitHub. This callback URL can be set in the settings for the app
        or passed in during authorization.

         decorated N/A N/A N/A args kwargs N/A N/A N/A code N/A request args N/A N/A data N/A N/A self _handle_response N/A N/A data N/A N/A self _handle_invalid_response N/A N/A f N/A N/A data args kwargs N/A N/A wraps f N/A decorated N/A _handle_response N/A N/A self N/A N/A N/A 
        Handles response after the redirect to GitHub. This response
        determines if the user has allowed the this application access. If we
        were then we send a POST request for the access_key used to
        authenticate requests to GitHub.

         N/A N/A N/A _logger debug Handling response from GitHub N/A params N/A code client_id client_secret N/A N/A N/A request args get code N/A self client_id N/A self client_secret N/A url N/A N/A self auth_url access_token N/A N/A N/A _logger debug POSTing to %s url N/A N/A N/A _logger debug params N/A response N/A N/A N/A self session post url data params N/A data N/A parse_qs N/A response content N/A N/A N/A _logger debug response.content = %s data N/A N/A k v N/A N/A data items N/A N/A N/A N/A len v 1 N/A N/A N/A data N/A k N/A v N/A 0 N/A token N/A N/A data get access_token None N/A N/A token None N/A N/A token N/A N/A token decode ascii N/A token N/A _handle_invalid_response N/A N/A self N/A N/A N/A N/A raw_request N/A N/A self method resource params N/A None kwargs N/A N/A 
        Makes a HTTP request and returns the raw
        :class:`~requests.Response` object.

         N/A N/A params None N/A N/A params N/A N/A N/A access_token params N/A N/A N/A params N/A access_token N/A N/A self get_access_token N/A url N/A N/A self base_url resource N/A N/A N/A N/A self session request method url params params allow_redirects True kwargs N/A request N/A N/A self method resource N/A kwargs N/A N/A 
        Makes a request to the given endpoint.
        Keyword arguments are passed to the :meth:`~requests.request` method.
        If the content type of the response is JSON, it will be decoded
        automatically and a dictionary will be returned.
        Otherwise the :class:`~requests.Response` object is returned.

         N/A response N/A N/A self raw_request method resource kwargs N/A status_code N/A str N/A response status_code N/A N/A N/A N/A status_code startswith 2 N/A N/A N/A GitHubError response N/A N/A N/A N/A N/A response headers N/A Content-Type startswith application/json N/A N/A N/A N/A response json N/A N/A response N/A get N/A N/A self resource N/A kwargs N/A N/A Shortcut for ``request('GET', resource)``. N/A N/A N/A self request GET resource kwargs N/A post N/A N/A self resource data N/A kwargs N/A N/A Shortcut for ``request('POST', resource)``.
        Use this to make POST request since it will also encode ``data`` to
        'application/x-www-form-urlencoded' format. N/A headers N/A Content-Type application/x-www-form-urlencoded N/A data N/A N/A json dumps data N/A N/A N/A self request POST resource headers headers data data kwargs N/A head N/A N/A self resource N/A kwargs N/A N/A N/A N/A self request HEAD resource kwargs N/A patch N/A N/A self resource N/A kwargs N/A N/A N/A N/A self request PATCH resource kwargs N/A put N/A N/A self resource N/A kwargs N/A N/A N/A N/A self request PUT resource kwargs N/A delete N/A N/A self resource N/A kwargs N/A N/A N/A N/A self request DELETE resource kwargs N/A N/A