From charlesreid1

Line 35: Line 35:


=Resources=
=Resources=


=Flags=
=Flags=

Revision as of 01:21, 24 October 2017

Installing

Gcloud

PubSub Client Library

There is a long list of client libraries for Google Cloud provided here: https://cloud.google.com/apis/docs/cloud-client-libraries

The Python API bundles each component separately, and not everything comes with the client library by default. For example, if you want to use BigQuery, you have to install the BigQuery API components. If you want to use PubSub, you have to install the PubSub API components. Installing one does not necessarily install the other.

Python API

The standard Google Cloud SDK does not install any Python bindings. If you want Python bindings, you'll need to install those things using pip:

$ pip3 install --upgrade google-cloud-pubsub

Link/reference: https://cloud.google.com/pubsub/docs/reference/libraries#client-libraries-install-python

Also see: https://github.com/GoogleCloudPlatform/google-cloud-python

Specifically: https://github.com/GoogleCloudPlatform/google-cloud-python/tree/master/pubsub


Using

Using from gcloud

Using from Python

Resources

Flags