Skip to main content

codecraftai-restclient-aws

A pure-Python client for the AWS APIs, replacing boto3.

Status

In progress. The EC2 Query-protocol codec is complete and tested; the service clients are not yet written, and the provisioning venue still uses boto3. Nothing depends on this package yet.

Why the codec came first

EC2 does not speak JSON. Responses are XML whose element names differ from the names callers read — <vpcSet><item><vpcId> becomes response["Vpcs"][0]["VpcId"] — and that mapping is the risky part of the whole client.

A collection mapped to the wrong name decodes as an EMPTY LIST. Nothing raises; it simply reads as “no resources found”. Downstream that means a create runs a second time, or a teardown walks past live infrastructure and reports success. So the mapping is verified against realistically-shaped EC2 XML before anything is built on top of it.

The mapping is mostly mechanical: a <xxxSet> element is a list whose children are <item>, and its modelled name is the de-Set-ed, pluralised, UpperCamelCase form. The irregular cases — instancesSet → Instances, securityGroupInfo → SecurityGroups, ipRanges → IpRanges — are named explicitly rather than left to the rule.

Two details worth recording:

  • Lists are detected structurally, by all children being <item>, so a collection this code has never seen still decodes as a list rather than collapsing into a single object.

  • Empty collections need the NAME, since there are no children to inspect. An empty <vpcSet/> decodes to [], not "" — the string iterates to nothing and so passes a loop silently, while breaking the moment a caller indexes, appends or type checks it.

Requests flatten the other way, into the Query protocol’s dotted parameters (Filters.1.Values.1). Those lists are ONE-indexed; EC2 answers a zero-indexed list with a confusing “missing parameter” rather than an index error.

Signing comes from ccai.restclient.base.awssigv4, already tested against AWS’s published example.

Metadata

Release files for codecraftai-restclient-aws 1.2.1

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-aws 1.2.1
File Size Uploaded Provenance
codecraftai_restclient_aws-1.2.1.tar.gz 18.5 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for codecraftai-restclient-aws 1.2.1
File Interpreter ABI Platform
codecraftai_restclient_aws-1.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 39.9 kB

Release files / codecraftai_restclient_aws-1.2.1.tar.gz

Download URL codecraftai_restclient_aws-1.2.1.tar.gz
Size 18.5 kB
Tags Source
SHA-256 checksum
How to use checksums
0f63d5008a9a3132de9c8a9a7f1f2700341720011be821a43c1d6534c746a4f6
BLAKE2b-256 checksum
How to use checksums
709f98097859169b81642e0228065ceb8ae9482c416a35fa10f072dda927b548
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 20, 2026.

Transparency log

Release files / codecraftai_restclient_aws-1.2.1-py3-none-any.whl

Download URL codecraftai_restclient_aws-1.2.1-py3-none-any.whl
Size 21.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ff5db35fe9ff71ef383332872e83f2d2f9bc6566bf052c8f6f06e2c8113ce1a9
BLAKE2b-256 checksum
How to use checksums
774885e2f1418b2bd449cf1bf334165d2da9924d8c84ff13ae4a269fde3590d8
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 20, 2026.

Transparency log

Security for codecraftai-restclient-aws 1.2.1

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_aws-1.2.1.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 20, 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.1 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