Module Import alias ImportFrom alias Import alias FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Dict If NameLoad body Assign SubscriptStore NameLoad Index NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Dict Index NameLoad If Call NameLoad NameLoad NameLoad body Assign TupleStore NameStore NameStore NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore NameLoad For NameStore Call AttributeLoad NameLoad attr Str body Assign NameStore Call NameLoad NameLoad NameLoad Return NameLoad Return NameLoad decorator_list ClassDef bases NameLoad body Pass decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Dict decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad If Call NameLoad NameLoad body TryExcept body Return Call NameLoad handlers ExceptHandler type NameLoad name NameStore body Raise Call NameLoad Call AttributeLoad Str attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad decorator_list FunctionDef arguments args NameParam defaults body For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Return SubscriptLoad NameLoad Index NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign AttributeStore NameLoad attr Call NameLoad Assign NameStore TupleLoad BinOpAdd NameLoad Str Str Assign AttributeStore NameLoad attr ListLoad TupleLoad Str NameLoad TupleLoad NameLoad NameLoad NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot Call NameLoad NameLoad Str body Assign AttributeStore NameLoad attr Dict Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str For NameStore AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr BoolOpOr NameLoad AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assign NameStore BinOpAdd SubscriptLoad NameLoad Index Num Call AttributeLoad NameLoad attr Str Str SubscriptLoad NameLoad Slice Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad BoolOpOr NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad decorator_list Return NameLoad decorator_list decorator_list
N/A N/A collections importlib import_module N/A re register_renderer N/A N/A app id renderer force N/A True N/A N/A Registers a renderer on the application.

    :param app: The :class:`~flask.Flask` application to register the renderer
                on
    :param id: Internal id-string for the renderer
    :param renderer: Renderer to register
    :param force: Whether or not to overwrite the renderer if a different one
                  is already registered for ``id``
     N/A renderers N/A N/A N/A app extensions setdefault nav_renderers N/A N/A force N/A N/A N/A renderers N/A id renderer N/A N/A N/A N/A renderers setdefault id renderer N/A get_renderer N/A N/A app id N/A N/A N/A Retrieve a renderer.

    :param app: :class:`~flask.Flask` application to look ``id`` up on
    :param id: Internal renderer id-string to look up
     N/A renderer N/A N/A N/A N/A app extensions get nav_renderers N/A N/A id N/A N/A isinstance renderer tuple N/A N/A N/A mod_name cls_name renderer N/A mod N/A import_module mod_name N/A cls mod N/A name N/A N/A cls_name split . N/A N/A cls N/A getattr cls name N/A cls N/A renderer N/A NavbarRenderingError N/A Exception N/A N/A N/A ElementRegistry N/A N/A collections MutableMapping N/A __init__ N/A N/A self N/A N/A N/A N/A self _elems N/A N/A __getitem__ N/A N/A self key N/A N/A N/A item N/A N/A self _elems N/A key N/A N/A callable item N/A N/A N/A N/A N/A item N/A N/A N/A Exception N/A e N/A N/A N/A NavbarRenderingError N/A N/A Encountered {!r} while trying to render navbar format e N/A item N/A __setitem__ N/A N/A self key value N/A N/A N/A N/A N/A self _elems N/A key value N/A __delitem__ N/A N/A self key N/A N/A N/A N/A N/A self _elems N/A key N/A __iter__ N/A N/A self N/A N/A N/A key N/A N/A N/A self _elems keys N/A N/A N/A self N/A key N/A __len__ N/A N/A self N/A N/A N/A N/A len N/A self _elems N/A N/A Nav N/A object N/A N/A The Flask-Nav extension.

    :param app: An optional :class:`~flask.Flask` app to initialize.
     __init__ N/A N/A self app N/A None N/A N/A N/A self elems N/A ElementRegistry N/A simple N/A N/A __name__ .renderers SimpleRenderer N/A N/A self _renderers N/A N/A simple simple N/A None simple False N/A app N/A N/A N/A N/A self init_app app N/A init_app N/A N/A self app N/A N/A N/A Initialize an application.

        :param app: A :class:`~flask.Flask` app.
         N/A N/A N/A hasattr app extensions N/A N/A N/A app extensions N/A N/A N/A N/A app extensions N/A nav self N/A N/A N/A app add_template_global N/A self elems nav N/A args N/A self _renderers N/A N/A N/A register_renderer app args N/A navigation N/A N/A self id N/A None N/A N/A Function decorator for navbar registration.

        Convenience function, calls :meth:`.register_element` with ``id`` and
        the decorated function as ``elem``.

        :param id: ID to pass on. If ``None``, uses the decorated functions
                   name.
         wrapper N/A N/A f N/A N/A N/A N/A N/A self register_element N/A id N/A f __name__ f N/A f N/A N/A wrapper N/A register_element N/A N/A self id elem N/A N/A N/A Register navigational element.

        Registers the given navigational element, making it available using the
        id ``id``.

        This means that inside any template, the registered element will be
        available as ``nav.`` *id*.

        If ``elem`` is callable, any attempt to retrieve it inside the template
        will instead result in ``elem`` being called and the result being
        returned.

        :param id: Id to register element with
        :param elem: Element to register
         N/A N/A N/A self elems N/A id elem N/A renderer N/A N/A self id force N/A None True N/A N/A Class decorator for Renderers.

        The decorated class will be added to the list of renderers kept by this
        instance that will be registered on the app upon app initialization.

        :param id: Id for the renderer, defaults to the class name in snake
                   case.
        :param force: Whether or not to overwrite existing renderers.
         _ N/A N/A cls N/A N/A N/A name N/A cls __name__ N/A sn N/A N/A name N/A 0 N/A N/A re sub ([A-Z]) _\1 N/A name N/A 1 N/A N/A N/A N/A self _renderers append N/A N/A id N/A N/A sn lower cls force N/A cls N/A N/A _ N/A N/A