google-cloud-alloydb-connector
A Python client library for connecting securely to your Google Cloud AlloyDB instances.
Decision gist · record as of 2026-08-14
Yes. This is the official Google Cloud connector for AlloyDB—actively maintained, production-stable, with no known vulnerabilities, low install friction, and Apache-2.0 licensing. Install it if you are connecting Python to AlloyDB and want automatic TLS, IAM-based auth, and credential lifecycle management without manual certificate handling.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Google Cloud credentials via Application Default Credentials (ADC), AlloyDB API enabled in your project, and the AlloyDB Client IAM role on your instance.
- Code must run in an environment connected to the VPC hosting your AlloyDB instance (or configured for public IP/PSC).
- Low friction installation with a pure-Python wheel.
License · maintenance · safety
Apache-2.0 (permissive) — Apache-2.0 permissive license allows commercial use, modification, and distribution with minimal restrictions—suitable for most production environments.
last release 2026-06-08 (67 days) · last repo commit 2026-08-10 · 37 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 754,627 downloads/mo, #5,144 on PyPI
Alternatives
Verify before relying
pip install google-cloud-alloydb-connector
from google.cloud.alloydbconnector import Connector
INSTANCE_URI = "projects/MY_PROJECT/locations/MY_REGION/clusters/MY_CLUSTER/instances/MY_INSTANCE"
with Connector() as connector:
conn = connector.connect(
INSTANCE_URI,
"pg8000",
user="my-user",
password="my-password",
db="my-db"
)- Performance characteristics and connection pooling overhead compared to direct PostgreSQL drivers
- Detailed support timeline for Python 3.14 and future versions beyond the stated semantic versioning policy
- Integration patterns with specific database drivers (pg8000, psycopg, asyncpg) and their individual requirements
What it is and what it does
The AlloyDB Python Connector is Google Cloud's recommended library for connecting Python applications to AlloyDB instances. It wraps PostgreSQL drivers and handles TLS 1.3 encryption, IAM-based authorization, and automatic credential refresh without requiring manual certificate or firewall management. The connector maintains a background refresh cycle to keep credentials warm, so you create one per application and reuse it across requests.
It supports both synchronous and asynchronous patterns and integrates with common PostgreSQL drivers. You authenticate using Google Cloud IAM roles rather than database passwords (optionally), configure connectivity mode (private IP, public IP, or Private Service Connect), and optionally enable IAM database authentication. The library is production-stable, actively maintained, and supports Python 3.10 through 3.14.
Use it for
- Connect a web application to AlloyDB with automatic credential refresh and IAM-based authentication.
- Build async Python services that authenticate via IAM instead of managing database passwords.
- Deploy to serverless environments with lazy credential refresh to avoid background CPU throttling.
- Replace direct PostgreSQL connections with IAM-based authentication for improved security and auditability.
- Manage multi-region or multi-cluster AlloyDB access from a single Python application using instance URIs.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
This is the official Google Cloud connector for AlloyDB—actively maintained, production-stable, with no known vulnerabilities, low install friction, and Apache-2.0 licensing. Install it if you are connecting Python to AlloyDB and want automatic TLS, IAM-based auth, and credential lifecycle management without manual certificate handling.
Install
google-cloud-alloydb-connector on PyPI
Before you install
Low friction installation with a pure-Python wheel. Actively maintained with a release 67 days ago and recent commits. Requires Python 3.10 or later and depends on standard Google Cloud libraries (google-auth, google-api-core, protobuf) plus cryptography and requests.
Requires Google Cloud credentials via Application Default Credentials (ADC), AlloyDB API enabled in your project, and the AlloyDB Client IAM role on your instance. Code must run in an environment connected to the VPC hosting your AlloyDB instance (or configured for public IP/PSC).
License in practice
Apache-2.0 permissive license allows commercial use, modification, and distribution with minimal restrictions—suitable for most production environments.
Quickstart
pip install google-cloud-alloydb-connector
from google.cloud.alloydbconnector import Connector
INSTANCE_URI = "projects/MY_PROJECT/locations/MY_REGION/clusters/MY_CLUSTER/instances/MY_INSTANCE"
with Connector() as connector:
conn = connector.connect(
INSTANCE_URI,
"pg8000",
user="my-user",
password="my-password",
db="my-db"
)
Verify before relying
- Performance characteristics and connection pooling overhead compared to direct PostgreSQL drivers
- Detailed support timeline for Python 3.14 and future versions beyond the stated semantic versioning policy
- Integration patterns with specific database drivers (pg8000, psycopg, asyncpg) and their individual requirements
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 7 packagesaiofilescryptographyrequestsgoogle-authprotobufgoogle-cloud-alloydbgoogle-api-core |
| Maintenance | Actively maintained 67 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 754,627 / month, #5,144 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14 |
Evidence: google_cloud_alloydb_connector-1.13.1-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “alloydb python connector”
- google-cloud-alloydb-connectorProvides secure, IAM-based connections to Google Cloud AlloyDB…
- google-cloud-alloydbProvides a Python client library for connecting to and managing…
- airbyte-cdkA framework for building Airbyte connectors that extract data from…
Give your agent the search over MCP, or paste the wish link into any chat.
More Database packages
psycopg2-binary is a PostgreSQL database adapter for Python that implements the DB API 2.0 specification, enabling Python applications to connect to and query PostgreSQL databases with thread-safe concurrent operations.
Python client library for connecting to and executing commands against Redis key-value stores, supporting both synchronous and asynchronous operations.
Install it if your application needs to interact with Redis; the only prerequisite is a running Redis server instance.
YDB Python SDK is the official client library for connecting to and querying YDB databases from Python applications.
Install it if you need to connect Python applications to YDB databases.
Connects Python applications to Snowflake data warehouses using the DB API 2.0 specification, enabling SQL queries, data transfers, and warehouse operations.
sqlparse tokenizes SQL text into a tree of statements, clauses, and expressions, and provides functions to split scripts, format queries, and inspect parsed tokens without validating dialect or syntax.
Install it if you need to manipulate, format, or analyze SQL text programmatically.
Provides base adapter protocols and shared functionality that database adapters use to integrate with dbt-core, handling connections, dialect translation, relation caching, and core interface management.
See also cloud-sql-python-connector · google-cloud-alloydb · sqlalchemy-rdsiam · googleauthentication · sqlalchemy-cockroachdb · keyrings.google-artifactregistry-auth · google-cloud-iam · sqlalchemy-risingwave · gcloud-aio-auth · google-cloud-iamconnectorcredentials