You are on page 1of 12

Lab Exercise for Launching a Python program using

GOOGLE CLOUD Engine :

Step 1: Download python 3.7.9

For this go to python.org and select Downloads->windows

Next , Select the following python version and download


Once downloaded , Install Python in your system

Step 2: Download Google SDK, type google cloud SDK in search box
and click on the first link
The following page opens once you click on the first link

Scroll down in the page and click on “Google Cloud CLI Installer”
The installation of Google Cloud CLI takes 15-20 minutes.
After Installation , Google Cloud CLI/SDK will appear as an icon as
shown below:

Now , after step 1 and step 2 both python 3.7.9 and google cloud cli/sdk got
installed

Step 3-> Now create a folder named app on your desktop as shown below. This
folder will contain 2 more files : one python file with name “index.py” and
secondly, a configuration file called “app.yaml” ( this configuration file has an
extension of yaml).

Note :I will send both this files, copy them as it is and store them in app file in
your system’s desktop.
Contents of index.py file as shown below:
Contents of app.yaml file as shown below
Step 4-> Now double click on Google Cloud CLI icon , the following
window opens up (like a terminal) and in that run this command
google-cloud-sdk\bin\dev-appserver.py “path of of app folder”

The command is the one highlighted in white….type it…..and in double quotes it


is the path of “app folder with the two files “ which you created on your
desktop. To copy the path, go to the folder and click on the yellow folder icon as
shown below
After you give the command press enter, you should be getting such INFO
messages as shown below
Step 6: Open google chrome and run “localhost:8080”

Now you will see the python code getting launched using Google APP Engine

You might also like