$ account GoogleCloudPlatform
This is the official Google Cloud Platform Python samples repository, a large collection of self-contained, region-tagged code examples demonstrating how to use GCP services from Python. It is not a single deployable application; instead, each directory is an isolated sample set for a specific product such as Cloud Storage, BigQuery, Compute Engine, Cloud Functions, App Engine, Cloud Run, Composer, Dataflow, and Vertex AI. Most samples are small Flask apps, Cloud Functions handlers, CLI scripts, or library-usage snippets, each paired with pytest tests and a noxfile_config.py for CI execution. The dominant character is application-oriented sample code, but the repository is hybrid: it also includes Apache Airflow DAGs, Dataflow pipelines, BigQuery examples, and a small number of notebooks, making it relevant to data engineers as well as application developers. The architecture is intentionally decentralized: every sample directory has its own requirements.txt, tests, and nox configuration, so there is no shared runtime. The value of the repository is as a copy-paste reference and documentation source, backed by a mature testing harness that runs samples against real GCP resources using Kokoro/nox and environment-provided project IDs. Some notable engineering patterns emerge, including a reusable Airflow DAG validation utility and a compute snippet-generation system that composes reusable 'ingredients' into full 'recipes'. Maintenance is active, but the repository carries legacy artifacts such as App Engine Python 2.7 samples, Airflow 1.x DAGs, and some deprecated APIs, so overall technical drift is medium.
This repository contains Google Cloud Platform (GCP) service code samples in Go, designed to demonstrate API usage patterns and implementation techniques for various GCP services. The samples are organized by service (e.g., BigQuery, Firestore, Cloud Functions, Compute Engine) and include both runnable examples (main.go files) and library snippets. The repository serves as a practical reference for developers building applications on GCP, showing how to initialize clients, handle errors, manage resources, and integrate services. While not a single cohesive application, it provides executable samples that can be adapted for production use, with many samples following client initialization, context handling, and error handling patterns. The repository includes testing infrastructure and CI/CD configurations to validate samples against real GCP projects.
This repository is the Python Functions Framework, an open-source FaaS (Function as a Service) framework developed by Google Cloud Functions team. It allows developers to write portable Python functions that can run locally, on Google Cloud Run Functions, or on Knative-based environments. The framework provides a CLI to start a local development server (Flask for WSGI or Starlette for ASGI) that invokes user-defined functions. It supports multiple function signatures: HTTP (Flask Request), CloudEvent (CloudEvents SDK), legacy background events (event/context), and typed events with custom data classes. It handles automatic event conversion between background events and CloudEvents, execution ID tracking with logging, request timeout enforcement via threading, and error handling. The architecture is modular with separate components for CLI, function registry, event conversion, execution ID, and HTTP server abstraction (Flask, Gunicorn, Starlette/Uvicorn). The codebase is well-tested with near-100% branch coverage and includes conformance tests against the Functions Framework conformance suite.
This repository is a code generation and CI orchestration system for Terraform providers targeting Google Cloud Platform. The core functionality reads YAML definitions of GCP products and resources (hundreds of YAML files under mmv1/products/) and uses Go templates (mmv1/templates/terraform/) to generate the full source code for the google and google-beta Terraform providers, including resources, data sources, IAM policies, tests, and documentation. It also generates code for the terraform-google-conversion (TGC) library used for Cloud Asset Inventory conversion. The CI component (magician) manages pull request workflows: downstream generation, VCR-based acceptance testing, automatic reviewer assignment, scheduled PR reminders, and test failure triage. Additional tools handle breaking change detection, missing test/doc/identity analysis, issue labeling, and template validation. The architecture is a multi-module Go CLI (mmv1 generator + magician + several tools) with extensive use of Go templates, YAML configurations, and Bazel build system. While primarily an application, it includes data processing elements in the diff-processor and test reader that perform schema comparison and coverage analysis, giving it a hybrid flavor dominated by code generation and CI.
This repository is a full-stack marketing demo application powered by Google Cloud generative AI (Vertex AI Gemini, Imagen). It provides an end-to-end workflow for generating campaign content (emails, social media posts, website copy, images), analyzing audiences via natural language to BigQuery, and managing assets across platforms. The frontend is a modern Angular 17 single-page application with Firebase authentication and hosting, while the backend is a FastAPI Python service deployed on Cloud Run. Terraform infrastructure-as-code provisions all GCP resources including BigQuery datasets, Vertex AI Search datastores, Dialogflow CX agents, and Google Drive folder templates for content export. The application showcases marketing use cases like trendspotting via GDELT news summarization, audience insights using structured and unstructured data, and interactive image editing with inpainting/outpainting. While primarily a demo application, the repository also contains several Jupyter notebooks exploring model tuning, text-to-SQL, and clustering explanations, making it a hybrid resource for both application developers and data scientists.