@memoized.memoized
def get_details(app_url=defaults.APP_URL):
    """
    returns environment details for the app url specified

    """
    url = '%s/environment' % app_url
    response = requests.get(url)

    if response.status_code == 200:
        return response.json()
    else:
        raise JutException('Unable to retrieve environment details from %s, got %s: %s' %
                           (url, response.status_code, response.text))
dataset/ETHPy150Open jut-io/jut-python-tools/jut/api/environment.py/get_details/original