Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

gcloud-pyproxy

This Python package provides a proxy class for calling gcloud commands directly from Python.

Requirements

Installation

Via PIP

pip3 install gcloudpyproxy

or

python3 -m pip install gcloudpyproxy

Building from source

wget https://github.com/tomasvotava/gcloud-pyproxy/archive/master.zip
unzip master.zip
cd gcloud-pyproxy-master
python setup.py build
python setup.py install

Usage

from gcloud_pyproxy import GCloud
gcloud = GCloud()

# comamnd: gcloud compute instances list
gcloud.compute_instances_list()

# command: gcloud compute instances start virtual
gcloud.compute_instances_start("virtual")

# additional flags and parameters
# next method call expands like this:
# gcloud compute instances list --project="gcp-project-id"
gcloud.compute_instances_list(project="gcp-project-id")

# positional arguments are simply concatenated after the command call
gcloud.compute_instances_start("virtual", project="gcp-project-id")
# expands as:
# gcloud compute instances start virtual --project="gcp-project-id"

# by default, underscores in flag names are replaced with dashes
gcloud.kms_encrypt(plaintext_file="file.txt")
# gcloud kms encrypt --plaintext-file="file.txt"

# however, this can be overriden by specifying replace_underscore=False
gcloud.kms_encrypt(plaintext_file="file.txt", replace_underscore=False)
# gcloud kms encrypt --plaintext_file="file.txt"

Metadata

Release files for GCloudPyProxy 1.1b0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for GCloudPyProxy 1.1b0
File Size Uploaded Provenance Actions
GCloudPyProxy-1.1b0.tar.gz 2.6 kB Without provenance Details for GCloudPyProxy-1.1b0.tar.gz

Release files / GCloudPyProxy-1.1b0.tar.gz

Download URL GCloudPyProxy-1.1b0.tar.gz
Size 2.6 kB
Tags Source
SHA-256 checksum
How to use checksums
bc969d66604750002fe51592d0edd9750a1ca19a8add57d335934fdd8fcce003
BLAKE2b-256 checksum
How to use checksums
7ef7d6d9692e94fad75b0e3e4fa2aaaed629aa3af01dd4625838e7f2c9807355
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.6

Security for GCloudPyProxy 1.1b0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page