Skip to content

Dataset module

DatasetActions

Bases: BaseAction

Dataset actions

append_to_dataset(project_id, files, batch_id=None, dataset_id=None, ignore_exist_errors=False, disable_progress_bar=False)

Add files to a dataset

Info

You must provide a dataset_id or a batch_id to use the dataset linked to the batch

Parameters:

Name Type Description Default
project_id str

ID of the project

required
dataset_id Optional[str]

ID of the dataset_id

None
batch_id Optional[str]

ID of the batch

None
files List[Union[Dict, str]]

list of the file to create, str or Dict -> FilePayload(path : str, file : str)

required
disable_progress_bar Optional[bool]

Disable the progress bar display

False

Returns:

Type Description
None

None