acquire.acquire.uploaders.minio

Module Contents

Classes

MinIO

Creates a typing definition to which an UploaderPlugin should adhere.

class acquire.acquire.uploaders.minio.MinIO(upload: dict[str, str], **kwargs: dict[str, Any])

Bases: acquire.uploaders.plugin.UploaderPlugin

Creates a typing definition to which an UploaderPlugin should adhere.

prepare_client(paths: list[pathlib.Path], proxies: dict[str, str] | None = None) Any

Prepares a Minio client used to upload files.

Parameters:
  • paths – The files to upload.

  • proxies – The proxies to use during the upload.

Raises:

RuntimeError – When the minio module is not installed.

upload_file(client: Any, path: pathlib.Path) None

Uploads a file/path using the client.

finish(client: Any) None

A cleanup step or anything required to finish the upload.