diff --git a/cloud_storage_handler/clients/minio.py b/cloud_storage_handler/clients/minio.py index a1352f6..d09477f 100644 --- a/cloud_storage_handler/clients/minio.py +++ b/cloud_storage_handler/clients/minio.py @@ -1,6 +1,18 @@ +"""Minio client module. + +This module provides functionality to interact with the Minio cloud storage +service. +""" + from cloud_storage_handler.clients.minio_client import MinioClient + def get_minio_client(): + """Get a Minio client and create a bucket. + + Returns: + MinioClient: An initialized Minio client with a created bucket. + """ client = MinioClient() client.create_bucket() - return client \ No newline at end of file + return client diff --git a/cloud_storage_handler/main.py b/cloud_storage_handler/main.py index d390f8e..f0befd0 100644 --- a/cloud_storage_handler/main.py +++ b/cloud_storage_handler/main.py @@ -11,6 +11,7 @@ logger = logging.getLogger(__name__) + def init_app() -> FlaskApp: """Initialize and return the FOCA app. @@ -48,7 +49,7 @@ def init_app() -> FlaskApp: def main() -> None: """Run FOCA application.""" app = init_app() - minio_client = get_minio_client() + get_minio_client() app.run(port=app.port)