roboto.file_infra#

Submodules#

Package Contents#

class roboto.file_infra.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:
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]