Skip to Content
Google Cloud Platform Cookbook
book

Google Cloud Platform Cookbook

by Legorie Rajan PS
April 2018
Intermediate to advanced content levelIntermediate to advanced
280 pages
6h 18m
English
Packt Publishing
Content preview from Google Cloud Platform Cookbook

How to do it...

The steps involved are as follows:

  1. Clone the GitHub repository and navigate to the storagedrive directory: https://github.com/legorie/gcpcookbook.git or https://github.com/PacktPublishing/Google-Cloud-Platform-Cookbook.git.
  2. Create virtualenv and install the dependencies to run the sample:
$ virtualenv env$ source env/bin/activate$ pip install -r requirements.txt
  1. The Python code will upload the file specified to Google Storage and make an entry into the Cloud Datastore. We have prepended a five-digit hash to the filename so that the files are not written in a contiguous manner. This will help Google Cloud Storage better manage the auto-balancing, upload connection speed, and distribution of files. The bucket name is hardcoded ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Google Compute Engine

Google Compute Engine

Marc Cohen, Kathryn Hurley, Paul Newson
Mastering Google App Engine

Mastering Google App Engine

Mohsin Shafique Hijazee
Google Cloud Platform Administration

Google Cloud Platform Administration

Ranjit Singh Thakurratan
Google Cloud Cookbook

Google Cloud Cookbook

Rui Santos Costa, Drew Hodun

Publisher Resources

ISBN: 9781788291996Supplemental Content