Taming Python/FastAPI/Uvicorn Logs in GCP - The article discusses how to properly configure Python/FastAPI/Uvicorn logs in Google Cloud Logging to address issues such as incorrect log levels, fragmented multiline tracebacks, and misleading Uvicorn startup error messages. Source: medium.com
Tag: Python
Resources about Python collected from the weekly GCP Weekly newsletter — a hand-curated collection of Google Cloud Platform news, technical articles, tutorials, videos and release notes. Each entry below links back to the original GCP Weekly issue and retains its publish date and title, giving you a focused, searchable knowledge base for this topic.
Stop Guessing and Start Benchmarking Your AI Prompts - The article introduces a framework for building applications using Generative AI, emphasizing the importance of systematic prompt engineering. It highlights Google Cloud tools for prompt evaluation, including the GenAI evaluation tool and Python evaluation library, to move from guesswork to data-driven prompt optimization. Source: medium.com
8 BigQuery Tricks from Python - Faster reads, safer writes, and cheaper queries using pandas-gbq, DB-API, and Arrow—without fighting dtypes or paying surprise bills. Source: medium.com
How to add modules and PIP libraries to Dataproc PySpark Serverless jobs - In this post I explain how to add pip libraries and python modules into Dataproc Spark Serverless jobs. Source: medium.com
GCP Notifier: Production-Ready Python Alerts for Email and Google Chat in Google Cloud - GCP Notifier is a Python library designed for sending notifications via Email and Google Chat in Google Cloud Platform. Source: medium.com
How to Deploy Django to Google Cloud Run using GitHub Actions - This article guides users on deploying Django applications to Google Cloud Run using GitHub Actions for automated deployments. Source: medium.com
Parallelizing BigQuery Stored Procedures with Google Cloud Functions - A case study in squeezing speed out of serverless stored procedures in BigQuery. Source: medium.com
How to Fix “Gemini Cannot Be Accessed Through Vertex Predict API” Error When Using Finetuned Models - The Complete Guide to Integrating Finetuned Gemini Models with Vertex AI in Python. Source: medium.com
Managing External Data in dbt: Seeds, External Tables and APIs - How to bring Google Sheets, external APIs, and GCS files into your dbt workflows with full traceability and automation. Source: medium.com
Agent Patterns with ADK (1 Agent, 5 Ways!) - The article explores five different agent patterns using Google Cloud's Agent Development Kit (ADK) to automate a customer refund system for a candy shop. Source: medium.com
Dynamically Creating NamedTuple Classes for SpannerInsert Beam Python Module - The article discusses dynamically creating NamedTuple classes for the SpannerInsert Beam Python module to handle multiple tables with varying schemas. Source: medium.com
Building a highly available and scalable API on Cloud Run - Achieving infinite scalability and very high availability with FastAPI on Cloud Run. Source: medium.com
See Inside Your GenAI: Mastering Tracing & Observability in GCP for GenAI FastAPI Apps - The “Why”: Challenges of Observability in GenAI Applications. Source: medium.com
Generate Structured Output with Gemini in BigFrames - Generate Structured Output with Gemini in BigFrames, an open source Python library offered by Google. Source: medium.com
Automating Google Cloud Image Upgrades with a Custom Renovate Datasource - The article explains how to automate Google Cloud image upgrades using Renovate. It details creating a custom Renovate datasource using a Cloud Function to query image versions, along with a custom manager to locate GCP image definitions in code. The solution involves a naming convention, Terraform deployment, and service account configuration, enabling Renovate to identify and propose image upgrades. Source: medium.com
Install Python packages from GCP Artifact Registry using UV - Install packages from your private GCP artifact registry using the package manager UV. Source: medium.com
Streaming One Row to BigQuery! - A walkthrough of the new usability improvements for the 2.30 release of the Storage Write API Python client library. Source: medium.com
Stowage Planning Automation Using Gemini: A Feasibility Study and A Prompt-Based Approach - Gemini 2.5 Pro Experimental enabled automated cargo ship stowage planning via prompt engineering, overcoming prior model limitations. Source: medium.com
Tmux Is Tmagic - Leverage a subtle bash framework to execute data pipelines in the background, saving time for mission-critical tasks. Source: medium.com
Build a vector search application in Python using BigFrames - Vector search, powered by generative AI, is the key to unlocking valuable insights from unstructured data. BigFrames, an open-source Python library, empowers data scientists and developers to leverage familiar Python tools like Pandas and Scikit-learn for vector search within BigQuery. Source: medium.com
Introducing partial ordering mode for BigQuery DataFrames (bigframes) - BigQuery DataFrames introduces a new feature called partial ordering mode, which prevents the creation of a deterministic ordering and sequential index. This optimization allows for faster and more efficient data processing by pushing down row and column filters, especially on large clustered and partitioned tables. Source: medium.com
Create and Deploy Custom Python Libraries on GCP - Create and deploy custom Python libraries in Google Cloud Platform / Artifact Registry to streamline development, enhance code quality, and address specific needs. Source: medium.com
Install Python package from GCP Artifact Registry in Docker - How to install a Python package from the artifact registry in a Dockerfile with an authentication method. Source: medium.com
Creating a Local Environment to Operate GCS Emulator from Flask Source: dev.to
Rapid UI prototyping for AgentBuilder Agents with Google Mesop and Cloud Run - This article explores two options for building a user interface (UI) for your AI prototypes using Agent Builder Agents. Source: medium.com
Building a Geospatial Application with AlloyDB, PostGIS, and Python - This article demonstrates how to build a geospatial application using Google Cloud's AlloyDB for PostgreSQL, the PostGIS extension, and Python. It covers setting up the environment, creating a database and table, generating and inserting sample data, and visualizing the data on a map. Source: medium.com
Deploying a Streamlit App on Cloud Run with Cloud SQL Postgres - This blog post demonstrates how to deploy a Streamlit application on Cloud Run with Cloud SQL Postgres integration using service account authentication. It covers creating a Cloud SQL for PostgreSQL database, uploading data, interacting with the database from Streamlit, and deploying the application securely. The setup ensures robust and secure deployment for data-driven Streamlit applications on Google Cloud Platform. Source: medium.com
Building and Running an AI YouTube and Video Processing as a Python Streamlit Web Application, on Serverless Google Cloud Run Source: medium.com
Serverless Automation for GCP Project Liens - Serverless Automation for GCP Project Liens is a guide on how to set up an automated way to add a project lien to every project in your organization in order to prevent accidental project deletion. Source: medium.com
Introducing BigQuery Workflows - BigQuery Workflows, a new feature in Google Cloud's BigQuery platform, simplifies data management by automating tasks like running SQL queries or notebooks in sequence. With its visual interface, built-in scheduling, and centralized monitoring, it offers an easy-to-use solution for managing data pipelines. Source: medium.com
Showing 31–60 of 493 resources