Module Expr Str Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias alias TryExcept body ImportFrom alias identifier handlers ExceptHandler type NameLoad body ImportFrom alias identifier If UnaryOpNot Call NameLoad NameLoad Str body ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam defaults body Pass decorator_list decorator_list Assign AttributeStore NameLoad attr NameLoad Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore ListLoad Str Str Str Str Str Str Str Assign NameStore ListLoad Str Str Str Str Str Str Str Str Str Str Str Assign NameStore Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad keyword Str keyword NameLoad keyword Str keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword Str keyword NameLoad FunctionDef arguments args NameParam defaults body If Call NameLoad NameLoad NameLoad body Assign NameStore ListComp TupleLoad Call NameLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore NameLoad Return Call NameLoad Call NameLoad NameLoad decorator_list Return Call NameLoad NameLoad keyword NameLoad keyword NameLoad orelse If Call NameLoad NameLoad NameLoad body Return ListLoad TupleLoad Call NameLoad NameLoad Dict orelse If Call NameLoad NameLoad AttributeLoad NameLoad attr body Return ListComp TupleLoad Call NameLoad NameLoad Dict comprehension NameStore NameLoad orelse If Call NameLoad NameLoad NameLoad body Return ListLoad TupleLoad Call NameLoad NameLoad Dict orelse Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Return AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore CompareIn Str NameLoad If NameLoad body Expr Call NameLoad Str NameLoad If BoolOpAnd NameLoad Call AttributeLoad NameLoad attr Str body Expr Call NameLoad Str Return Str orelse If Call NameLoad NameLoad NameLoad body Expr Call NameLoad Str Return NameLoad orelse Expr Call NameLoad Str Call NameLoad NameLoad NameLoad Return NameLoad orelse Expr Call NameLoad Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If NameLoad body Assign NameStore ListComp Call AttributeLoad NameLoad attr comprehension NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad Lambda arguments args NameParam defaults Call NameLoad NameLoad Call AttributeLoad NameLoad attr Str NameLoad Return Call AttributeLoad Str attr Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad Call AttributeLoad NameLoad attr Str Assign NameStore Dict If CompareIs NameLoad NameLoad body Return NameLoad Expr Call NameLoad Str Call AttributeLoad NameLoad attr Str NameLoad NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad NameLoad attr Str If Call AttributeLoad NameLoad attr Str body Assign SubscriptStore NameLoad Index NameLoad Str If CompareEq NameLoad Str body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad Str attr If BoolOpAnd NameLoad CompareIn NameLoad Call AttributeLoad NameLoad attr Str body Assign SubscriptStore NameLoad Index NameLoad Call NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad NameLoad attr Str Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad NameLoad attr Str orelse Expr Call NameLoad Str NameLoad Call AttributeLoad NameLoad attr Str If Call AttributeLoad NameLoad attr Str body If BoolOpAnd CompareNotEq SubscriptLoad NameLoad Index NameLoad Str CompareGt Call NameLoad Call AttributeLoad NameLoad attr Str Num body Assign NameStore ListLoad Str Call AttributeLoad NameLoad attr Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr GeneratorExp NameLoad comprehension NameStore NameLoad CompareIsNot NameLoad NameLoad Return Call NameLoad GeneratorExp TupleLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If Call NameLoad NameLoad NameLoad body Expr Call NameLoad Str Return NameLoad Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad Str Call NameLoad NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return IfExp CompareEq NameLoad Str Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call NameLoad GeneratorExp Call NameLoad NameLoad NameLoad comprehension NameStore NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str TryExcept body If Call NameLoad NameLoad NameLoad body Return Call AttributeLoad NameLoad attr NameLoad NameLoad orelse Return Call AttributeLoad NameLoad attr NameLoad NameLoad keyword AttributeLoad NameLoad attr handlers ExceptHandler body Return CompareEq NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad If NameLoad body For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults NameLoad body Expr Str Assign NameStore BoolOpOr NameLoad NameLoad Return Call NameLoad GeneratorExp TupleLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr Str Str Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad comprehension NameStore NameLoad CompareIsNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If BoolOpAnd UnaryOpNot Call NameLoad NameLoad NameLoad Call NameLoad NameLoad AttributeLoad NameLoad attr body Return Call AttributeLoad Str attr GeneratorExp Call NameLoad NameLoad comprehension NameStore Call NameLoad NameLoad orelse Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body If CompareIn NameLoad NameLoad body Assign NameStore Call NameLoad SubscriptLoad NameLoad Index NameLoad Assign SubscriptStore NameLoad Index NameLoad IfExp NameLoad Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If Call NameLoad NameLoad NameLoad body Return ListLoad NameLoad orelse If UnaryOpNot Call NameLoad NameLoad AttributeLoad NameLoad attr body Return ListLoad NameLoad orelse Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return ListComp Call NameLoad NameLoad comprehension NameStore Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad BoolOpOr NameLoad Dict attr Assign SubscriptStore NameLoad Index Str Call NameLoad Call AttributeLoad NameLoad attr Str Assign SubscriptStore NameLoad Index Str Call NameLoad Call AttributeLoad NameLoad attr Str If BoolOpAnd CompareIn Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str body Raise Call NameLoad Str Expr Call NameLoad NameLoad Str Expr Call NameLoad NameLoad Str keyword NameLoad If Call NameLoad Call AttributeLoad NameLoad attr Str NameLoad body Assign SubscriptStore NameLoad Index Str Call NameLoad Call NameLoad Call AttributeLoad SubscriptLoad NameLoad Index Str attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults NameLoad body Expr Str If CompareIsNot AttributeLoad NameLoad attr NameLoad body Return Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr orelse If CompareIsNot NameLoad NameLoad body Return Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr orelse Return Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args defaults vararg kwarg body Expr Str Expr Call AttributeLoad Call NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args defaults vararg kwarg body Expr Str Expr Call AttributeLoad Call NameLoad attr NameLoad NameLoad decorator_list
N/A N/A 
    flask_cors
    ~~~~
    Flask-CORS is a simple extension to Flask allowing you to support cross
    origin resource sharing (CORS) using a simple decorator.

    :copyright: (c) 2014 by Cory Dolphin.
    :license: MIT, see LICENSE for more details.
 N/A re N/A logging N/A collections datetime timedelta six string_types flask request current_app N/A N/A flask _app_ctx_stack stack N/A N/A N/A ImportError N/A flask _request_ctx_stack stack N/A N/A N/A hasattr logging NullHandler N/A NullHandler N/A N/A logging Handler N/A emit N/A N/A self record N/A N/A N/A N/A N/A N/A N/A logging NullHandler NullHandler N/A ACL_ORIGIN Access-Control-Allow-Origin N/A ACL_METHODS Access-Control-Allow-Methods N/A ACL_ALLOW_HEADERS Access-Control-Allow-Headers N/A ACL_EXPOSE_HEADERS Access-Control-Expose-Headers N/A ACL_CREDENTIALS Access-Control-Allow-Credentials N/A ACL_MAX_AGE Access-Control-Max-Age N/A ACL_REQUEST_METHOD Access-Control-Request-Method N/A ACL_REQUEST_HEADERS Access-Control-Request-Headers N/A ALL_METHODS N/A GET HEAD POST OPTIONS PUT PATCH DELETE N/A CONFIG_OPTIONS N/A CORS_ORIGINS CORS_METHODS CORS_ALLOW_HEADERS CORS_EXPOSE_HEADERS CORS_SUPPORTS_CREDENTIALS CORS_MAX_AGE CORS_SEND_WILDCARD CORS_AUTOMATIC_OPTIONS CORS_VARY_HEADER CORS_RESOURCES CORS_INTERCEPT_EXCEPTIONS N/A FLASK_CORS_EVALUATED _FLASK_CORS_EVALUATED N/A RegexObject N/A type N/A N/A re compile N/A DEFAULT_OPTIONS N/A dict origins * methods ALL_METHODS allow_headers * automatic_options True send_wildcard False vary_header True supports_credentials False resources /* intercept_exceptions True parse_resources N/A N/A resources N/A N/A N/A N/A isinstance resources dict N/A N/A resources N/A N/A N/A re_fix k v N/A N/A k v N/A N/A resources items pattern_length N/A N/A pair N/A N/A N/A N/A maybe_regex _ pair N/A N/A len N/A get_regexp_pattern maybe_regex N/A N/A N/A sorted resources key pattern_length reverse True N/A N/A N/A isinstance resources string_types N/A N/A N/A N/A N/A re_fix resources N/A N/A N/A N/A isinstance resources N/A collections Iterable N/A N/A N/A N/A N/A re_fix r N/A N/A r resources N/A N/A N/A isinstance resources RegexObject N/A N/A N/A N/A N/A re_fix resources N/A N/A N/A N/A ValueError Unexpected value for resources argument. N/A get_regexp_pattern N/A N/A regexp N/A N/A N/A 
        Helper that returns regexp pattern from given value.

        :param regexp: regular expression to stringify
        :type regexp: _sre.SRE_Pattern or str
        :returns: string representation of given regexp pattern
        :rtype: str
     N/A N/A N/A N/A regexp pattern N/A N/A N/A AttributeError N/A N/A N/A str regexp N/A get_cors_origin N/A N/A options request_origin N/A N/A N/A origins N/A N/A options get origins N/A wildcard N/A .* origins N/A request_origin N/A N/A N/A debugLog CORS request received with 'Origin' %s request_origin N/A N/A wildcard N/A N/A options get send_wildcard N/A N/A N/A debugLog Allowed origins are set to '*', assuming valid request N/A * N/A N/A N/A try_match_any request_origin origins N/A N/A N/A debugLog Given origin matches set of allowed origins N/A request_origin N/A N/A N/A debugLog Given origin does not match any of allowed origins: %s N/A map get_regexp_pattern origins N/A None N/A N/A N/A debugLog 'Origin' header was not set, which means CORS was not requested, skipping N/A None N/A get_allow_headers N/A N/A options acl_request_headers N/A N/A N/A acl_request_headers N/A N/A request_headers N/A N/A N/A h strip N/A h N/A N/A acl_request_headers split , N/A matching_headers N/A filter N/A N/A N/A h N/A N/A try_match_any h N/A N/A options get allow_headers request_headers N/A N/A N/A ,  join N/A sorted matching_headers N/A None N/A get_cors_headers N/A N/A options request_headers request_method response_headers N/A N/A N/A origin_to_set N/A get_cors_origin options N/A N/A request_headers get Origin N/A headers N/A N/A N/A origin_to_set None N/A N/A headers N/A N/A infoLog Request from Origin:%s, setting %s:%s N/A N/A request_headers get Origin ACL_ORIGIN origin_to_set N/A N/A headers N/A ACL_ORIGIN origin_to_set N/A N/A headers N/A ACL_EXPOSE_HEADERS N/A N/A options get expose_headers N/A N/A N/A options get supports_credentials N/A N/A N/A headers N/A ACL_CREDENTIALS true N/A N/A request_method OPTIONS N/A N/A acl_request_method N/A N/A N/A N/A request_headers get ACL_REQUEST_METHOD upper N/A N/A acl_request_method N/A acl_request_method N/A N/A options get methods N/A N/A N/A headers N/A ACL_ALLOW_HEADERS N/A get_allow_headers options N/A N/A request_headers get ACL_REQUEST_HEADERS N/A N/A headers N/A ACL_MAX_AGE N/A N/A options get max_age N/A N/A headers N/A ACL_METHODS N/A N/A options get methods N/A N/A N/A infoLog Access-Control-Request-Method:%s does not match allowed methods %s acl_request_method N/A N/A options get methods N/A N/A N/A options get vary_header N/A N/A N/A N/A N/A headers N/A ACL_ORIGIN * N/A N/A len N/A N/A options get origins 1 N/A N/A vary N/A Origin N/A N/A response_headers get Vary N/A N/A headers N/A Vary N/A N/A ,  join N/A v N/A v vary N/A v None N/A N/A dict N/A N/A k v N/A N/A k v N/A N/A headers items v N/A set_cors_headers N/A N/A resp options N/A N/A N/A 
        Performs the actual evaluation of Flas-CORS options and actually
        modifies the response object.

        This function is used both in the decorator and the after_request
        callback
     N/A N/A hasattr resp FLASK_CORS_EVALUATED N/A N/A N/A debugLog CORS have been already evaluated, skipping N/A resp N/A headers_to_set N/A get_cors_headers options N/A request headers N/A request method N/A resp headers N/A N/A debugLog Settings CORS headers: %s N/A str headers_to_set N/A N/A k v N/A N/A headers_to_set items N/A N/A N/A N/A resp headers N/A k v N/A resp N/A re_fix N/A N/A reg N/A N/A N/A 
        Replace the invalid regex r'*' with the valid, wildcard regex r'/.*' to
        enable the CORS app extension to have a more user friendly api.
     N/A N/A N/A reg * .* reg N/A try_match_any N/A N/A inst patterns N/A N/A N/A N/A any N/A N/A try_match inst pattern N/A pattern patterns N/A try_match N/A N/A request_origin pattern N/A N/A N/A 
        Safely attempts to match a pattern or string to a request origin.
     N/A N/A N/A N/A isinstance pattern RegexObject N/A N/A N/A N/A re match pattern request_origin N/A N/A N/A N/A re match pattern request_origin flags N/A re IGNORECASE N/A N/A N/A N/A N/A request_origin pattern N/A get_cors_options N/A N/A appInstance N/A dicts N/A N/A 
        Compute CORS options for an application by combining
        the DEFAULT_OPTIONS, the app's configuration-specified options
        and any dictionaries passed. The last specified option wins.
     N/A options N/A N/A DEFAULT_OPTIONS copy N/A N/A N/A options update N/A get_app_kwarg_dict appInstance N/A dicts N/A N/A d dicts N/A N/A N/A N/A options update d N/A N/A serialize_options options N/A get_app_kwarg_dict N/A N/A appInstance N/A None N/A N/A 
        Returns the dictionary of CORS specific app configurations.
     N/A app N/A appInstance current_app N/A N/A dict N/A N/A N/A N/A N/A N/A k lower replace cors_ N/A N/A N/A app config get k N/A k CONFIG_OPTIONS N/A N/A N/A N/A app config get k None N/A flexible_str N/A N/A obj N/A N/A N/A 
        A more flexible str function which intelligently handles
        stringifying iterables. The results are lexographically
        sorted to ensure generated responses are consistent when
        iterables such as Set are used (whose order is usually platform
        dependent)
     N/A N/A N/A N/A isinstance obj string_types N/A isinstance obj N/A collections Iterable N/A N/A N/A N/A ,  join N/A N/A str item N/A item N/A sorted obj N/A N/A N/A str obj N/A serialize_option N/A N/A options_dict key upper N/A False N/A N/A N/A key options_dict N/A N/A value N/A flexible_str N/A options_dict N/A key N/A N/A options_dict N/A key N/A upper N/A N/A value upper value N/A ensure_iterable N/A N/A inst N/A N/A N/A 
        Wraps scalars or string types as a list, or returns the iterable instance.
     N/A N/A isinstance inst string_types N/A N/A N/A inst N/A N/A N/A N/A isinstance inst N/A collections Iterable N/A N/A N/A inst N/A N/A inst N/A sanitize_regex_param N/A N/A param N/A N/A N/A N/A N/A re_fix x N/A x N/A ensure_iterable param N/A serialize_options N/A N/A opts N/A N/A N/A 
        A helper method to serialize and processes the options dictionary
        where applicable.
     N/A options N/A N/A N/A opts N/A copy N/A N/A options N/A origins N/A sanitize_regex_param N/A N/A options get origins N/A N/A options N/A allow_headers N/A sanitize_regex_param N/A N/A options get allow_headers N/A N/A N/A .* N/A options N/A origins N/A options N/A supports_credentials N/A options N/A send_wildcard N/A N/A N/A ValueError Cannot use supports_credentials in conjunction withan origin string of '*'. See: http://www.w3.org/TR/cors/#resource-requests N/A N/A serialize_option options expose_headers N/A N/A serialize_option options methods upper True N/A N/A isinstance N/A N/A options get max_age timedelta N/A N/A N/A options N/A max_age N/A str N/A int N/A N/A N/A options N/A max_age total_seconds N/A options N/A getLogger N/A N/A app N/A None N/A N/A 
        Helper to get Flask-Cor's logger, attached to the current_app's logger
        if it exists.
     N/A N/A N/A stack top None N/A N/A N/A N/A logging getLogger N/A %s.cors N/A current_app logger_name N/A N/A N/A app None N/A N/A N/A N/A logging getLogger N/A %s.cors N/A app logger_name N/A N/A N/A N/A logging getLogger flask.ext.cors N/A debugLog N/A N/A N/A args kwargs N/A N/A 
        Helper to log a message at the DEBUG level.
     N/A N/A N/A N/A getLogger debug args kwargs N/A infoLog N/A N/A N/A args kwargs N/A N/A 
        Helper to log a message at the INFO level.
     N/A N/A N/A N/A getLogger info args kwargs N/A