tlx/apigateway/__init__.py
def require_valid_inputs(supplied, required):
    """ Returns None if `supplied` is a superset of `required`.  Raises `APIGException` with
        error code 400 if not.
        Bothe params must be an iterable.
    """

    try:
        missing_parameters = set(required).difference(supplied)
    except TypeError:
        # supplied is not itterable
        missing_parameters = required

    if missing_parameters:
        msg = "Invalid input parameters: {missing_parameters}".format(**locals())
        raise APIGException(msg, code=400)
 Returns None if `supplied` is a superset of `required`.  Raises `APIGException` with
        error code 400 if not.
        Bothe params must be an iterable.
    
Returns None if `supplied` is a superset of `required`.  Raises `APIGException` with
error code 400 if not.
Bothe params must be an iterable.
Returns None if ` supplied ` is a superset of ` required ` . Raises ` APIGException ` with error code 400 if not . Bothe params must be an iterable .
def require_valid_inputs(supplied, required):
    try:
        missing_parameters = set(required).difference(supplied)
    except TypeError:
        missing_parameters = required
    if missing_parameters:
        msg = "Invalid input parameters: {missing_parameters}".format(**locals())
        raise APIGException(msg, code=400)
def require_valid_inputs ( supplied , required ) : try : missing_parameters = set ( required ) . difference ( supplied ) except TypeError : missing_parameters = required if missing_parameters : msg = "Invalid input parameters: {missing_parameters}" . format ( ** locals ( ) ) raise APIGException ( msg , code = 400 )
Returns None if `supplied` is a superset of `required`.
Returns None if ` supplied ` is a superset of ` required ` .
""" Returns None if `supplied` is a superset of `required`.  Raises `APIGException` with
        error code 400 if not.
        Bothe params must be an iterable.
    """ # supplied is not itterable
supplied
required