prefect-gcp
Prefect integrations for interacting with Google Cloud Platform.
What it is and what it does
prefect-gcp is an integration package that extends Prefect's workflow orchestration platform with native support for Google Cloud Platform services. It provides blocks, tasks, and utilities to interact with Vertex AI, Cloud Run, BigQuery, Cloud Storage, and Secret Manager directly within Prefect flows, eliminating the need to write custom authentication and API call logic.
The package depends on Prefect itself plus the official Google Cloud client libraries (google-api-python-client, google-cloud-storage, google-cloud-secret-manager) and utility libraries (tenacity for retry logic, python-slugify for name normalization). It's maintained as part of the main Prefect project, receives regular updates, and supports modern Python versions (3.10 through 3.13).
Use it for:
- Orchestrate data pipelines that read from BigQuery, transform data, and write results back to Cloud Storage.
- Deploy containerized workflows to Cloud Run from Prefect flows with automatic credential management.
- Retrieve secrets from Secret Manager within workflow steps without hardcoding credentials.
- Submit machine learning training jobs to Vertex AI and monitor their progress from Prefect.
- Build multi-step GCP workflows that combine services (e.g., fetch data from Storage, process in BigQuery, log to Secret Manager).
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Integrates Prefect workflow orchestration with Google Cloud Platform services including Vertex AI, Cloud Run, BigQuery, Cloud Storage, and Secret Manager.
Yes. This is an actively maintained integration from the Prefect project itself, carries no known vulnerabilities, has low install friction, and is licensed permissively. Install it if you use Prefect and need to orchestrate GCP services; skip it if you don't use Prefect or don't need GCP integration.
Install
prefect-gcp on PyPI
pip
pip install prefect-gcpuv
uv add prefect-gcppoetry
poetry add prefect-gcpInstalling prefect-gcp
Before you install
Low install friction with a pure Python wheel. Actively maintained with a recent release within 30 days and an active repository. Requires Python 3.10 or later.
License in practice
Apache License 2.0 is permissive; you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.
Quickstart
pip install prefect-gcp
from prefect_gcp import GcpCredentials
from prefect import flow
@flow
def my_gcp_flow():
credentials = GcpCredentials.load("my-gcp-block")
# Use credentials with GCP tasks
Requires Python 3.10 or later and valid Google Cloud Platform credentials configured.
Verify before relying
- Specific task/block types available beyond the five service categories mentioned (Vertex AI, Cloud Run, BigQuery, Cloud Storage, Secret Manager).
- Whether all six runtime dependencies are required for basic usage or if some are optional per service.
Package facts
| License | Apache License 2.0 (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 6 — prefect, google-api-python-client, google-cloud-storage, tenacity, python-slugify, google-cloud-secret-manager |
| Maintenance | actively maintained — 30 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 2,368,607/month — #3,101 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: prefect_gcp-0.6.21-py3-none-any.whl
Keywords: prefect
Tags
More Libraries packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
python-dateutilProvides parsing, arithmetic, and recurrence…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
pytestpytest is a testing framework that lets you…
permissive · top 100 on PyPI
prefect-awsProvides pre-built blocks, tasks, and workers…
permissive · top 5,000 on PyPI
prefect-daskIntegrates Prefect workflow orchestration with…
permissive · top 15,000 on PyPI
prefect-dockerProvides Docker task execution and container…
permissive · top 5,000 on PyPI
prefect-rayIntegrates Ray distributed computing with…
permissive · top 15,000 on PyPI
prefect-snowflakePrefect integration that provides tasks and…
permissive · top 15,000 on PyPI
prefect-azurePrefect integrations for orchestrating…
permissive · top 15,000 on PyPI
prefectPrefect is a Python workflow orchestration…
permissive · top 5,000 on PyPI
prefect-redisIntegrates Prefect workflow orchestration with…
permissive · top 15,000 on PyPI
prefect-emailProvides Prefect workflow integration for…
permissive · top 15,000 on PyPI
pathwaysutilsProvides cloud-specific integrations and…
permissive · top 15,000 on PyPI