Skip to main content

Google Cloud Platform Friendly Pilot

Project description

PyPI - Downloads

Github CI Maintainability Code Coverage

python python python

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.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gcp_pilot-1.36.0.tar.gz (184.9 kB view details)

Uploaded Source

Built Distribution

gcp_pilot-1.36.0-py3-none-any.whl (79.9 kB view details)

Uploaded Python 3

File details

Details for the file gcp_pilot-1.36.0.tar.gz.

File metadata

  • Download URL: gcp_pilot-1.36.0.tar.gz
  • Upload date:
  • Size: 184.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.7.16

File hashes

Hashes for gcp_pilot-1.36.0.tar.gz
Algorithm Hash digest
SHA256 9c7a1a7ca3db4ac33cf6a0f037552d0253598c5811e47b6ab738529c644eb074
MD5 2882ba92e97044efaabf4fb36afb5514
BLAKE2b-256 a04871ce8fc8a08eff3402666c2911fb1de6f0af91bec1cc61906c2792e7304d

See more details on using hashes here.

File details

Details for the file gcp_pilot-1.36.0-py3-none-any.whl.

File metadata

  • Download URL: gcp_pilot-1.36.0-py3-none-any.whl
  • Upload date:
  • Size: 79.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.7.16

File hashes

Hashes for gcp_pilot-1.36.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5cd703a3c8269abd1cc7ec916d0ca0d1e111e4760bcf33b71004e3a7d878e0d4
MD5 d0649a04fd1d0305e34ffdfd5d538d6d
BLAKE2b-256 4887debcd7ce04702742dd6532a386c823cd7c0eaaa3c0b22753bf8c612bb49e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page