Google Cloud Run Python Template

screenshot of Google Cloud Run Python Template
flask

A basic template for locally developing, live debugging and deploying a Python app to Cloud Run, with examples for Flask & Hug.

Overview

The Python 3.7 Google Cloud Run Python Template is a robust solution for developers looking to create and deploy Python applications seamlessly on the Google Cloud Platform. This template offers a user-friendly local development environment that supports real-time debugging and automated builds, allowing developers to focus more on coding rather than dealing with complex deployment processes.

What's impressive is the integration with GitHub, enabling continuous deployment that saves time and minimizes the manual steps typically associated with taking an app from development to production. The template's flexibility makes it an excellent choice for developers who want to experiment with different frameworks and features while utilizing the power of cloud technology.

Features

  • Quick Start: Easily fork the repository and get your Cloud Run Python app up and running with minimal setup, following straightforward instructions for deployment.

  • Local Development Environment: Set up a local environment using Docker, with instant feedback on changes made in the application code, allowing for quick iterations.

  • Flexible Framework Options: While a basic "Hello World" Flask app is provided, developers can modify the app to their liking or opt for a Hug template for a different approach.

  • Automated Build & Deployment: GitHub integration allows for continuous deployment; any code push triggers an automated build and deployment process.

  • Multiple Deployment Options: Choose between continuous deployment via Cloud Build or Terraform, or one-off deployments based on your project's needs.

  • Role Management: The setup process includes clear instructions for managing roles and permissions for seamless access to Cloud Run resources.

  • Real-Time Updates: Changes in the code result in immediate updates to the local app, enhancing the development workflow.

  • Extensibility: The template supports various optional extras and integrations to connect with other GCP services, adaptable to a wide range of projects.

flask
Flask

Flask is a lightweight and popular web framework for Python, known for its simplicity and flexibility. It is widely used to build web applications, providing a minimalistic approach to web development with features like routing, templates, and support for extensions.