def do_get_schema(endpoint, name):
    '''
    Download and cache schema ``name`` in memory.
    '''
    if name in SCHEMAS:
        return SCHEMAS['name']

    url = endpoint+name

    print "Downloading schema", name
    SCHEMAS[name] = requests.get(url).json()
    return SCHEMAS[name]
dataset/ETHPy150Open yadutaf/ovh-cli/ovhcli/schema.py/do_get_schema/original