Reputation: 27031
I want to write an application which is portable.
With "portable" I mean that it can be used to access these storages:
The software should be developed using Python.
I am unsure how to start, since I could not find a library which supports all three storages.
Upvotes: 7
Views: 329
Reputation: 13629
Since Eucalyptus aims to provide AWS compatible APIs, all you need is a package that is Google and AWS compatible.
A quick search online finds at least a couple of possible answers:
Upvotes: 1
Reputation: 1184
In order to connect to Google Cloud Storage from your application, you can follow the steps described here to learn how to read from a storage bucket or write into one using the application. It also includes an example on how to perform those steps.
Please be aware that this would only work for Google Cloud Storage. As for Amazon and Eucalyptus, I would not be able to provide the help you need.
UPDATE
After confirming that the answer I posted above is not what you wish for your application, we can start from @GautamKumar's answer and continue from there, so let's check the boto
library. As Gautam said, boto3
is useful to connect to Amazon S3 buckets, so let's see if there are also options for Eucalyptus and Google Cloud Storage.
I could check that the same library can be used to connect to Eucalyptus, including options for both EC2 and S3. You can find some examples on how to use boto3
with Eucalyptus in this link.
Also, there is a plugin available for accessing Google Cloud Storage and performing operations with their buckets by using the XML API. You would also need gcs_oauth2_boto_plugin
in order to authenticate into Cloud Storage. In the provided link you can check how to perform the different operations to access the Cloud Storage buckets and perform different operations with them.
Upvotes: 4