Datasets
create_dataset
TagmeClientAdvanced.create_dataset(name: str, access: str = 'organization', data_classification_level: str | None = None, data_source: str | None = None, organization_id: str | None = None, acl: List[str] | None = None, ) → Dataset
Create new dataset.
Parameters |
* * * * * * |
Returns |
Information about created dataset. |
download_dataset_data
TagmeClientAdvanced.download_dataset_data(dataset_id: str, destination_dir: str | Path, organization_id: str | None = None, ) → int
Download files from dataset.
Parameters |
* * * |
Returns |
number of files downloaded successfully. |
download_dataset_file
TagmeClientAdvanced.download_dataset_file(file_id: str, organization_id: str | None = None, ) → bytes
get_dataset
TagmeClientAdvanced.get_dataset(dataset_id: str, organization_id: str | None = None, ) → Dataset
Get information about dataset.
Parameters |
* * |
Returns |
information about dataset. |
get_dataset_file
TagmeClientAdvanced.get_dataset_file(file_id: str, organization_id: str | None = None, ) → DatasetFile
Get dataset file by file_id (its id, name, url).
Parameters |
* * |
Returns |
file from dataset. |
get_dataset_files
TagmeClientAdvanced.get_dataset_files(dataset_id: str, organization_id: str | None = None, ) → List[DatasetFile]
Get files from dataset (their id, name, url).
Parameters |
* * |
Returns |
list of files from dataset. |
get_datasets
TagmeClientAdvanced.get_datasets(page: int | None = None, size: int | None = None, query: str | None = None, organization_id: str | None = None, ) → List[Dataset]
Get organization’s datasets.
Parameters |
* * * * |
Returns |
list of information about datasets. |
remove_dataset
TagmeClientAdvanced.remove_dataset(dataset_id: str, organization_id: str | None = None, ) → None
replace_dataset_file
TagmeClientAdvanced.replace_dataset_file(dataset_id: str, file_id: str, filepath: str | Path, organization_id: str | None = None, ) → UploadFilesResult
Replace file under existing uid and link.
Parameters |
* * * * |
Returns |
object which contains information about uploaded file and errors. |
update_dataset
TagmeClientAdvanced.update_dataset(dataset_id: str, name: str, access: str = 'organization', data_classification_level: str | None = None, data_source: str | None = None, organization_id: str | None = None, acl: List[str] | None = None, ) → Dataset
Update dataset information.
Parameters |
* * * * * * * |
Returns |
information about updated dataset. |
upload_dataset_files
TagmeClientAdvanced.upload_dataset_files(dataset_id: str, filepaths: Sequence[str | Path], batch_size: int = 16, organization_id: str | None = None, tqdm_on: str | bool = False, ) → UploadFilesResult
Upload selected files to dataset.
Parameters |
* * * * |
Returns |
object which contains information about uploaded files and errors. |
upload_folder_to_dataset
TagmeClientAdvanced.upload_folder_to_dataset(dataset_id: str, folder: str | Path, exclude_ext_filter: Set[str] | None = None, organization_id: str | None = None, ) → UploadFilesResult
Upload files from folder to dataset.
Parameters |
* * * * |
Returns |
object which contains information about uploaded files and errors. |