Skip to content
pyjoymentPublic

About

Google Cloud for Pyjoyment: Application Default Credentials and clients of the APIs, without an SDK

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Home GitHub Documentation License PyPI Tests Trunk Check

Pyjo-GCP

Pyjoyment

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.

Installation

From PyPI, with Pyjoyment, which it depends on:

pip install Pyjo-GCP

or, in a project managed with uv:

uv add Pyjo-GCP

The development version is installed from the Git repository:

pip install git+https://github.com/pyjoyment/Pyjo-GCP

Examples

examples/ 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 daemon

or 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.eml

Documentation

The documentation of the API is on Read the Docs.

License

Artistic License 2.0, as Pyjoyment.

About

Google Cloud for Pyjoyment: Application Default Credentials and clients of the APIs, without an SDK

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages