def rate():
    """Set rate limits for authenticated and nonauthenticated users."""
    auth = request.authorization

    if not auth or not check_auth(auth.username, auth.password):
        return "60/minute"
    else:
        return "600/minute"
def rate ( ) : auth = request . authorization if not auth or not check_auth ( auth . username , auth . password ) : return "60/minute" else : return "600/minute"
Set rate limits for authenticated and nonauthenticated users.