-
-
-
-

google-cloud

-

Google Cloud client libraries for Python - idiomatic, intuitive, - and natural way for Python developers to integrate with Google Cloud - Platform services, such as Cloud Datastore and Cloud Storage.

-
-
-
- -
- -
- -
-
-
-

What is it?

- -

The google-cloud-* libraries provide clients for - accessing Google Cloud Platform services, significantly reducing - the boilerplate code you have to write. The libraries provide - high-level API abstractions so they're easier to understand. - They embrace idioms of Python, work well with the standard library, - and integrate better with your codebase. All this means you spend - more time creating code that matters to you.

- -

The google-cloud-* clients are configured to access - Google Cloud Platform services and authorize (OAuth 2.0) automatically - on your behalf. With a one-line install and a private key, you are up - and ready to go. Better yet, if you are running on a Google Compute - Engine instance, the one-line install is enough!

- -
- -
-

Retrieve Datastore Entities

- -
from google.cloud import datastore
-
-client = datastore.Client()
-product_key = client.key('Product', 123)
-print(client.get(product_key))
-
-
- -
-
-
- -
-
-

Examples

- - -
-
- -
-
-

FAQ

- -

What is the relationship between the google-cloud-* - libraries and the gcloud command-line tool?

-

Both the gcloud command-line tool and the - google-cloud-* libraries are a part of the Google Cloud - SDK: a collection of tools and libraries that enable you to easily - create and manage resources on the Google Cloud Platform. - The gcloud command-line tool can be used to manage both - your development workflow and your Google Cloud Platform resources while - the google-cloud-* libraries provide the - libraries for creating and interacting with those reesources - from Python.

- -

What is the relationship between the google-cloud-* - libraries and the Google APIs Python Client?

-

The - Google APIs Python Client is a client library for using the broad - set of Google APIs. - The google-cloud-* libraries are built specifically for the - Google Cloud Platform and provide the recommended way to integrate - Google Cloud APIs into your Python applications. If your application - requires both Google Cloud Platform and other Google APIs, both may be - used by your application.

-
-
- - - - -