Google's official Python clients for Google Cloud services
open sourceApache-2.0free
The Google Cloud client libraries for Python are Google's idiomatic Python clients for Google Cloud services, published to PyPI as one package per service: Cloud Storage, BigQuery, Pub/Sub, Vertex AI and hundreds of others, each marked stable or preview (beta or alpha) by its PyPI development status. One repository also builds the shared pieces they use, among them google-auth (authentication), google-api-core, proto-plus and googleapis-common-protos. For Google APIs outside Google Cloud, Google points to the separate Google APIs Python Client.
Problems it solves
- upload files to Google Cloud Storage from a Python script
- query BigQuery from my Python app with Google's official client
- authenticate to Google Cloud APIs from Python with application default credentials
Features
- a PyPI package for each Google Cloud service
- stable and preview (beta, alpha) release levels per client
- google-auth, the authentication library, in the same repository
- shared core library, proto-plus and common protos built in the same repository
Limitations
- Preview clients (beta or alpha) may change in backwards-incompatible ways; only stable clients promise a stable code surface.1
Alternatives
The same job
These do what Google Cloud client libraries for Python does.
- Google API Client Library for Python Google's official Python client for its discovery-based APIs
- AWS SDK for Python (Boto3) Call AWS services using idiomatic Python APIs
Compare Google Cloud client libraries for Python with the top 3
