google-cloud-python
is a client library for accessing Google
Cloud Platform services that significantly reduces the boilerplate
code you have to write. The library provides high-level API
abstractions so they're easier to understand. It embraces
idioms of Python, works well with the standard library, and
integrates better with your codebase.
All this means you spend more time creating code that matters
to you.
google-cloud-python
is 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!
from google.cloud import datastore
client = datastore.Client()
product_key = client.key('Product', 123)
print(client.get(product_key))
google-cloud-python-expenses-demo
- Use google-cloud-python with the Datastore and Cloud Storage to manage expenses
google-cloud-python
package
and the google-cloud
command-line tool?Both the google-cloud
command-line tool and
google-cloud-python
package 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 google-cloud
command-line
tool can be used to manage both your development workflow and your
Google Cloud Platform resources while the google-cloud-python
package is the
Google Cloud Client Library for Python.
google-cloud-python
and the Google APIs Python Client?The
Google APIs Python Client is a client library for
using the broad set of Google APIs.
google-cloud-python
is built specifically for the Google Cloud Platform
and is the recommended way to integrate Google Cloud APIs into your
Python applications. If your application requires both Google Cloud Platform and
other Google APIs, the 2 libraries may be used by your application.