utils/param_parse.py
def parse_params(params, **parsers):
    """
    Parse a number of params out of a params dict, returning the parsed params as dict.

    The `params` string -> string dict usually holds HTTP query params, or form params.

    Each of the `parsers` keyword parameters maps a key in the returned dict to a param parser
    function. Each parser is run on the `params` in turn, and the produced value (if not `Unset`)
    added to the returned dict under the parser's keyword. Note that the parser keywords may be
    unrelated to the param keys their parser targets.
    """
    parsed_params = {}

    for out_key, parser in parsers.items():
        v = parser(params)
        if v is not Unset:
            parsed_params[out_key] = v

    return parsed_params

    Parse a number of params out of a params dict, returning the parsed params as dict.

    The `params` string -> string dict usually holds HTTP query params, or form params.

    Each of the `parsers` keyword parameters maps a key in the returned dict to a param parser
    function. Each parser is run on the `params` in turn, and the produced value (if not `Unset`)
    added to the returned dict under the parser's keyword. Note that the parser keywords may be
    unrelated to the param keys their parser targets.
    
Parse a number of params out of a params dict, returning the parsed params as dict.
The `params` string -> string dict usually holds HTTP query params, or form params.

Each of the `parsers` keyword parameters maps a key in the returned dict to a param parser
function. Each parser is run on the `params` in turn, and the produced value (if not `Unset`)
added to the returned dict under the parser's keyword. Note that the parser keywords may be
unrelated to the param keys their parser targets.
Parse a number of params out of a params dict returning the parsed params as dict . The ` params ` string - > string dict usually holds HTTP query params or form params . Each of the ` parsers ` keyword parameters maps a key in the returned dict to a param parser function . Each parser is run on the ` params ` in turn and the produced value ( if not ` Unset ` ) added to the returned dict under the parser ' s keyword . Note that the parser keywords may be unrelated to the param keys their parser targets .
def parse_params(params, **parsers):
    parsed_params = {}
    for out_key, parser in parsers.items():
        v = parser(params)
        if v is not Unset:
            parsed_params[out_key] = v
    return parsed_params
def parse_params ( params , ** parsers ) : parsed_params = { } for out_key , parser in parsers . items ( ) : v = parser ( params ) if v is not Unset : parsed_params [ out_key ] = v return parsed_params
Parse a number of params out of a params dict, returning the parsed params as dict.
Parse a number of params out of a params dict returning the parsed params as dict .
"""
    Parse a number of params out of a params dict, returning the parsed params as dict.

    The `params` string -> string dict usually holds HTTP query params, or form params.

    Each of the `parsers` keyword parameters maps a key in the returned dict to a param parser
    function. Each parser is run on the `params` in turn, and the produced value (if not `Unset`)
    added to the returned dict under the parser's keyword. Note that the parser keywords may be
    unrelated to the param keys their parser targets.
    """
params