Skip to main content

codecraftai-restclient-google

A pure-Python client for the Google Cloud APIs, replacing google-auth, google-api-core and the google-cloud-* packages the provisioning venue used: Compute Engine, Cloud Storage, Cloud DNS and Cloud TPU.

One authenticated transport serves all four, since they are all JSON over HTTPS with a bearer token.

Design notes

Responses carry protobuf semantics, not JSON semantics. The generated clients returned messages whose unset fields read as TYPED ZERO VALUES — 0, "", False, [], {} — never None, and consumer code depends on it:

network_id = str(existing.id) if existing.id != 0 else gcp_name
link = existing.self_link if len(existing.self_link) > 0 else fallback

Returning None would make str(None) the resource id and crash len(). So ProtoObject is deliberately the OPPOSITE of the None-for-absent convention the other clients in this fleet use.

Field types cannot be inferred from omitted JSON, so the non-string types are named explicitly in googleobject. Anything unnamed defaults to the string zero value — the most common case, and the one whose misuse fails loudly via len() rather than silently.

Wire names are matched by normalising both sides (removing underscores, lowercasing), so self_link finds selfLink and size_gb finds sizeGb. 64-bit ids arrive as JSON strings and are coerced back to int, so existing.id != 0 is never handed "0".

Mutations answer with an operation, not the resource. The venue blocks on result() before reading the resource back — without that wait the follow-up get races the create and 404s. A DONE operation is not necessarily a successful one: Compute reports failures in the operation body with a 200 on the poll, so result() inspects it. A timeout raises a distinct type from a failure, because the operation may still be running.

DNS edits are changes, not writes. Cloud DNS applies a set of additions and deletions atomically. Replacing a record set is one change containing both — splitting it into two calls would leave the zone briefly without the record.

Buckets are active record, unlike Compute resources: the venue calls bucket.delete(force=True) on listed entries. force deletes the bucket’s objects first, because the API refuses to delete a non-empty bucket and a teardown would otherwise fail on any bucket ever written to.

Authentication. A service-account key self-signs an RS256 JWT and exchanges it for an access token; workload identity asks the metadata server. The RSA signing is why this package depends on cryptography — it is the only asymmetric crypto in these clients apart from the Oracle one.

NotFound keeps its google.api_core.exceptions name, because consumer code catches it to mean “absent”.

Metadata

Release files for codecraftai-restclient-google 1.2.0

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

Source distribution (sdist)

Source distribution for codecraftai-restclient-google 1.2.0
File Size Uploaded Provenance
codecraftai_restclient_google-1.2.0.tar.gz 25.3 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for codecraftai-restclient-google 1.2.0
File Interpreter ABI Platform
codecraftai_restclient_google-1.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 56.1 kB

Release files / codecraftai_restclient_google-1.2.0.tar.gz

Download URL codecraftai_restclient_google-1.2.0.tar.gz
Size 25.3 kB
Tags Source
SHA-256 checksum
How to use checksums
becf607042e5e7091247b7207e31ece7522e44858a891101ce47536b7b46c091
BLAKE2b-256 checksum
How to use checksums
98812b1d4dda741e37302b40b85c87a7142d0f75c45bbcadc62ef6fc28657c25
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.

Transparency log

Release files / codecraftai_restclient_google-1.2.0-py3-none-any.whl

Download URL codecraftai_restclient_google-1.2.0-py3-none-any.whl
Size 30.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ea53eb68003267e61553bbdc7745b5b58e639567b59f12e64406613cefd5575e
BLAKE2b-256 checksum
How to use checksums
80e2fb733bc0381546f3c2dbdc9e5d1d2179fe4c7949ef267350c13374f0a0f7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.

Transparency log

Security for codecraftai-restclient-google 1.2.0

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for codecraftai_restclient_google-1.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

1.2.0 This release

2 release files Full provenance

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