Google Cloud Pilot
Google Cloud Pilot (gcp-pilot) is a Python library that simplifies interaction with Google Cloud Platform services. It provides a high-level, user-friendly interface to various GCP APIs, handling authentication, error management, and parameter fallback automatically.
Documentation
Full documentation is available at gcp-pilot.flamingo.codes
Installation
pip install gcp-pilot
Some APIs need extra packages, thus you must use extras to add them:
- Cloud Tasks:
pip install gcp-pilot[tasks] - Cloud Build:
pip install gcp-pilot[build] - Cloud Storage:
pip install gcp-pilot[storage] - Big Query:
pip install gcp-pilot[bigquery] - Speech:
pip install gcp-pilot[speech] - Sheets:
pip install gcp-pilot[sheets] - Pub/Sub:
pip install gcp-pilot[pubsub] - Datastore:
pip install gcp-pilot[datastore] - Firestore:
pip install gcp-pilot[firestore] - Cloud DNS:
pip install gcp-pilot[dns] - Secret Manager:
pip install gcp-pilot[secret] - Healthcare Engine:
pip install gcp-pilot[healthcare] - IAM:
pip install gcp-pilot[iam]
Basic Usage
from gcp_pilot.resource import ResourceManager
grm = ResourceManager()
Key Features
- Parameter Fallback: Automatically detects project_id and location based on your credentials
- Friendly Errors: Converts generic HttpExceptions into more specific exceptions like NotFound, AlreadyExists, etc.
- Auto-Authorization: Sets up required permissions for services that need specific authorizations
- Integration: Seamlessly integrates different GCP services
- Authentication Handling: Uses Application Default Credentials with support for impersonation and delegation
Firestore ORM
A powerful and intuitive Object-Relational Mapper (ORM) for Google Firestore.
- Model-Based Structure: Define your Firestore collections and documents as Python classes.
- Intuitive Querying: Build complex queries using a chained, Django-like syntax.
- Built-in Pagination: Easily paginate through large datasets.
- Atomic Operations: Support for transactions to ensure data consistency.
- Subcollections: Seamlessly work with nested data structures.
You can read more at the Firestore ORM Documentation.
Supported Services
gcp-pilot supports a wide range of Google Cloud Platform services, including:
- IAM and Identity Management
- Storage and Databases (Cloud Storage, BigQuery, Datastore, Firestore, etc.)
- Compute and Serverless (Cloud Functions, Cloud Run, App Engine)
- Messaging and Integration (Pub/Sub, Cloud Tasks, Cloud Scheduler)
- DevOps and CI/CD (Cloud Build, Source Repositories)
- Monitoring and Logging
- Google Workspace Integration (Directory, Calendar, Sheets, etc.)
For detailed documentation on each service, please refer to the documentation site.
Release files for gcp-pilot 1.41.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| gcp_pilot-1.41.0.tar.gz | 205.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gcp_pilot-1.41.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 288.2 kB
Release files / gcp_pilot-1.41.0.tar.gz
| Download URL | gcp_pilot-1.41.0.tar.gz |
|---|---|
| Size | 205.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
570e3cd0a3a91bf04f5024a521e7189c3e96d66f0c554ba20e0eb6cf4befc75d
|
|
BLAKE2b-256 checksum How to use checksums |
8f9ee2573c372599bfbcd5cceabf831d6b3fb0e7715250751f09ab8f12d5f4df
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / gcp_pilot-1.41.0-py3-none-any.whl
| Download URL | gcp_pilot-1.41.0-py3-none-any.whl |
|---|---|
| Size | 82.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
74360bbeced375f4f6eb8c8b1c1775e6896414f49c3a641c6e0bc12e6be17669
|
|
BLAKE2b-256 checksum How to use checksums |
d5ca238307225a69946130c666a059a43b680ba136651b6910b5bb424aba23e9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|