Beispiel #1
0
def get_list(app_id):
    if app_id:
        params = {
            'app': app_id
        }
        return core.get('/jobs', params=params)
    return core.get('/jobs')
Beispiel #2
0
def get_list(app_id, base_id):
    params = {}
    if app_id:
        params['app'] = app_id
    if base_id:
        params['base_model'] = base_id
    return core.get('/labels', params=params)
Beispiel #3
0
def get_detail(id):
    return core.get('/jobs/{}'.format(id))
Beispiel #4
0

        
Beispiel #5
0
def get_list(app_id):
    if app_id:
        params = {'app': app_id}
        return core.get('/base_models', params=params)
    return core.get('/base_models')
Beispiel #6
0
def get_detail(id):
    return core.get('/base_models/{}'.format(id))
Beispiel #7
0
def list_images(id):
    return core.get('/labels/{}/list_images'.format(id))
Beispiel #8
0
def get_detail(id):
    return core.get('/labels/{}'.format(id))
Beispiel #9
0
def get_detail(uuid):
    return core.get('/tasks/{}'.format(uuid))
Beispiel #10
0
def get_list():
    return core.get('/tasks')
Beispiel #11
0
def get_detail(id):
    return core.get('/images/{}'.format(id))
Beispiel #12
0
def get_list():
    return core.get('/images')