google-cloud-api-keys
Google Cloud Api Keys API client library
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-keysuv
uv add google-cloud-api-keyspoetry
poetry add google-cloud-api-keysInstalling 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
Tags
More Internet packages
Botocore provides low-level, data-driven access…
permissive · top 100 on PyPI
aiobotocoreProvides an async client for AWS services using…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
filelockProvides a platform-independent file locking…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
googleapis-common-protosProvides common Protocol Buffer message…
permissive · top 100 on PyPI
google-cloud-agentidentitycredentialsProvides a Python client library to interact…
permissive · top 15,000 on PyPI
google-cloud-billingProgrammatic access to Google Cloud Platform…
permissive · top 15,000 on PyPI
google-cloud-kmsProvides a Python client library for Google…
permissive · top 1,000 on PyPI
google-cloud-certificate-managerPython client library for Google Cloud…
permissive · top 15,000 on PyPI
google-cloud-resource-managerProvides a Python client for Google Cloud…
permissive · top 1,000 on PyPI
google-cloud-workflowsPython client library for Google Cloud…
permissive · top 1,000 on PyPI
google-apps-meetPython client library for the Google Meet API…
permissive · top 15,000 on PyPI
google-cloud-notebooksProvides a Python client to manage notebook…
permissive · top 15,000 on PyPI
google-cloud-buildPython client library for Google Cloud Build…
permissive · top 1,000 on PyPI
google-cloud-appengine-adminProvides a Python client library to provision…
permissive · top 15,000 on PyPI