Module Import alias Import alias ImportFrom alias Import alias ImportFrom alias ImportFrom alias alias Assign NameStore ListLoad Str Str Str Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Assign NameStore BoolOpOr NameLoad Call NameLoad If CompareNotIn Call NameLoad NameLoad Call AttributeLoad Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr attr body TryExcept body If CompareIn NameLoad NameLoad body Return Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Return For NameStore Call NameLoad NameLoad Str ListLoad body Expr Call AttributeLoad NameLoad attr NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad body If CompareEq NameLoad Str body Continue If BoolOpAnd Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str body Continue If Call NameLoad NameLoad body For NameStore NameLoad body Expr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Call NameLoad attr NameLoad orelse If Call NameLoad NameLoad Str body If BoolOpAnd Call NameLoad NameLoad AttributeLoad NameLoad attr Call NameLoad Call NameLoad Lambda arguments args NameParam defaults CompareIn AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Slice Num body Continue Expr Call NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Str ListLoad For NameStore NameLoad body For NameStore Call NameLoad NameLoad Str ListLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad decorator_list decorator_list Assign NameStore Call NameLoad Str TupleLoad NameLoad Dict Str Str ClassDef bases NameLoad body Expr Str Assign NameStore Num FunctionDef arguments args NameParam NameParam defaults body Expr Str Return decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Return decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Str NameLoad If NameLoad body Assign NameStore Call AttributeLoad Call NameLoad NameLoad attr Str NameLoad orelse Assign NameStore NameLoad If BoolOpOr CompareNotIn AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Str Str NameLoad body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad If Call AttributeLoad NameLoad attr NameLoad body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr orelse Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body If BoolOpAnd Call AttributeLoad NameLoad attr NameLoad UnaryOpNot Call NameLoad AttributeLoad NameLoad attr Str NameLoad body Expr Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore CompareNotIn AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Str Str If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad Call NameLoad AttributeLoad NameLoad attr attr Str NameLoad If BoolOpAnd CompareIs Call NameLoad NameLoad NameLoad CompareIs NameLoad NameLoad body Return Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If Call NameLoad AttributeLoad NameLoad attr Str NameLoad body Assign NameStore NameLoad If AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Str Expr Call AttributeLoad NameLoad attr orelse Assign NameStore Str Expr Call AttributeLoad NameLoad attr If NameLoad body Assign NameStore Call NameLoad NameLoad Str NameLoad If CompareIsNot NameLoad NameLoad body Assign NameStore Call AttributeLoad Call NameLoad NameLoad attr NameLoad ListLoad For NameStore NameLoad body Expr Call NameLoad Expr Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore ListLoad Str Str Str Str Str Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad AttributeLoad NameLoad attr NameLoad NameLoad body If UnaryOpNot NameLoad body Assign AttributeStore NameLoad attr Dict Str AttributeLoad NameLoad attr orelse If CompareEq AttributeLoad AttributeLoad NameLoad attr attr Str body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr orelse Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad 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 ListLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Dict Str Str Str Str Str Str Lambda arguments args NameParam NameParam defaults Call AttributeLoad NameLoad attr NameLoad Lambda arguments args NameParam NameParam defaults AttributeLoad AttributeLoad NameLoad attr attr Lambda arguments args NameParam NameParam defaults AttributeLoad AttributeLoad NameLoad attr attr Lambda arguments args NameParam NameParam defaults ListComp TupleLoad Call AttributeLoad SubscriptLoad NameLoad Index Num attr Str Call AttributeLoad SubscriptLoad NameLoad Index Num attr Str comprehension NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Lambda arguments args NameParam NameParam defaults AttributeLoad AttributeLoad NameLoad attr attr Lambda arguments args NameParam NameParam defaults Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore ListComp NameLoad comprehension NameStore AttributeLoad NameLoad attr BoolOpOr CompareIn NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad Assign NameStore ListLoad Assign NameStore ListComp NameLoad comprehension NameStore AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad If NameLoad body Return For NameStore NameLoad body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad orelse Assign NameStore Call NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str If AttributeLoad NameLoad attr body For NameStore NameLoad body Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Num Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Num Assign NameStore BinOpMod Str NameLoad Assign SubscriptStore AttributeLoad AttributeLoad NameLoad attr attr Index NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore SubscriptLoad Call AttributeLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str attr Str Slice Num Return SubscriptLoad Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr Index Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore ListComp Call AttributeLoad SubscriptLoad Call AttributeLoad Call NameLoad NameLoad attr Index Num attr Str comprehension NameStore NameLoad Return ListComp SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num comprehension NameStore NameLoad CompareIn Str NameLoad decorator_list decorator_list
N/A N/A types N/A sys inspect getmembers N/A six webob.exc HTTPFound util iscontroller _cfg N/A __all__ N/A PecanHook TransactionHook HookController RequestViewerHook walk_controller N/A N/A root_class controller hooks seen N/A None N/A N/A seen N/A seen N/A set N/A N/A N/A type controller N/A N/A N/A vars N/A N/A six moves builtins values N/A N/A N/A N/A N/A controller seen N/A N/A N/A N/A N/A seen add controller N/A N/A N/A TypeError N/A N/A N/A hook N/A getattr controller __hooks__ N/A N/A N/A N/A N/A hooks add hook N/A N/A name value N/A getmembers controller N/A N/A N/A name controller N/A N/A N/A N/A N/A N/A name startswith __ N/A N/A name endswith __ N/A N/A N/A N/A iscontroller value N/A N/A hook hooks N/A N/A N/A N/A N/A N/A N/A value _pecan setdefault hooks N/A set add hook N/A N/A N/A hasattr value __class__ N/A N/A N/A N/A isinstance value N/A types MethodType N/A any N/A filter N/A N/A N/A c N/A N/A N/A value __func__ N/A N/A N/A c __dict__ values N/A N/A N/A N/A N/A value __self__ __class__ mro N/A 1 N/A N/A N/A N/A walk_controller root_class value hooks seen N/A HookControllerMeta N/A type N/A N/A 
    A base class for controllers that would like to specify hooks on
    their controller methods. Simply create a list of hook objects
    called ``__hooks__`` as a member of the controller's namespace.
     __init__ N/A N/A cls name bases dict_ N/A N/A N/A hooks N/A set N/A N/A dict_ get __hooks__ N/A N/A base bases N/A N/A hook N/A getattr base __hooks__ N/A N/A N/A N/A N/A hooks add hook N/A N/A walk_controller cls cls hooks N/A N/A N/A HookController N/A HookControllerMeta HookController N/A object N/A __doc__ A base class for controllers that would like to specify hooks on their controller methods. Simply create a list of hook objects called ``__hooks__`` as a class attribute of your controller. PecanHook N/A object N/A N/A 
    A base class for Pecan hooks. Inherit from this class to create your
    own hooks. Set a priority on a hook by setting the ``priority``
    attribute for the hook, which defaults to 100.
     N/A priority 100 on_route N/A N/A self state N/A N/A N/A 
        Override this method to create a hook that gets called upon
        the start of routing.

        :param state: The Pecan ``state`` object for the current request.
         N/A N/A before N/A N/A self state N/A N/A N/A 
        Override this method to create a hook that gets called after
        routing, but before the request gets passed to your controller.

        :param state: The Pecan ``state`` object for the current request.
         N/A N/A after N/A N/A self state N/A N/A N/A 
        Override this method to create a hook that gets called after
        the request has been handled by the controller.

        :param state: The Pecan ``state`` object for the current request.
         N/A N/A on_error N/A N/A self state e N/A N/A N/A 
        Override this method to create a hook that gets called upon
        an exception being raised in your controller.

        :param state: The Pecan ``state`` object for the current request.
        :param e: The ``Exception`` object that was raised.
         N/A N/A N/A TransactionHook N/A PecanHook N/A N/A 
    :param start: A callable that will bind to a writable database and
                  start a transaction.
    :param start_ro: A callable that will bind to a readable database.
    :param commit: A callable that will commit the active transaction.
    :param rollback: A callable that will roll back the active
                     transaction.
    :param clear: A callable that will clear your current context.

    A basic framework hook for supporting wrapping requests in
    transactions. By default, it will wrap all but ``GET`` and ``HEAD``
    requests in a transaction. Override the ``is_transactional`` method
    to define your own rules for what requests should be transactional.
     __init__ N/A N/A self start start_ro commit rollback clear N/A N/A N/A N/A self start start N/A N/A self start_ro start_ro N/A N/A self commit commit N/A N/A self rollback rollback N/A N/A self clear clear N/A is_transactional N/A N/A self state N/A N/A N/A 
        Decide if a request should be wrapped in a transaction, based
        upon the state of the request. By default, wraps all but ``GET``
        and ``HEAD`` requests in a transaction, along with respecting
        the ``transactional`` decorator from :mod:pecan.decorators.

        :param state: The Pecan state object for the current request.
         N/A controller N/A getattr state controller None N/A controller N/A N/A force_transactional N/A N/A N/A _cfg controller get transactional False N/A N/A force_transactional False N/A N/A N/A N/A N/A state request method N/A GET HEAD force_transactional N/A N/A True N/A False N/A on_route N/A N/A self state N/A N/A N/A N/A N/A state request error False N/A N/A N/A self is_transactional state N/A N/A N/A N/A state request transactional True N/A N/A N/A self start N/A N/A N/A N/A state request transactional False N/A N/A N/A self start_ro N/A before N/A N/A self state N/A N/A N/A N/A N/A N/A self is_transactional state N/A N/A getattr N/A state request transactional False N/A N/A N/A N/A self clear N/A N/A N/A state request transactional True N/A N/A N/A self start N/A on_error N/A N/A self state e N/A N/A N/A trans_ignore_redirects N/A N/A N/A state request method N/A GET HEAD N/A N/A N/A state controller None N/A N/A trans_ignore_redirects N/A N/A N/A _cfg N/A state controller get transactional_ignore_redirects trans_ignore_redirects N/A N/A N/A N/A type e HTTPFound N/A trans_ignore_redirects True N/A N/A N/A N/A N/A state request error True N/A after N/A N/A self state N/A N/A N/A N/A getattr N/A state request transactional False N/A N/A action_name None N/A N/A N/A state request error N/A N/A action_name after_rollback N/A N/A N/A self rollback N/A N/A action_name after_commit N/A N/A N/A self commit N/A action_name N/A N/A controller N/A getattr state controller None N/A N/A controller None N/A N/A actions N/A N/A N/A _cfg controller get action_name N/A N/A action actions N/A N/A N/A action N/A N/A N/A self clear N/A N/A RequestViewerHook N/A PecanHook N/A N/A 
    :param config:   A (optional) dictionary that can hold ``items`` and/or
                     ``blacklist`` keys.
    :param writer:   The stream writer to use. Can redirect output to other
                     streams as long as the passed in stream has a
                     ``write`` callable method.
    :param terminal: Outputs to the chosen stream writer (usually
                     the terminal)
    :param headers:  Sets values to the X-HTTP headers

    Returns some information about what is going on in a single request.  It
    accepts specific items to report on but uses a default list of items when
    none are passed in.  Based on the requested ``url``, items can also be
    blacklisted.
    Configuration is flexible, can be passed in (or not) and can contain
    some or all the keys supported.

    **items**

    This key holds the items that this hook will display. When this key is
    passed only the items in the list will be used.  Valid items are *any*
    item that the ``request`` object holds, by default it uses the
    following:

    * path
    * status
    * method
    * controller
    * params
    * hooks

    .. note::
        This key should always use a ``list`` of items to use.

    **blacklist**

    This key holds items that will be blacklisted based on ``url``. If
    there is a need to omit urls that start with `/javascript`, then this
    key would look like::

        'blacklist': ['/javascript']

    As many blacklisting items as needed can be contained in the list. The hook
    will verify that the url is not starting with items in this list to display
    results, otherwise it will get omitted.

    .. note::
        This key should always use a ``list`` of items to use.

    For more detailed documentation about this hook, please see
    :ref:`requestviewerhook`
     N/A available N/A path status method controller params hooks __init__ N/A N/A self config writer terminal headers N/A None N/A sys stdout True True N/A N/A N/A config N/A N/A N/A self config N/A items N/A self available N/A N/A N/A N/A N/A config __class__ __name__ Config N/A N/A N/A self config N/A N/A config to_dict N/A N/A N/A self config config N/A N/A self writer writer N/A N/A self items N/A N/A N/A self config get items N/A self available N/A N/A self blacklist N/A N/A N/A self config get blacklist N/A N/A N/A self terminal terminal N/A N/A self headers headers N/A after N/A N/A self state N/A N/A N/A responses N/A controller method path params status hooks N/A N/A N/A self state N/A N/A N/A self get_controller state N/A N/A N/A self state N/A N/A N/A state request method N/A N/A N/A self state N/A N/A N/A state request path N/A N/A N/A self state N/A N/A N/A N/A N/A N/A p N/A 0 encode utf-8 N/A N/A N/A p N/A 1 encode utf-8 N/A p N/A N/A N/A N/A state request params items N/A N/A N/A self state N/A N/A N/A state response status N/A N/A N/A self state N/A N/A N/A self format_hooks N/A N/A state app hooks N/A is_available N/A i N/A i N/A self items N/A N/A i N/A self available N/A hasattr N/A state request i N/A terminal N/A N/A headers N/A N/A will_skip N/A i N/A i N/A self blacklist N/A N/A N/A N/A state request path startswith i N/A will_skip N/A N/A N/A request_info is_available N/A N/A N/A N/A value N/A N/A responses get request_info N/A N/A value N/A N/A value N/A getattr N/A state request request_info N/A N/A value N/A value self state N/A N/A N/A Exception N/A e N/A N/A value e N/A N/A N/A terminal append N/A %-12s - %s
 N/A request_info value N/A N/A N/A headers append N/A request_info value N/A N/A self terminal N/A N/A N/A N/A N/A self writer write N/A N/A join terminal N/A N/A N/A N/A self writer write N/A N/A self headers N/A N/A h headers N/A N/A key N/A str N/A h N/A 0 N/A value N/A str N/A h N/A 1 N/A name N/A X-Pecan-%s key N/A N/A N/A N/A state response headers N/A name value N/A get_controller N/A N/A self state N/A N/A N/A 
        Retrieves the actual controller name from the application
        Specific to Pecan (not available in the request object)
         N/A path N/A N/A N/A N/A N/A N/A state request pecan N/A routing_path split / N/A 1 N/A N/A N/A N/A N/A N/A N/A state controller __str__ split N/A 2 N/A format_hooks N/A N/A self hooks N/A N/A N/A 
        Tries to format the hook objects to be more readable
        Specific to Pecan (not available in the request object)
         N/A str_hooks N/A N/A N/A N/A N/A N/A N/A str i split N/A 0 strip < N/A i hooks N/A N/A N/A N/A N/A i split . N/A -1 N/A i str_hooks N/A . i N/A N/A