Module ImportFrom alias alias alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Expr Str Assign NameStore Dict Str Str ListLoad Str Str ListLoad Str Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Str Num Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str BinOpMult Num Num Assign SubscriptStore AttributeLoad NameLoad attr Index Str Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot CompareIn Str AttributeLoad NameLoad attr body Return Assign AttributeStore NameLoad attr Dict Str Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr If UnaryOpNot AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad NameLoad attr Index Str If AttributeLoad NameLoad attr body Assign SubscriptStore AttributeLoad NameLoad attr Index Str AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot CompareEq AttributeLoad NameLoad attr Str body Assign NameStore Str AugAssignAdd NameStore Str Return Dict Str Str Num NameLoad For NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str body If UnaryOpNot CompareIn NameLoad AttributeLoad NameLoad attr body Assign NameStore Str AugAssignAdd NameStore Str Return Dict Str Str Num NameLoad If CompareNotEq SubscriptLoad AttributeLoad NameLoad attr Index Str Str body Assign NameStore Str Return Dict Str Str Num NameLoad Return Dict decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr If CompareNotIn AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore Str Return Dict Str Str Num BinOpMod NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str If UnaryOpNot AttributeLoad NameLoad attr body Assign NameStore Str Return Dict Str Str Num NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Raise Call NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore ListLoad Str Str Str Str FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num If Call NameLoad NameLoad NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad orelse If NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad decorator_list decorator_list
N/A flask request make_response jsonify flask.views MethodView views echo JSONRPCView N/A MethodView N/A N/A 
    This class provides one way of handling JSON-RPC via Flask.
    We allow for the client to use OPTIONS to pre-flight the POST request.

    Note::

    This class is experimental and tries to follow the JSON-RPC 2.0
    almost standard (it supposedly isn't a standard yet).

    Errors

    code              message           meaning
    -32700            Parse error       Invalid JSON was received by the server.
    An error occurred on the server while parsing the JSON text.
    -32600            Invalid Request   The JSON sent is not a valid Request object.
    -32601            Method not found  The method does not exist / is not available.
    -32602            Invalid params    Invalid method parameter(s).
    -32603            Internal error    Internal JSON-RPC error.
    -32099 to -32000  Server error      Reserved for implementation-defined server-errors.
     N/A request_fields N/A required optional N/A jsonrpc method N/A id params options N/A N/A self N/A N/A N/A 
        Handle browsers that prefight a "complex" POST with OPTIONS
         N/A resp N/A make_response 200 N/A N/A N/A resp headers N/A Access-Control-Allow-Origin N/A N/A N/A request headers get Origin * N/A N/A N/A resp headers N/A Access-Control-Allow-Methods POST, OPTIONS N/A N/A N/A resp headers N/A Access-Control-Max-Age N/A 24 3600 N/A N/A N/A resp headers N/A Access-Control-Allow-Headers Content-Type N/A resp N/A post N/A N/A self N/A N/A N/A 
        Check if the json request is valid.  If it is, do the rpc and return
        the result as JSON.
         N/A N/A N/A id N/A request json N/A N/A N/A N/A self json_response N/A jsonrpc 2.0 N/A N/A self error N/A N/A self _is_jsonrpc_request N/A N/A N/A self error N/A N/A N/A self error N/A N/A self _check_method_and_params N/A N/A N/A self json_response N/A id N/A N/A request json N/A id N/A N/A self error N/A N/A N/A N/A self json_response N/A error N/A self error N/A N/A N/A self make_post_response N/A N/A N/A self echo N/A N/A N/A self make_post_response N/A make_post_response N/A N/A self N/A N/A N/A resp N/A jsonify N/A self json_response N/A N/A N/A resp headers N/A Access-Control-Allow-Origin N/A N/A N/A request headers get Origin * N/A resp N/A _is_jsonrpc_request N/A N/A self N/A N/A N/A 
        Check if the request is valid json-rpc 2.0
         N/A N/A N/A N/A request content_type application/json-rpc N/A N/A msg Invalid Request: The server received an  N/A msg invalid content_type N/A N/A code message -32600 msg N/A f N/A N/A self request_fields N/A required N/A N/A N/A N/A f N/A request json N/A N/A msg Invalid Request: The JSON sent is not a valid  N/A msg Request object N/A N/A code message -32600 msg N/A N/A N/A N/A request json N/A jsonrpc 2.0 N/A N/A msg Invalid Request: The JSON RPC version must be 2.0 N/A N/A code message -32600 msg N/A N/A N/A _check_method_and_params N/A N/A self N/A N/A N/A 
        Check if the method in the request is one of the supported methods.

        Note:: Do not rename self.rpc_methods to self.methods as self.methods
        is reserved for the HTTP methods allowed for this class.
         N/A N/A self method N/A N/A N/A N/A request json N/A method lower N/A N/A N/A self method N/A self rpc_methods N/A N/A msg The method %s does not exist / is not available. N/A N/A code message -32601 N/A msg N/A N/A request json N/A method N/A N/A self params N/A N/A N/A request json get params N/A N/A N/A self params N/A N/A msg Invalid Request: parameters are required N/A N/A code message -32602 msg N/A None N/A echo N/A N/A self N/A N/A N/A N/A NotImplementedError N/A N/A JSONEchoView N/A JSONRPCView N/A N/A 
    This class setup the allowed methods for this view, and defines the
    RPC handling
     N/A rpc_methods N/A echo reverse uppercase lowercase echo N/A N/A self N/A N/A N/A rv N/A echo N/A self method N/A N/A self params N/A 0 N/A N/A isinstance rv dict N/A N/A N/A N/A self json_response N/A error rv N/A N/A rv N/A N/A N/A N/A self json_response N/A result rv N/A N/A