This Virtual Machine is saving my time

This Virtual Machine is saving my time

Deploy your Python Script in a Linux Virtual Machine on top of Google Cloud Platform to keep in touch with your investments. Have you ever struggled when running your Python Scripts locally? Very general, isn’t it? Let me enumerate some struggling examples below:

Have you ever struggled when running your Python Scripts locally? Very general, isn’t it? Let me enumerate some struggling examples below:

  • Local Storage
  • Network Availability
  • PC always turned on

As I’ve been working with a Python Project that requires frequent execution, the examples above are the main ones that encouraged me to look for how to run away from handling it locally.

And why’s that? Because I’m not always logged in my computer and, even so, I didn’t want to keep executing my Python Script every 15 minutes (or any other frequency).

This scenario led me to define the following Project Structure:

Project Design

Project Design — By the Author

In order to achieve so, I invite you to check the following sessions, in which I covered the step-by-step and the main information regarding each of these Project elements:

  • Google Sheets (1) and API (2)
  • Google Cloud Platform (3) and Linux VM (4)

PS: I grouped the different elements as above because I think it gets easier to follow up the flow. The first group shows you what is our goal and anticipates us the API enablement. The latter group covers the actions needed on Google Platform and, then, move forward with the Linux VM itself (including the Python Script).


1. Google Sheets

As just mentioned, let’s take a look at what is this Python Project. The goal is to update every 15 minutes the current price of each owned Stock (from the Brazilian market).

The initial data is available on Google Sheets (Local Storage is no longer a problem), as the session’s title suggests. Below, you can see the data being considered in this Project:

Image for post

Google Sheets’ Original Data

google-cloud-platform linux investment python cloud-computing

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

Overview of Google Cloud Essentials Quest

If you looking to learn about Google Cloud in depth or in general with or without any prior knowledge in cloud computing, then you should definitely check this quest out.

Multi-cloud Spending: 8 Tips To Lower Cost

Mismanagement of multi-cloud expense costs an arm and leg to business and its management has become a major pain point. Here we break down some crucial tips to take some of the management challenges off your plate and help you optimize your cloud spend.

Google Cloud Training | Google Cloud Platform Course | Google Cloud for Beginners

**Link: https://www.youtube.com/watch?v=gud65lqebrc** In this [**Google Cloud Training**](https://www.youtube.com/watch?v=gud65lqebrc "Google Cloud Training") live session, you will know everything about google cloud from basic to advance level...

My 3 years experience in Google Cloud App Engine (Python 2 & Python 3)

First Serverless compute service by Google Cloud.Google Cloud has always believed in the vision of serverless by debuting with Google App Engine in 2008, the first fully serverless compute service. Since then, Google has evolved more serverless offerings in both application development and analytics. I started working in Google App Engine in May 2017 and I am going to share my experience with GAE.

Deploy a Phoenix application on Google Cloud Platform Compute Engine

In this article, I will help you to deploy an application built with the Phoenix framework on a virtual machine on the Google Cloud Platform cloud provider.