Module Import alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias FunctionDef arguments args NameParam NameParam NameParam defaults TupleLoad NameLoad NameLoad body Expr Str Return AttributeLoad Call NameLoad NameLoad NameLoad NameLoad attr decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str If Call AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr NameLoad orelse If Call AttributeLoad NameLoad attr NameLoad body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad orelse Raise Call NameLoad Call AttributeLoad Str attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str TryExcept body Return AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body If Call NameLoad NameLoad NameLoad body Assign NameStore TupleLoad NameLoad If Call NameLoad NameLoad NameLoad body Assign NameStore TupleLoad NameLoad If Call NameLoad NameLoad NameLoad body Assign NameStore TupleLoad NameLoad Assign AttributeStore NameLoad attr IfExp NameLoad Call NameLoad ListComp Call AttributeLoad NameLoad attr comprehension NameStore NameLoad NameLoad Assign AttributeStore NameLoad attr IfExp NameLoad Call NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr IfExp NameLoad Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Return BoolOpAnd BoolOpOr CompareIs AttributeLoad NameLoad attr NameLoad CompareLtE AttributeLoad NameLoad attr NameLoad BoolOpOr CompareIs AttributeLoad NameLoad attr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad BoolOpOr CompareIs AttributeLoad NameLoad attr NameLoad CompareIn NameLoad AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad BoolOpOr AttributeLoad NameLoad attr ListLoad Assign NameStore Call NameLoad NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body For NameStore AttributeLoad NameLoad attr body Assign SubscriptStore SubscriptLoad NameLoad Index NameLoad Index NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad orelse For NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Continue Assign AttributeStore NameLoad attr Call NameLoad Call NameLoad Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad NameLoad Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list decorator_list ClassDef bases Call NameLoad NameLoad NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad GeneratorExp NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad NameLoad attr CompareIsNot NameLoad NameLoad For TupleStore NameStore NameStore Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr body If Call AttributeLoad NameLoad attr NameLoad NameLoad body Return Call NameLoad NameLoad NameLoad orelse Return NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Raise Call NameLoad keyword Call AttributeLoad Str attr AttributeLoad NameLoad attr Call AttributeLoad Str attr Call AttributeLoad NameLoad attr Return Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults vararg kwarg body Expr Str Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Return NameLoad decorator_list NameLoad decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Dict Str Str Str Str Str Str TupleLoad NameLoad Str TupleLoad NameLoad Str TupleLoad NameLoad Str TupleLoad NameLoad Str TupleLoad NameLoad Str TupleLoad NameLoad Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad Str TupleLoad Assign NameStore Call NameLoad NameLoad If NameLoad body For TupleStore NameStore TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call NameLoad NameLoad NameLoad NameLoad If Call NameLoad NameLoad body Assign NameStore Call Call NameLoad NameLoad keyword IfExp NameLoad NameLoad NameLoad keyword IfExp NameLoad NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list decorator_list ClassDef bases Call NameLoad NameLoad NameLoad body Expr Str Assign NameStore TupleLoad decorator_list Assign NameStore TupleLoad Str Str Str
N/A N/A inspect collections defaultdict flask.views View with_metaclass flask request werkzeug.exceptions MethodNotAllowed methodview N/A N/A methods ifnset ifset N/A N/A None None N/A N/A  Decorator to mark a method as a view.

    NOTE: This should be a top-level decorator!

    :param methods: List of HTTP verbs it works with
    :type methods: str|Iterable[str]
    :param ifnset: Conditional matching: only if the route param is not set (or is None)
    :type  ifnset: str|Iterable[str]|None
    :param ifset:  Conditional matching: only if the route param is     set (and is not None)
    :type  ifset:  str|Iterable[str]|None
     N/A N/A N/A _MethodViewInfo methods ifnset ifset decorator N/A _MethodViewInfo N/A object N/A N/A  Method view info object  decorator N/A N/A self func N/A N/A N/A  Wrapper function to decorate a function  N/A N/A N/A inspect isfunction func N/A N/A N/A func _methodview self N/A N/A N/A N/A inspect ismethod func N/A N/A N/A N/A func __func__ _methodview self N/A N/A N/A AssertionError N/A N/A Can only decorate function and methods, {} given format func N/A func N/A get_info N/A N/A cls func N/A N/A N/A  :rtype: _MethodViewInfo|None  N/A N/A N/A N/A func _methodview N/A N/A N/A AttributeError N/A N/A None N/A classmethod __init__ N/A N/A self methods ifnset ifset N/A None None None N/A N/A N/A isinstance methods basestring N/A N/A methods N/A methods N/A N/A isinstance ifnset basestring N/A N/A ifnset N/A ifnset N/A N/A isinstance ifset basestring N/A N/A ifset N/A ifset N/A N/A self methods N/A methods N/A frozenset N/A N/A N/A m upper N/A m methods None N/A N/A self ifnset N/A ifnset N/A frozenset ifnset None N/A N/A self ifset N/A ifset N/A frozenset ifset None N/A matches N/A N/A self verb params N/A N/A N/A  Test if the method matches the provided set of arguments

        :param verb: HTTP verb. Uppercase
        :type verb: str
        :param params: Existing route parameters
        :type params: set
        :returns: Whether this view matches
        :rtype: bool
         N/A N/A N/A N/A N/A self ifset None N/A N/A self ifset params N/A N/A N/A self ifnset None N/A N/A N/A self ifnset isdisjoint params N/A N/A N/A self methods None N/A verb N/A self methods N/A N/A MethodViewType N/A type N/A N/A  Metaclass that collects methods decorated with @methodview  __init__ N/A N/A cls name bases d N/A N/A N/A methods N/A set N/A N/A cls methods N/A N/A methods_map N/A defaultdict dict N/A N/A view_name func N/A N/A inspect getmembers cls N/A N/A info N/A N/A _MethodViewInfo get_info func N/A N/A info None N/A N/A method N/A info methods N/A N/A N/A N/A methods_map N/A method N/A view_name info N/A N/A N/A methods add method N/A N/A _ N/A N/A methods_map values N/A N/A N/A N/A methods_map pop view_name None N/A N/A N/A cls methods N/A tuple N/A sorted N/A N/A methods_map keys N/A N/A cls methods_map N/A dict methods_map N/A N/A N/A N/A super MethodViewType cls __init__ name bases d N/A N/A MethodView N/A N/A with_metaclass MethodViewType View N/A N/A  Class-based view that dispatches requests to methods decorated with @methodview  _match_view N/A N/A self method route_params N/A N/A N/A  Detect a view matching the query

        :param method: HTTP method
        :param route_params: Route parameters dict
        :return: Method
        :rtype: Callable|None
         N/A method N/A N/A method upper N/A route_params N/A frozenset N/A k N/A N/A k v N/A N/A route_params items N/A v None N/A N/A view_name info N/A N/A N/A N/A self methods_map N/A method items N/A N/A N/A N/A info matches method route_params N/A N/A N/A getattr self view_name N/A N/A None N/A dispatch_request N/A N/A self N/A args kwargs N/A N/A view N/A N/A self _match_view N/A request method kwargs N/A N/A view None N/A N/A N/A MethodNotAllowed description N/A N/A No view implemented for {}({}) format N/A request method N/A N/A ,  join N/A N/A kwargs keys N/A N/A view args kwargs N/A route_as_view N/A N/A cls app name rules N/A class_args class_kwargs N/A N/A  Register the view with an URL route
        :param app: Flask application
        :type app: flask.Flask|flask.Blueprint
        :param name: Unique view name
        :type name: str
        :param rules: List of route rules to use
        :type rules: Iterable[str|werkzeug.routing.Rule]
        :param class_args: Args to pass to object constructor
        :param class_kwargs: KwArgs to pass to object constructor
        :return: View callable
        :rtype: Callable
         N/A view N/A N/A N/A super MethodView cls as_view name class_args class_kwargs N/A rule rules N/A N/A N/A N/A app add_url_rule rule view_func view N/A view N/A classmethod N/A RestfulViewType N/A MethodViewType N/A N/A  Metaclass that automatically defines REST methods  N/A methods_map N/A list create get replace update delete N/A False GET N/A False POST N/A True GET N/A True PUT N/A True POST N/A True DELETE __init__ N/A N/A cls name bases d N/A N/A N/A pk N/A getattr cls primary_key N/A N/A mcs N/A type cls N/A pk N/A N/A N/A view_name N/A needs_pk method N/A N/A N/A mcs methods_map items N/A N/A view N/A getattr cls view_name None N/A N/A callable view N/A N/A view N/A N/A methodview method ifnset N/A needs_pk None pk ifset N/A needs_pk pk None view N/A N/A setattr cls view_name view N/A N/A N/A N/A super RestfulViewType cls __init__ name bases d N/A N/A RestfulView N/A N/A with_metaclass RestfulViewType MethodView N/A N/A  Method View that automatically defines the following methods:

        Collection:
            GET /    -> list()
            POST /   -> create()
        Individual item:
            GET /<pk>     -> get()
            PUT /<pk>     -> replace()
            POST /<pk>    -> update()
            DELETE /<pk>  -> delete()

        You just need to specify PK fields
     N/A primary_key N/A N/A N/A __all__ N/A methodview MethodView RestfulView