This repository contains the Lithops S3 Client Adapter, which allows the cloudpathlib library to interface with Lithops storage abstraction for cloud object storage services like Minio.
Warning
This code is experimental. It is possible that it contains bugs or inconsistencies with the expected behavior of both the Lithops framework and cloudpathlib.
To use the adapter, ensure you have both Lithops and cloudpathlib installed:
pip install lithops cloudpathlib
You can then create an instance of the LithopsS3ClientAdapter
by providing a Lithops storage client:
from lithops import Storage
from cloudpathlib import CloudPath
storage = Storage()
minio_client = storage.get_client()
adapter_client = LithopsS3ClientAdapter(minio_client)
cloud_path = CloudPath("s3://your-bucket-name/path", client=adapter_client)
This adapter aims to bridge functionality between cloudpathlib and Lithops, allowing operations like reading, writing, and listing objects in cloud storage directly via cloudpathlib.