简体   繁体   中英

Which Python Cloud Storage lib/API is "officially" supported by Google?

I'm migrating a Python service out of Google App Engine over to GCE/GKE and could use some help identifying the current production-grade, SLA'd method for managing objects in Google Cloud Storage.

The one referenced by most of Google's storage docs is the google.cloud.storage library. This looks nice and simple. However, as of now -- Jan 2017 -- there's a big header at the top that identifies the library as Beta , and has no SLA or deprecation policy. I'd prefer to use an SLA'd service.

After a lot of searching I found this alternative JSON API example: https://github.com/GoogleCloudPlatform/storage-file-transfer-json-python but it's much more cumbersome and isn't clear that it's better supported.

Any advice on which API to use?
Or better examples for bootstrapping?
Thanks in advance

Google Cloud Storage, the service, is not in beta. It has an SLA and a deprecation policy. The client library you've found, the Google Cloud Client Library for Python (google-cloud) , is in beta, which means that it's possible that a future version of it might in some cases make backwards-incompatible changes. However, it's also the current gold standard for easiest-to-use client library.

I recommend you use that one. Another option is the Google Python API Client Library , which is not in beta, but I found the Google Cloud Client Library for Python to be substantially easier to use, which is important.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM