@api.route('/api/geo-types/')
def geo_types():
    ordered_types = None
    if request.args.get('geo_type'):
        ordered_types, errors = get_geo_types(request.args.get('geo_type'))
    else:
        ordered_types, errors = get_geo_types()
    resp = make_response(json.dumps(ordered_types, cls=GeoTypeEncoder))
    resp.headers['Content-Type'] = 'application/json'
    return resp
Return a list of tables grouped by geo_type
dataset/ETHPy150Open associatedpress/geomancer/geomancer/api.py/geo_types