acquire.acquire.uploaders.minio
¶
Module Contents¶
Classes¶
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.
- endpoint¶
- access_id¶
- access_key¶
- bucket_name¶
- folder¶
- 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.