skillfed

google-cloud-api-keys

Google Cloud Api Keys API client library

google-cloud-api-keys v0.9.0 98.4K downloads/30d#13,086 on PyPI5,373
Permissive license Apache-2.0 Active released

What it is and what it does

This is the official Python client library for Google Cloud's API Keys service. It wraps the underlying gRPC and REST APIs to let you programmatically manage API keys within Google Cloud projects—creating new keys, listing existing ones, updating restrictions, and deleting keys. The library handles authentication, serialization, and error handling so you don't have to build those layers yourself.

Typically used in automation scripts, infrastructure-as-code tools, or applications that need to provision or rotate API credentials at scale. It depends on google-api-core for common patterns, google-auth for credential handling, and protobuf/grpcio for transport. The package is in Beta status and actively maintained, supporting Python 3.10 through 3.14.

Use it for:

  • Automate API key provisioning in CI/CD pipelines when deploying microservices to Google Cloud.
  • Rotate or revoke API keys programmatically as part of a security audit or incident response.
  • List and audit all API keys across a project to enforce naming conventions or access policies.
  • Manage API key restrictions (HTTP referrers, IP addresses, API quotas) through infrastructure-as-code.
  • Build a custom key management dashboard that queries and displays key metadata and usage.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Manages API keys for Google Cloud projects, providing a Python client to create, list, update, and delete API keys through the Google Cloud API Keys service.

Yes. This is the official, actively maintained Google Cloud client for API key management. Install it if you need to manage API keys programmatically in a Google Cloud environment. The low install friction, permissive license, and active maintenance make it a straightforward choice. Prerequisite: you must have a Google Cloud project with the API Keys service enabled and valid authentication credentials.

Install

google-cloud-api-keys on PyPI

pip

pip install google-cloud-api-keys

uv

uv add google-cloud-api-keys

poetry

poetry add google-cloud-api-keys

Installing google-cloud-api-keys

Before you install

Low friction installation with a pure-Python wheel. Actively maintained as of 72 days ago with recent commits. Requires Python 3.10 or later and depends on standard Google Cloud libraries (google-api-core, google-auth, grpcio, proto-plus, protobuf).

License in practice

Apache-2.0 permissive license allows commercial and private use with minimal restrictions; you must include a copy of the license and note any modifications.

Quickstart

pip install google-cloud-api-keys

from google.cloud import apikeys_v2

client = apikeys_v2.ApiKeysClient()
project = "projects/my-project"
keys = client.list_keys(parent=project)

Requires Google Cloud project setup, billing enabled, API Keys service enabled, and authentication credentials (typically via GOOGLE_APPLICATION_CREDENTIALS environment variable).

Verify before relying

  • Whether the package supports async/await patterns for API calls.
  • Specific rate limits or quotas imposed by the underlying Google Cloud API Keys service.
  • Whether key rotation or expiration policies are configurable through this client.

Package facts

License Apache-2.0 (permissive)
Python support supports the current Python release (>=3.10)
Install friction low — pure-Python wheel
Runtime dependencies 5 — google-api-core, google-auth, grpcio, proto-plus, protobuf
Maintenance actively maintained — 72 days since the last release
Last repo commit
First released
Downloads 98,402/month — #13,086 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: google_cloud_api_keys-0.9.0-py3-none-any.whl

Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseOperating 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.14Topic :: Internet

Tags

google cloud api keys managementapi key creation and lifecyclegoogle cloud python clientmanage api credentialscloud api key provisioning
google-cloudcredential-managementapi-provisioning

More Internet packages

botocore

Botocore provides low-level, data-driven access…

permissive · top 100 on PyPI

aiobotocore

Provides an async client for AWS services using…

permissive · top 100 on PyPI

pydantic

Pydantic validates Python data structures…

permissive · top 100 on PyPI

filelock

Provides a platform-independent file locking…

permissive · top 100 on PyPI

fastapi

FastAPI is a Python web framework for building…

permissive · top 100 on PyPI

googleapis-common-protos

Provides common Protocol Buffer message…

permissive · top 100 on PyPI

google-cloud-agentidentitycredentials

Provides a Python client library to interact…

permissive · top 15,000 on PyPI

google-cloud-billing

Programmatic access to Google Cloud Platform…

permissive · top 15,000 on PyPI

google-cloud-kms

Provides a Python client library for Google…

permissive · top 1,000 on PyPI

google-cloud-certificate-manager

Python client library for Google Cloud…

permissive · top 15,000 on PyPI

google-cloud-resource-manager

Provides a Python client for Google Cloud…

permissive · top 1,000 on PyPI

google-cloud-workflows

Python client library for Google Cloud…

permissive · top 1,000 on PyPI

google-apps-meet

Python client library for the Google Meet API…

permissive · top 15,000 on PyPI

google-cloud-notebooks

Provides a Python client to manage notebook…

permissive · top 15,000 on PyPI

google-cloud-build

Python client library for Google Cloud Build…

permissive · top 1,000 on PyPI

google-cloud-appengine-admin

Provides a Python client library to provision…

permissive · top 15,000 on PyPI