Building flexible Python web apps on Google Cloud
wesley chun (~wesley) |
This session aims to address two topics. First, a talk called "Serverless computing with Python on Google Cloud" was presented last year at PyCon India. In that session, attendees were introduced to each of the serverless computing platforms from Google Cloud and saw "Hello World" sample apps for each, leaving with a general understanding of the differences between Google App Engine, Cloud Functions, and Cloud Run. It is possible developers left with the impression that these platforms differ from each other as there are often online questions where users ask which is the right platform for them. Next, some developers have expressed a less than optimal experience when trying to use a Google Cloud API in an app deployed to one of those serverless platforms. In this case, a user was trying to create a simple application using the Cloud Translation API, the API for Google Translate.
This session attempts to address both issues by presenting a sample Python web app, a "mini" Google Translate written in Flask. It is a working example using the Cloud Translation API with the least amount of code necessary for it to work. The most unique feature of this app is that it is "nebulous," flexible enough to be deployed to all three serverless platforms with just minor changes in configuration, whether Python 3, or Python 2 if still supported. Attendees will see this same app being deployed to each of those platforms, learn that using Cloud APIs is not as complex as developers may think, and that GCP serverless platforms aren't as different from each other as people may imagine.
- Experience developing applications in Python 2 or 3
- General knowledge of developing web applications
- Basic understanding of cloud and serverless computing
- Familiarity with Google Cloud Platform products
- You're a developer, train future developers, in technical leadership, DevOps, or IT/admin staff
WESLEY CHUN (@wescpy) is the author of Prentice Hall's bestselling "Core Python" (corepython.com) series, co-author of "Python Web Development with Django" (withdjango.com), and has written for Linux Journal, CNET, and InformIT. In addition to being a Developer Advocate at Google focused on Google Cloud (for higher education) and a host of the G Suite Dev Show (goo.gl/JpBQ40), he runs CyberWeb (cyberwebconsulting.com), a consultancy specializing in Python training. Wesley has over 25 years of programming, teaching, and writing experience, and was one of the original Yahoo!Mail engineers. He holds degrees in CS, Math, and Music from the University of California, is a Fellow of the Python Software Foundation, and Adjunct Computer Science faculty at Foothill College in Silicon Valley.