$npx skillfedfor your agent

google-cloud-alloydb-connector

A Python client library for connecting securely to your Google Cloud AlloyDB instances.

Worth itPyPI DatabaseReleased Jun 2026754.6K downloads / moApache-2.0Pure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — google_cloud_alloydb_connector-1.13.1-py3-none-any.whl
v1.13.1 · released 2026-06-08 · Python >=3.10 · 7 runtime deps: aiofiles, cryptography, requests, google-auth, protobuf, google-cloud-alloydb, google-api-core

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

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
Same gist for agents: .md · .json

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.

Worth 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

LicenseApache-2.0 permissive
Python supportSupports the current Python release >=3.10
Install frictionLow. Pure-Python wheel
Runtime dependencies
7 packages
aiofilescryptographyrequestsgoogle-authprotobufgoogle-cloud-alloydbgoogle-api-core
MaintenanceActively maintained 67 days since the last release
Last repo commit
First released
Downloads754,627 / month, #5,144 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone 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

Capabilities
alloydb python connectorgoogle cloud alloydb clientsecure database connection google cloudiam database authentication pythonpostgresql alloydb connectorasyncpg alloydbtls encrypted database connection
Topics
google-cloudalloydbiam-auth

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”

Give your agent the search over MCP, or paste the wish link into any chat.

More Database packages

psycopg2-binary Worth it
PyPI · Software Development · released Apr 2026

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.

copyleftcompiled wheel · 3.9+
271.6Mdownloads / mo
redis Worth it
PyPI · Database · released Jul 2026

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.

MITpure Python · 3.10+
268.3Mdownloads / mo
ydb Worth it
PyPI · Database · released Jul 2026

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.

permissive licensepure Python · 3.10+
210.0Mdownloads / mo
snowflake-connector-python Worth it
PyPI · Software Development · released Aug 2026

Connects Python applications to Snowflake data warehouses using the DB API 2.0 specification, enabling SQL queries, data transfers, and warehouse operations.

Apache-2.0compiled wheel · 3.10+
193.6Mdownloads / mo
sqlparse Worth it
PyPI · Software Development · released Aug 2026

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.

BSD-3-Clausepure Python · 3.10+
148.9Mdownloads / mo
dbt-adapters With conditions
PyPI · Database · released Jul 2026

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.

Apache-2.0pure Python · 3.10.0+
121.3Mdownloads / mo

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