roboto.file_infra.file_service#
Module Contents#
- class roboto.file_infra.file_service.FileService(roboto_client=None, object_store_registry=None)#
Application service for performing upload and download to the Roboto Platform.
Agnostic to object store provider.
- Parameters:
roboto_client (Optional[roboto.http.RobotoClient])
object_store_registry (Optional[roboto.file_infra.object_store.StoreRegistry])
- upload(files, association, destination_paths={}, batch_size=_DEFAULT_UPLOAD_BATCH_SIZE, device_id=None, caller_org_id=None)#
- Parameters:
files (collections.abc.Iterable[pathlib.Path])
association (roboto.association.Association)
destination_paths (collections.abc.Mapping[pathlib.Path, str])
batch_size (int)
device_id (Optional[str])
caller_org_id (Optional[str])
- Return type:
list[str]