def new(model_files, data_files, **kwargs): """Record a new model in the database""" CMD.run(API, 'new', **kwargs, model_files=[assert_dict(f) for f in model_files], data_files=[assert_dict(f) for f in data_files])
def update(model_files, data_files, no_model_files: bool = False, no_ds_files: bool = False, **kwargs): """Update a model record""" CMD.run( API, 'update', **kwargs, model_files=[] if no_model_files else [assert_dict(f) for f in model_files] or None, data_files=[] if no_ds_files else [assert_dict(f) for f in data_files] or None)
def new(details, **kwargs): """Record a new Treasure Chest in the framework""" CMD.run(API, 'new', **kwargs, details=assert_dict(details, allow_none=True))
def update(details, **kwargs): """Update a Treasure Chest""" CMD.run(API, 'update', **kwargs, details=assert_dict(details, allow_none=True))
def update(details, path=None, **kwargs): """Update a model version's details or files""" CMD.run(API, 'update', **kwargs, path=path, details=assert_dict(details, allow_none=True))
def new(details, path=None, **kwargs): """Record a new model version in the framework""" CMD.run(API, 'new', **kwargs, path=path or os.getcwd(), details=assert_dict(details, allow_none=True))
def _list(_filter, expand): """List model records""" CMD.run(API, 'lyst', _filter=assert_dict(_filter, allow_none=True), _response_callback=ListingCallback(obj_title='Model Record', expand=expand))