def list_languages(global_=False):
    request_url = GLOBAL_URL if global_ else API_URL
    res = requests.get(request_url)
    ok = res.status_code == requests.codes.ok
    if ok:
        resp_data = res.json()
        if global_:
            # Parse response json
            languages = [d['name'].split('.')[0] for d in resp_data
                            if d['name'] != 'README.md']
        else:
            languages = resp_data
        for language in languages:
            print(language)
    else:
        logging.debug(res.status_code)
        logging.error("Couldn't get language list. Please try again later.")
        return False
    return ok
Output the list of available languages.
dataset/ETHPy150Open sloria/gig/gig.py/list_languages