gcloud-rest-auth
Python Client for Google Cloud Auth
Decision gist · record as of 2026-08-14
Yes. The package is actively maintained, has no known vulnerabilities, uses a permissive MIT license, and offers low-friction installation. It solves a real problem—GCP credential management—across multiple authentication methods and execution models. Suitable for production use in applications that need reliable, flexible authentication with Google Cloud.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later.
- GCP credentials (service account JSON, user credentials, or GCE metadata) must be available at runtime.
- Low friction installation with a pure Python wheel.
License · maintenance · safety
MIT (permissive) — MIT license permits commercial and private use with minimal restrictions—you may use, modify, and distribute this package freely provided you include the license notice.
last release 2026-07-17 (28 days) · last repo commit 2026-08-14 · 348 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 604,952 downloads/mo, #5,802 on PyPI
Alternatives
Verify before relying
pip install gcloud-rest-auth
from gcloud_rest_auth import Token
token = Token(service_account_credentials)
await token.get() # or token.get() in threadsafe mode- Whether the package supports both asyncio and threadsafe modes simultaneously or requires choosing one at install time.
- Performance characteristics when handling token refresh under high concurrency.
- Whether external account credentials work with all GCP services or have known limitations.
What it is and what it does
gcloud-rest-auth is a Python client library for authenticating with Google Cloud Platform services. It abstracts away the complexity of GCP credential management by providing a Token class that handles multiple authentication methods—service accounts, user credentials, GCE metadata, impersonated service accounts, and workload identity federation—and manages token lifecycle including refresh. The library also provides specialized classes like IamClient for interacting with GCP public keys and URL signing, and IapToken for securing access to Identity-Aware Proxy protected services.
The package is designed to integrate with other gcloud-rest-* components, allowing you to define authentication once and reuse it across multiple GCP service clients. It supports both asyncio and threadsafe execution models, making it suitable for concurrent applications. With active maintenance, no known vulnerabilities, and a permissive MIT license, it's a stable choice for applications that need reliable GCP authentication without managing credentials manually.
Use it for
- Authenticate a Python application against GCP services using a service account JSON file.
- Implement workload identity federation for applications running outside GCP (e.g., on-premises or other clouds).
- Authorize requests to an Identity-Aware Proxy protected GCP service using IAP tokens.
- Build a multi-tenant application where each tenant uses impersonated service account credentials.
- Manage token refresh automatically in a long-running async application accessing multiple GCP services.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The package is actively maintained, has no known vulnerabilities, uses a permissive MIT license, and offers low-friction installation. It solves a real problem—GCP credential management—across multiple authentication methods and execution models. Suitable for production use in applications that need reliable, flexible authentication with Google Cloud.
Install
gcloud-rest-auth on PyPI
Before you install
Low friction installation with a pure Python wheel. Active maintenance with a release 28 days ago and recent commits. Depends on standard libraries (requests, cryptography, pyjwt, tenacity, chardet) with no compiled dependencies.
Requires Python 3.10 or later. GCP credentials (service account JSON, user credentials, or GCE metadata) must be available at runtime.
License in practice
MIT license permits commercial and private use with minimal restrictions—you may use, modify, and distribute this package freely provided you include the license notice.
Quickstart
pip install gcloud-rest-auth
from gcloud_rest_auth import Token
token = Token(service_account_credentials)
await token.get() # or token.get() in threadsafe mode
Verify before relying
- Whether the package supports both asyncio and threadsafe modes simultaneously or requires choosing one at install time.
- Performance characteristics when handling token refresh under high concurrency.
- Whether external account credentials work with all GCP services or have known limitations.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release <4.0,>=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 5 packageschardetcryptographypyjwtrequeststenacity |
| Maintenance | Actively maintained 28 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 604,952 / month, #5,802 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 :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Internet |
Evidence: gcloud_rest_auth-5.5.0-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 › “gcp service account client”
- gcloud-rest-authProvides Python client libraries for Google Cloud authentication,…
- gcloud-aio-authProvides asyncio-compatible and threadsafe Python clients for Google…
- google-cloud-billingProgrammatic access to Google Cloud Platform billing data and account…
Give your agent the search over MCP, or paste the wish link into any chat.
More Internet packages
Botocore provides low-level, data-driven access to Amazon Web Services APIs, serving as the foundation for the AWS CLI and boto3 libraries.
Install it if you need programmatic access to AWS services.
Provides an async client for AWS services using botocore and aiohttp, allowing you to call AWS APIs asynchronously within asyncio-based applications.
Install it if you need to call AWS services from async Python code; it is the standard way to do so.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides a platform-independent file locking mechanism to coordinate access to files across processes and threads.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides common Protocol Buffer message definitions used across Google Cloud APIs, enabling Python clients to interact with Google services.
See also coze-workload-identity · gcloud-aio-auth · spiffe · gcloud-rest-datastore · gcloud-rest-taskqueue · gcloud-aio-storage · gcloud-rest-bigquery · akeyless-cloud-id · gcloud-aio-datastore · igwn-auth-utils