Apache Libcloud is certified for use with Wasabi. Wasabi is in the process of being formally listed on the libcloud provider page. In the interim, if you wish to use this product with Wasabi, you can use the standard S3 connector listed on that page.
To use this connector, follow the example below.
from libcloud.storage.types import Providerfrom libcloud.storage.providers import get_driverfrom libcloud.storage.base import StorageDriver
FILE_PATH = '/Users/wasabi-test/qa/100kfile'
cls = get_driver(Provider.S3)
driver = cls('your_wasabi_access_key', 'your_wasabi_secret_key',host='s3.wasabisys.com')
container = driver.get_container(container_name='libcloud')
extra = {'meta_data': {'owner': 'myuser', 'created': '2014-02-2'}}
with open(FILE_PATH, 'rb') as iterator:
obj = driver.upload_object_via_stream(iterator=iterator,
container=container,
object_name='backup.tar.gz',
extra=extra)~
Note that this example uses Wasabi’s us-east-1 storage region. To use other Wasabi storage regions, use the appropriate Wasabi service URL as described in this article.