Google Cloud Platform Python Samples
Python samples for Google Cloud Platform products.
virtualenvif you do not already have them.
Clone this repository:
git clone https://github.com/GoogleCloudPlatform/python-docs-samples.git
Obtain authentication credentials.
Create local credentials by running the following command and following the
gcloud auth application-default login
Read more about Google Cloud Platform Authentication.
How to run a sample
Change directory to one of the sample folders, e.g.
Create a virtualenv. Samples are compatible with Python 3.6+.
python3 -m venv env source env/bin/activate
Install the dependencies needed to run the samples.
pip install -r requirements.txt
Run the sample: