Google Cloud for Pyjoyment: the requests of its user agent to the APIs of Google Cloud, with the Application Default Credentials that the client libraries of Google find, without an SDK. It is for a program that needs a few calls of Google Cloud and no dependency for them, not a replacement of the client libraries of Google, which have every API.
It finds the credentials that gcloud and the client libraries find: a user of
gcloud auth application-default login, the key of a service account, an
impersonated service account, Workload Identity Federation of a file, a URL, an
executable, AWS or a certificate of X.509, a user of a workforce pool, and the
metadata server of Compute Engine, GKE, Cloud Run and Cloud Functions. It calls
the JSON APIs blocking and non-blocking, with their emulators, a universe
domain and mTLS, and depends on Pyjoyment only.
From PyPI, with Pyjoyment, which it depends on:
pip install Pyjo-GCPor, in a project managed with uv:
uv add Pyjo-GCPThe development version is installed from the Git repository:
pip install git+https://github.com/pyjoyment/Pyjo-GCPexamples/ has scripts that call Google Cloud, as a bucket of
Cloud Storage as a website, an application of Pyjoyment.Lite:
uv run python examples/gcs.py --bucket mybucket daemonor a message sent with the Gmail API, in the place of sendmail, also for
mail() of PHP:
uv run python examples/sendmail.py --subject noreply@example.com -t -i < message.emlThe documentation of the API is on Read the Docs.
Artistic License 2.0, as Pyjoyment.